Fix tip lightbulb enablement and tooltip. addproperty_release60_base
authorsandipchitale@netbeans.org
Wed, 07 Nov 2007 01:17:48 +0000
changeset 93825e580e22258b
parent 9381 088770dc7e8c
child 9383 94980edc0fec
Fix tip lightbulb enablement and tooltip.
java.addproperty/manifest.mf
java.addproperty/src/org/netbeans/modules/java/addproperty/ui/AddPropertyPanel.java
java.addproperty/src/org/netbeans/modules/java/addproperty/ui/Bundle.properties
     1.1 --- a/java.addproperty/manifest.mf	Tue Nov 06 17:45:12 2007 +0000
     1.2 +++ b/java.addproperty/manifest.mf	Wed Nov 07 01:17:48 2007 +0000
     1.3 @@ -2,5 +2,5 @@
     1.4  OpenIDE-Module: org.netbeans.modules.java.addproperty/1
     1.5  OpenIDE-Module-Layer: org/netbeans/modules/java/addproperty/layer.xml
     1.6  OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/java/addproperty/Bundle.properties
     1.7 -OpenIDE-Module-Specification-Version: 1.6
     1.8 +OpenIDE-Module-Specification-Version: 1.7
     1.9  
     2.1 --- a/java.addproperty/src/org/netbeans/modules/java/addproperty/ui/AddPropertyPanel.java	Tue Nov 06 17:45:12 2007 +0000
     2.2 +++ b/java.addproperty/src/org/netbeans/modules/java/addproperty/ui/AddPropertyPanel.java	Wed Nov 07 01:17:48 2007 +0000
     2.3 @@ -121,8 +121,8 @@
     2.4              propNameTextField.setText("PROP_" + nameTextField.getText().toUpperCase());
     2.5              propNameTextField.getDocument().addDocumentListener(propNameTextFieldDocumentListener);
     2.6          }
     2.7 -        boundTipLabel.setEnabled(boundCheckBox.isSelected());
     2.8 -        vetoableTipLabel.setEnabled(boundCheckBox.isSelected() && vetoableCheckBox.isSelected());
     2.9 +        boundTipLabel.setEnabled(boundCheckBox.isSelected() && (!generatePropertyChangeSupportCheckBox.isSelected()));
    2.10 +        vetoableTipLabel.setEnabled(boundCheckBox.isSelected() && vetoableCheckBox.isSelected() && (!generateVetoablePropertyChangeSupportCheckBox.isSelected()));
    2.11          propNameTipLabel.setEnabled(propNameModified);
    2.12          final String previewTemplate = AddPropertyGenerator.getDefault().generate(getAddPropertyConfig());
    2.13          previewEditorPane.setText(previewTemplate);
     3.1 --- a/java.addproperty/src/org/netbeans/modules/java/addproperty/ui/Bundle.properties	Tue Nov 06 17:45:12 2007 +0000
     3.2 +++ b/java.addproperty/src/org/netbeans/modules/java/addproperty/ui/Bundle.properties	Wed Nov 07 01:17:48 2007 +0000
     3.3 @@ -25,8 +25,8 @@
     3.4  AddPropertyPanel.generateVetoablePropertyChangeSupportCheckBox.text=Generate Vetoable Change Support
     3.5  AddPropertyPanel.boundTipLabel.text=
     3.6  AddPropertyPanel.vetoableTipLabel.text=
     3.7 -AddPropertyPanel.vetoableTipLabel.toolTipText=Make sure to generate vetoable change support.
     3.8 -AddPropertyPanel.boundTipLabel.toolTipText=Make sure to generate property change support.
     3.9 +AddPropertyPanel.vetoableTipLabel.toolTipText=Make sure to generate vetoable change support (if you don't have it already).
    3.10 +AddPropertyPanel.boundTipLabel.toolTipText=Make sure to generate property change support (if you don't have it already).
    3.11  AddPropertyPanel.propNameTipLabel.text= 
    3.12  AddPropertyPanel.browseTypeButton.toolTipText=Browsing for type not implemented yet
    3.13  AddPropertyPanel.propNameTipLabel.toolTipText=Once modified your changes will be retained.