Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2009-12-21 19:09:22 +0000
committerDarin Wright2009-12-21 19:09:22 +0000
commit4262ac3c400110d31876c7d23406fade05e65a6c (patch)
tree928361b0e453bb3a9f44dac963ffd6595b447a20 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
parent113e9c0626d04e2fdcf1b69ff408a8275fdcde4b (diff)
downloadeclipse.platform.debug-4262ac3c400110d31876c7d23406fade05e65a6c.tar.gz
eclipse.platform.debug-4262ac3c400110d31876c7d23406fade05e65a6c.tar.xz
eclipse.platform.debug-4262ac3c400110d31876c7d23406fade05e65a6c.zip
Bug 290288 - Detail panes/editors for Java breakpoints
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java44
1 files changed, 43 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
index aa37726b7..3ef7c511f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
@@ -100,6 +100,8 @@ import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPerspectiveDescriptor;
import org.eclipse.ui.IPerspectiveListener;
+import org.eclipse.ui.IPropertyListener;
+import org.eclipse.ui.ISaveablePart;
import org.eclipse.ui.IViewSite;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchPage;
@@ -120,7 +122,7 @@ import org.eclipse.ui.texteditor.IUpdate;
public class VariablesView extends AbstractDebugView implements IDebugContextListener,
IPropertyChangeListener, IDebugExceptionHandler,
IPerspectiveListener, IModelChangedListener,
- IViewerUpdateListener, IDetailPaneContainer2 {
+ IViewerUpdateListener, IDetailPaneContainer2, ISaveablePart {
/**
* Selection provider wrapping an exchangeable active selection provider.
@@ -461,6 +463,11 @@ public class VariablesView extends AbstractDebugView implements IDebugContextLis
getSite().setSelectionProvider(fSelectionProvider);
fDetailPane = new DetailPaneProxy(this);
+ fDetailPane.addProperyListener(new IPropertyListener() {
+ public void propertyChanged(Object source, int propId) {
+ firePropertyChange(propId);
+ }
+ });
fDetailPane.display(null); // Bring up the default pane so the user doesn't see an empty composite
createOrientationActions(variablesViewer);
@@ -1228,4 +1235,39 @@ public class VariablesView extends AbstractDebugView implements IDebugContextLis
// change active provider
fSelectionProvider.setActiveProvider(provider);
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.ISaveablePart#doSave(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public void doSave(IProgressMonitor monitor) {
+ fDetailPane.doSave(monitor);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.ISaveablePart#doSaveAs()
+ */
+ public void doSaveAs() {
+ fDetailPane.doSaveAs();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.ISaveablePart#isDirty()
+ */
+ public boolean isDirty() {
+ return fDetailPane.isDirty();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.ISaveablePart#isSaveAsAllowed()
+ */
+ public boolean isSaveAsAllowed() {
+ return fDetailPane.isSaveAsAllowed();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.ISaveablePart#isSaveOnCloseNeeded()
+ */
+ public boolean isSaveOnCloseNeeded() {
+ return fDetailPane.isSaveOnCloseNeeded();
+ }
}

Back to the top