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

Bug 356029

Summary: Support run/debug of EGL programs via IDE action
Product: z_Archived Reporter: Will Smythe <smythew>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jspadea, mheitz, tdramsey, tww
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Will Smythe CLA 2011-08-28 13:53:39 EDT
Developers should be able to select and right-click on a .egl file (for a program) in the Project Explorer and select Run as > EGL Program or Debug As > EGL Program.   In situations where the program part is being generated into multiple places, we should prompt the user as to which one to run/debug. But, since in most cases the program is being generated to just one place, this program should be run without any prompting.
Comment 1 Justin Spadea CLA 2011-08-29 12:07:52 EDT
*** Bug 356084 has been marked as a duplicate of this bug. ***
Comment 2 Justin Spadea CLA 2011-08-29 17:37:42 EDT
A shortcut has been added for finding and launching generated main program classes. API has also been added to the IDE version of IGenerator, in support of this:

public IFile[] getOutputFiles(IFile eglFile, Part part) throws CoreException;
Comment 3 Will Smythe CLA 2011-08-29 22:49:31 EDT
Justin - just to confirm: you added actions under both Run As and Debug As ? (so, the developer can run or debug the program from the .egl file). The action under Run may seem unnecessary, but Run will be the first place new developers look when wanting to run the program.
Comment 4 Justin Spadea CLA 2011-08-30 08:51:03 EDT
Yes, it shows up under Run As and Debug As.
Comment 5 Justin Spadea CLA 2011-08-30 08:53:13 EDT
Also, for RUI the shortcut is "Debug As > EGL Rich UI Application", so for Java I had it also start with "EGL":

Debug As > EGL Java Main Application

Wording can be changed for either if people aren't happy with those strings.
Comment 6 Will Smythe CLA 2011-11-02 00:32:57 EDT
Works great.