summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-03-18 09:20:19 (EDT)
committerSteffen Kriese2011-03-18 09:20:19 (EDT)
commitfffb81149501c5b64dfcce51e36c6fcc9102a454 (patch)
tree7699070aa547ebca1a62de2d90c9a7cf42c23ccf
parent818d008d1a20519c5739d978d85aeb4062a724cf (diff)
downloadorg.eclipse.riena.toolbox-fffb81149501c5b64dfcce51e36c6fcc9102a454.zip
org.eclipse.riena.toolbox-fffb81149501c5b64dfcce51e36c6fcc9102a454.tar.gz
org.eclipse.riena.toolbox-fffb81149501c5b64dfcce51e36c6fcc9102a454.tar.bz2
removed showRidgetIds from previewer
-rw-r--r--org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/RienaPreviewCustomizer.java4
-rw-r--r--org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/preferences/PreviewCustomizerPreferencePage.java19
2 files changed, 11 insertions, 12 deletions
diff --git a/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/RienaPreviewCustomizer.java b/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/RienaPreviewCustomizer.java
index a69a570..1c5a433 100644
--- a/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/RienaPreviewCustomizer.java
+++ b/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/RienaPreviewCustomizer.java
@@ -94,7 +94,6 @@ public class RienaPreviewCustomizer implements IPreviewCustomizer {
}
};
finder.run();
- return;
}
if (!Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.SHOW_RIDGET_IDS)) {
@@ -104,8 +103,9 @@ public class RienaPreviewCustomizer implements IPreviewCustomizer {
final SWTControlFinder finder = new SWTControlFinder(parent) {
@Override
public void handleBoundControl(final Control control, final String bindingProperty) {
- control.setToolTipText(String.format("RidgetId: '%s'", bindingProperty));
+ control.setToolTipText(String.format("Ridget-Id '%s'", bindingProperty)); //$NON-NLS-1$
control.redraw();
+ System.out.println("setTooltip " + bindingProperty);
}
@Override
diff --git a/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/preferences/PreviewCustomizerPreferencePage.java b/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/preferences/PreviewCustomizerPreferencePage.java
index 9e52f3f..270df94 100644
--- a/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/preferences/PreviewCustomizerPreferencePage.java
+++ b/org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/preferences/PreviewCustomizerPreferencePage.java
@@ -1,30 +1,29 @@
package org.eclipse.riena.toolbox.previewer.customizer.preferences;
-import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;
-import org.eclipse.riena.toolbox.previewer.customizer.Activator;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.riena.toolbox.previewer.customizer.Activator;
-public class PreviewCustomizerPreferencePage
- extends FieldEditorPreferencePage
- implements IWorkbenchPreferencePage {
+public class PreviewCustomizerPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
public PreviewCustomizerPreferencePage() {
super(GRID);
setPreferenceStore(Activator.getDefault().getPreferenceStore());
setDescription("Riena Previewer");
}
-
+ @Override
public void createFieldEditors() {
- addField(new StringFieldEditor(PreferenceConstants.LNF_CLASS_NAME, "Look and Feel Classname", getFieldEditorParent()));
- addField(new BooleanFieldEditor(PreferenceConstants.SHOW_RIDGET_IDS, "Show Ridget Ids as Tooltip", getFieldEditorParent()));
+ addField(new StringFieldEditor(PreferenceConstants.LNF_CLASS_NAME, "Look and Feel Classname",
+ getFieldEditorParent()));
+ //addField(new BooleanFieldEditor(PreferenceConstants.SHOW_RIDGET_IDS, "Show Ridget Ids as Tooltip", getFieldEditorParent()));
+ // FIXME show RidgetIds does not work at the moment
}
- public void init(IWorkbench workbench) {
+ public void init(final IWorkbench workbench) {
}
-
+
} \ No newline at end of file