diff options
author | Noopur Gupta | 2015-02-16 12:29:12 +0000 |
---|---|---|
committer | Dani Megert | 2015-02-17 16:36:19 +0000 |
commit | a29de11e1d5b7b6444a1d0340a34881d90bb2a12 (patch) | |
tree | dd7a04c4e2fa4d71db82d564bb592bf952472d1d | |
parent | 9c40525b88eda7de04067f9ca2e2f9c29fba2b2c (diff) | |
download | eclipse.platform.ui-a29de11e1d5b7b6444a1d0340a34881d90bb2a12.tar.gz eclipse.platform.ui-a29de11e1d5b7b6444a1d0340a34881d90bb2a12.tar.xz eclipse.platform.ui-a29de11e1d5b7b6444a1d0340a34881d90bb2a12.zip |
Bug 459641 - [CPD] disabled/enabled state not reflected correctly on
Action Set Availability page
Change-Id: I9a6dbbc12d525374a0f7a213f8fd725a70f9fd26
Signed-off-by: Noopur Gupta <noopur_gupta@in.ibm.com>
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java index 267450a5b05..f3f740ba1fc 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java @@ -212,6 +212,10 @@ public class CustomizePerspectiveDialog extends TrayDialog { private CheckboxTableViewer actionSetAvailabilityTable; + private TreeViewer actionSetMenuViewer; + + private TreeViewer actionSetToolbarViewer; + private CheckboxTreeViewer menuStructureViewer1; private CheckboxTreeViewer menuStructureViewer2; @@ -869,7 +873,7 @@ public class CustomizePerspectiveDialog extends TrayDialog { label.setText(WorkbenchMessages.ActionSetSelection_menubarActions); label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); - final TreeViewer actionSetMenuViewer = new TreeViewer(menubarGroup); + actionSetMenuViewer = new TreeViewer(menubarGroup); actionSetMenuViewer.setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS); actionSetMenuViewer.getControl().setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true)); @@ -895,7 +899,7 @@ public class CustomizePerspectiveDialog extends TrayDialog { label.setText(WorkbenchMessages.ActionSetSelection_toolbarActions); label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); - final TreeViewer actionSetToolbarViewer = new TreeViewer(toolbarGroup); + actionSetToolbarViewer = new TreeViewer(toolbarGroup); actionSetToolbarViewer .setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS); actionSetToolbarViewer.getControl().setLayoutData( @@ -1431,6 +1435,10 @@ public class CustomizePerspectiveDialog extends TrayDialog { * On a change to availability, updates the appropriate widgets. */ private void actionSetAvailabilityChanged() { + actionSetAvailabilityTable.refresh(this); + actionSetMenuViewer.refresh(); + actionSetToolbarViewer.refresh(); + menuStructureViewer1.refresh(); menuStructureViewer2.refresh(); toolbarStructureViewer1.refresh(); |