summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-04-15 03:41:17 (EDT)
committerSteffen Kriese2011-04-15 03:41:17 (EDT)
commit99d4041c16c9e4ae0505be6470cc8113b4300626 (patch)
tree433776e9445fd49229b8a9cc74c2b25353afdd71
parentdca059ba25a5e3319b20634bc576b4a320cf49e8 (diff)
downloadorg.eclipse.riena.toolbox-99d4041c16c9e4ae0505be6470cc8113b4300626.zip
org.eclipse.riena.toolbox-99d4041c16c9e4ae0505be6470cc8113b4300626.tar.gz
org.eclipse.riena.toolbox-99d4041c16c9e4ae0505be6470cc8113b4300626.tar.bz2
fixed showRidgetIds in previewer
-rw-r--r--org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/RienaPreviewCustomizer.java9
-rw-r--r--org.eclipse.riena.toolbox.previewer.customizer/src/org/eclipse/riena/toolbox/previewer/customizer/preferences/PreviewCustomizerPreferencePage.java5
2 files changed, 5 insertions, 9 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 f805ce1..912d5c2 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
@@ -92,10 +92,11 @@ public class RienaPreviewCustomizer implements IPreviewCustomizer {
public void afterCreation(final Composite parent) {
final String currentLnf = getLnfFromPreferences();
if (null == currentLnf) {
- // reset the view to its original state
+ // reset the view to its original state
final SWTControlFinder finder = new SWTControlFinder(parent) {
@Override
public void handleControl(final Control control) {
+ super.handleControl(control);
control.redraw();
}
@@ -115,12 +116,6 @@ public class RienaPreviewCustomizer implements IPreviewCustomizer {
public void handleBoundControl(final Control control, final String bindingProperty) {
control.setToolTipText(String.format("Ridget-Id '%s'", bindingProperty)); //$NON-NLS-1$
control.redraw();
- System.out.println("setTooltip " + bindingProperty);
- }
-
- @Override
- public void handleControl(final Control control) {
- control.redraw();
}
};
finder.run();
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 d71eff4..e986ff2 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
@@ -10,6 +10,7 @@
*******************************************************************************/
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.ui.IWorkbench;
@@ -29,8 +30,8 @@ public class PreviewCustomizerPreferencePage extends FieldEditorPreferencePage i
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()));
- // FIXME show RidgetIds does not work at the moment
+ addField(new BooleanFieldEditor(PreferenceConstants.SHOW_RIDGET_IDS, "Show Ridget Ids as Tooltip",
+ getFieldEditorParent()));
}
public void init(final IWorkbench workbench) {