Added a "not yet implemented" warning to FeatureMenuPreferences buttons
authorn.hoffmann <n.hoffmann@localhost>
Tue, 16 Jun 2009 08:52:12 +0000 (08:52 +0000)
committern.hoffmann <n.hoffmann@localhost>
Tue, 16 Jun 2009 08:52:12 +0000 (08:52 +0000)
.gitattributes
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/FeatureMenuPreferences.java [moved from taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/FeaturePreferences.java with 82% similarity]

index 54eea05365562e2b137d368974e0139814e93891..a38342994cd789cdcb1f825af7f355ef52cee6bc 100644 (file)
@@ -1011,7 +1011,7 @@ taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/parser/CdmParserUtil.java -
 taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/AbstractMenuPreferences.java -text
 taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/CdmPreferences.java -text
 taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/DescriptionPreferences.java -text
-taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/FeaturePreferences.java -text
+taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/FeatureMenuPreferences.java -text
 taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/InitNomenclaturalCodePrefDialog.java -text
 taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/InitializeDbPreferences.java -text
 taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/NomenclaturalCodePreferences.java -text
similarity index 82%
rename from taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/FeaturePreferences.java
rename to taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/FeatureMenuPreferences.java
index ac1b08b4c6299884fa36745684e888ce44057227..821625bfb79554decca169390eed0643fcea33a8 100644 (file)
@@ -16,10 +16,12 @@ import org.eclipse.swt.events.MouseAdapter;
 import org.eclipse.swt.events.MouseEvent;\r
 import org.eclipse.swt.widgets.Button;\r
 import org.eclipse.swt.widgets.Composite;\r
+import org.eclipse.swt.widgets.MessageBox;\r
 import org.eclipse.ui.IWorkbenchPreferencePage;\r
 \r
 import eu.etaxonomy.cdm.model.description.Feature;\r
 import eu.etaxonomy.taxeditor.store.CdmStore;\r
+import eu.etaxonomy.taxeditor.store.StoreUtil;\r
 \r
 /**\r
  * @author p.ciardelli\r
@@ -27,7 +29,7 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  * @version 1.0\r
  * @author n.hoffmann\r
  */\r
-public class FeaturePreferences extends AbstractMenuPreferences implements\r
+public class FeatureMenuPreferences extends AbstractMenuPreferences implements\r
                IWorkbenchPreferencePage {\r
 \r
        public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.feature";\r
@@ -35,7 +37,7 @@ public class FeaturePreferences extends AbstractMenuPreferences implements
        private Button editButton;\r
        private Button removeButton;\r
        \r
-       public FeaturePreferences() {\r
+       public FeatureMenuPreferences() {\r
                super(CdmStore.getFeatures(), PreferencesUtil.getPreferredFeatures(), "Feature Preferences", "Choose which features you would like to use for descriptive elements.");\r
        }\r
 \r
@@ -69,6 +71,7 @@ public class FeaturePreferences extends AbstractMenuPreferences implements
                        @Override\r
                        public void mouseUp(MouseEvent e) {\r
                                super.mouseUp(e);\r
+                               notImplemented();\r
                        }\r
                        \r
                });\r
@@ -83,6 +86,7 @@ public class FeaturePreferences extends AbstractMenuPreferences implements
                        @Override\r
                        public void mouseUp(MouseEvent e) {\r
                                super.mouseUp(e);\r
+                               notImplemented();\r
                        }\r
                        \r
                });\r
@@ -97,10 +101,16 @@ public class FeaturePreferences extends AbstractMenuPreferences implements
                        @Override\r
                        public void mouseUp(MouseEvent e) {\r
                                super.mouseUp(e);\r
+                               notImplemented();\r
                        }\r
                        \r
                });\r
        }\r
 \r
+       private void notImplemented(){\r
+               MessageBox messageBox = new MessageBox(StoreUtil.getShell(), SWT.ICON_WARNING | SWT.OK);\r
+               messageBox.setText("Not yet implemented");\r
+               messageBox.open();\r
+       }\r
 \r
 }\r