Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java22
1 files changed, 5 insertions, 17 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java
index c37e17722..e347d88b7 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java
@@ -24,10 +24,6 @@ public class AddMemoryRenderingContextAction implements IViewActionDelegate {
private IMemoryRenderingSite fMemoryView;
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
@Override
public void init(IViewPart view) {
@@ -36,15 +32,12 @@ public class AddMemoryRenderingContextAction implements IViewActionDelegate {
}
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
@Override
public void run(IAction action) {
- if (fMemoryView == null)
+ if (fMemoryView == null) {
return;
+ }
IMemoryRenderingContainer container = getRenderingContainer(action);
if (container != null) {
@@ -73,20 +66,15 @@ public class AddMemoryRenderingContextAction implements IViewActionDelegate {
return selectedPane;
}
- /*
- * (non-Javadoc)
- * @see
- * org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action
- * .IAction, org.eclipse.jface.viewers.ISelection)
- */
@Override
public void selectionChanged(IAction action, ISelection selection) {
IMemoryRenderingContainer container = getRenderingContainer(action);
if (container instanceof RenderingViewPane) {
- if (!((RenderingViewPane) container).canAddRendering())
+ if (!((RenderingViewPane) container).canAddRendering()) {
action.setEnabled(false);
- else
+ } else {
action.setEnabled(true);
+ }
}
}

Back to the top