Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 45964

Summary: Decorate main types at file level
Product: [Eclipse Project] JDT Reporter: Andrew Freeman <andy.w.freeman>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Freeman CLA 2003-11-03 11:16:20 EST
JDeveloper decorates the icon of java files with a main method in their 
version of the Package Explorer differently than regular java files.  Right 
clicking a file with a main method showed a Run menu that could be used to 
launch the file.  It would be nice if Eclipse decorated the icon of files that 
contain a main method and offered a Run/Launch context menu that showed all 
associated Run Configurations for that file.  This could be extended to show 
all Run Configurations associated with a project by right clicking the project.

This could be also be extended to have a different icon/run configuration show 
up for other special java types such as JUnit tests.
Comment 1 Dirk Baeumer CLA 2003-11-03 12:59:57 EST
Eclipse is decorating the type with a running man, not the CU. Decorating the 
CU means looking into the file which can be expensive. 

Moving to debugger regarding the context menu. Additionally we could decorate 
the running man for compilation units using a background decorator.
Comment 2 Darin Wright CLA 2003-11-04 11:07:17 EST
Context sensitive launching is already under investigation for 3.0 - see bug 
18338. Changing to a feature request for label decorator for main types.

Currently marking as later/deferred.
Comment 3 Darin Wright CLA 2004-11-09 15:28:12 EST
Re-open to mark as dup.
Comment 4 Darin Wright CLA 2004-11-09 15:28:20 EST

*** This bug has been marked as a duplicate of 25963 ***