Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2007-02-12 14:07:04 +0000
committerMikhail Khodjaiants2007-02-12 14:07:04 +0000
commit8ca2e0c519ae74c6362fce2ab6a612cf74a40405 (patch)
tree59dda67440d70ae85639d31590a89faa2430a0a6 /debug
parente8a833e2c6b87bc75e13e40e559ee35331fc4ef6 (diff)
downloadorg.eclipse.cdt-8ca2e0c519ae74c6362fce2ab6a612cf74a40405.tar.gz
org.eclipse.cdt-8ca2e0c519ae74c6362fce2ab6a612cf74a40405.tar.xz
org.eclipse.cdt-8ca2e0c519ae74c6362fce2ab6a612cf74a40405.zip
Bug 173792: Modules view needs to catch up with 3.3M5. Cleanup.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesView.java76
1 files changed, 0 insertions, 76 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesView.java
index 2e86af42086..a4fd3939b74 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesView.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModulesView.java
@@ -28,7 +28,6 @@ import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.debug.ui.ICDebugUIConstants;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.ListenerList;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelChangedListener;
@@ -65,7 +64,6 @@ import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
@@ -112,62 +110,6 @@ public class ModulesView extends AbstractDebugView implements IDebugContextListe
}
/**
- * The selection provider for the modules view changes depending on whether
- * the variables viewer or detail pane source viewer have focus. This "super"
- * provider ensures the correct selection is sent to all listeners.
- */
- public class ModulesViewSelectionProvider implements ISelectionProvider {
-
- private ListenerList fListeners= new ListenerList();
-
- private ISelectionProvider fUnderlyingSelectionProvider;
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.viewers.ISelectionProvider#addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
- */
- public void addSelectionChangedListener( ISelectionChangedListener listener ) {
- fListeners.add( listener );
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.viewers.ISelectionProvider#getSelection()
- */
- public ISelection getSelection() {
- return getUnderlyingSelectionProvider().getSelection();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.viewers.ISelectionProvider#removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
- */
- public void removeSelectionChangedListener( ISelectionChangedListener listener ) {
- fListeners.remove( listener );
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.viewers.ISelectionProvider#setSelection(org.eclipse.jface.viewers.ISelection)
- */
- public void setSelection( ISelection selection ) {
- getUnderlyingSelectionProvider().setSelection( selection );
- }
-
- protected ISelectionProvider getUnderlyingSelectionProvider() {
- return fUnderlyingSelectionProvider;
- }
-
- protected void setUnderlyingSelectionProvider( ISelectionProvider underlyingSelectionProvider ) {
- fUnderlyingSelectionProvider = underlyingSelectionProvider;
- }
-
- protected void fireSelectionChanged( SelectionChangedEvent event ) {
- Object[] listeners = fListeners.getListeners();
- for( int i = 0; i < listeners.length; i++ ) {
- ISelectionChangedListener listener = (ISelectionChangedListener)listeners[i];
- listener.selectionChanged( event );
- }
- }
- }
-
- /**
* The UI construct that provides a sliding sash between the modules tree
* and the detail pane.
*/
@@ -414,24 +356,6 @@ public class ModulesView extends AbstractDebugView implements IDebugContextListe
fSashForm = sashForm;
}
-// protected IContentProvider createContentProvider() {
-// ModulesViewContentProvider cp = new ModulesViewContentProvider();
-// cp.setExceptionHandler( this );
-// return cp;
-// }
-//
-// protected IBaseLabelProvider createLabelProvider( StructuredViewer viewer ) {
-//// return new DebugViewDecoratingLabelProvider( viewer, new DebugViewInterimLabelProvider( getModelPresentation() ), new DebugViewLabelDecorator( getModelPresentation() ) );
-// return getModelPresentation();
-// }
-//
-// protected IDebugModelPresentation getModelPresentation() {
-// if ( fModelPresentation == null ) {
-// fModelPresentation = new ModulesViewModelPresentation();
-// }
-// return fModelPresentation;
-// }
-//
protected TreeModelViewer getModulesViewer() {
return (TreeModelViewer)getViewer();
}

Back to the top