Run/Debug profile creation
Svata Dedic <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Organization | CollabNet Hosting |
| Message-ID | <[email protected]> |
Hi, group, when I was inspecting how Eclipse manages run/debug stuff, I noticed that they implemented helper actions, which allow the user to quickly create a profile. * Run/Debug actions in the main toolbar (menu) are context-aware. They are enabled for project, file or a class. * There is "Run/Debug As" submenu in the action's presenter, items of the submenu correspond to profile types known to the IDE. * When an inappropriate type is chosen, the action is rejected, i.e. a message box "The selected class does not contain a main() method" appears. Note: This approach moves the penalty for discovering whether an object is eligible for run/debug action of a particular type from the object's appearance. It moves the penalty to the time the "Run/Debug As" action is run by the user. The usual counter-measures like progress bars can be then used to give fast UI response. * In the case of a project, or a package, the object's contents is searched for items that can be run with the particular profile type. * When the selected thing matches, the user is presented with pre-filled wizard of a new profile. When confirmed, the new profile appears in the profile list. Other things to note: * Both "Run" and "Debug" have a history list of last run profiles. * A profile can be marked so that it should appear among Run/Debug favourite items -- the Run/Debug history starts with the favourities. * A profile can be selected as favourite for Run or Debug independently Cheers, -Svata