1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Fix for bug 69221: "Show full paths" doesn't work for shared libraries.

This commit is contained in:
Mikhail Khodjaiants 2004-07-09 17:41:55 +00:00
parent 226defa14a
commit c59eba3f0e
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2004-07-09 Mikhail Khodjaiants
Fix for bug 69221: "Show full paths" doesn't work for shared libraries.
* SharedLibrariesView.java
2004-06-29 Mikhail Khodjaiants 2004-06-29 Mikhail Khodjaiants
Temporary fix for bug 68915: Invalid values in the Variables view. Temporary fix for bug 68915: Invalid values in the Variables view.
* CDebugUIPlugin.java * CDebugUIPlugin.java

View file

@ -23,17 +23,20 @@ import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.debug.ui.ICDebugUIConstants; import org.eclipse.cdt.debug.ui.ICDebugUIConstants;
import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IDebugElement; import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.ui.IDebugModelPresentation;
import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager; import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.Separator; import org.eclipse.jface.action.Separator;
import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent; import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.jface.viewers.IBaseLabelProvider;
import org.eclipse.jface.viewers.IContentProvider; import org.eclipse.jface.viewers.IContentProvider;
import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITableLabelProvider; import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.jface.viewers.TableTreeViewer; import org.eclipse.jface.viewers.TableTreeViewer;
import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
@ -266,4 +269,16 @@ public class SharedLibrariesView extends AbstractDebugEventHandlerView
CDebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener( this ); CDebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener( this );
super.dispose(); super.dispose();
} }
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDebugView#getPresentation(java.lang.String)
*/
public IDebugModelPresentation getPresentation( String id ) {
StructuredViewer viewer = getStructuredViewer();
if ( viewer != null ) {
IBaseLabelProvider lp = viewer.getLabelProvider();
return ( lp instanceof SharedLibrariesLabelProvider ) ? (SharedLibrariesLabelProvider)lp : null;
}
return null;
}
} }