diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog index 7d96e4e5524..36aaff6490f 100644 --- a/debug/org.eclipse.cdt.debug.ui/ChangeLog +++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog @@ -1,3 +1,9 @@ +2003-07-24 Mikhail Khodjaiants + New icon for closed projects. + * icons/full/obj16/cproject_obj.gif: new + * CDebugImages.java + * SourceLookupBlock.java + 2003-07-24 Mikhail Khodjaiants When initializing the generic source locations list filter out non-generic locations. * SourceLookupBlock.java diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/obj16/cproject_obj.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/obj16/cproject_obj.gif new file mode 100644 index 00000000000..04e530e37c4 Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/full/obj16/cproject_obj.gif differ diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java index 7a0c0ceb676..9ad60f65615 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java @@ -81,6 +81,7 @@ public class CDebugImages public static final String IMG_OBJS_REGISTER = NAME_PREFIX + "register_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_DISASSEMBLY = NAME_PREFIX + "disassembly_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_PROJECT = NAME_PREFIX + "project_obj.gif"; //$NON-NLS-1$ + public static final String IMG_OBJS_CLOSED_PROJECT = NAME_PREFIX + "cproject_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_FOLDER = NAME_PREFIX + "folder_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_LOADED_SHARED_LIBRARY = NAME_PREFIX + "library_syms_obj.gif"; //$NON-NLS-1$ public static final String IMG_OBJS_SHARED_LIBRARY = NAME_PREFIX + "library_obj.gif"; //$NON-NLS-1$ @@ -142,6 +143,7 @@ public class CDebugImages public static final ImageDescriptor DESC_OBJS_REGISTER = createManaged( T_OBJ, IMG_OBJS_REGISTER ); public static final ImageDescriptor DESC_OBJS_DISASSEMBLY = createManaged( T_OBJ, IMG_OBJS_DISASSEMBLY ); public static final ImageDescriptor DESC_OBJS_PROJECT = createManaged( T_OBJ, IMG_OBJS_PROJECT ); + public static final ImageDescriptor DESC_OBJS_CLOSED_PROJECT = createManaged( T_OBJ, IMG_OBJS_CLOSED_PROJECT ); public static final ImageDescriptor DESC_OBJS_FOLDER = createManaged( T_OBJ, IMG_OBJS_FOLDER ); public static final ImageDescriptor DESC_OBJS_LOADED_SHARED_LIBRARY = createManaged( T_OBJ, IMG_OBJS_LOADED_SHARED_LIBRARY ); public static final ImageDescriptor DESC_OBJS_SHARED_LIBRARY = createManaged( T_OBJ, IMG_OBJS_SHARED_LIBRARY ); diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java index 7170cf24800..d9985ce38ce 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java @@ -114,7 +114,10 @@ public class SourceLookupBlock { if ( element instanceof IProjectSourceLocation ) { - return CDebugImages.get( CDebugImages.IMG_OBJS_PROJECT ); + if ( ((IProjectSourceLocation)element).getProject().isOpen() ) + return CDebugImages.get( CDebugImages.IMG_OBJS_PROJECT ); + else + return CDebugImages.get( CDebugImages.IMG_OBJS_CLOSED_PROJECT ); } if ( element instanceof IDirectorySourceLocation ) { @@ -342,12 +345,12 @@ public class SourceLookupBlock List list = getReferencedProjects( project ); IProject[] refs = (IProject[])list.toArray( new IProject[list.size()] ); ICSourceLocation loc = getLocationForProject( project, locations ); - boolean checked = ( loc != null && !((IProjectSourceLocation)loc).isGeneric() ); + boolean checked = ( loc != null && ((IProjectSourceLocation)loc).isGeneric() ); if ( loc == null ) loc = SourceLocationFactory.createProjectSourceLocation( project, true ); fGeneratedSourceListField.addElement( loc ); fGeneratedSourceListField.setChecked( loc, checked ); - + for ( int i = 0; i < refs.length; ++i ) { loc = getLocationForProject( refs[i], locations );