Community
Participate
Working Groups
It would be very helpful to have a 'Run' item on the file context menu. This would have a sub-menu which would include all the items currently on the existing 'Run' dropdown. It would also be nice if Run menu items were smarter about when they're enabled. For example, Run wouldn't be enabled at all if the file doesn't have a main() method and isn't a JUnit Test.
In addition to adding 'Run' to the file context menu in the package explorer, it would be very helpful to add it to the file tab context menu as well.
This is contributed by debug.
The difficulty here is that an action in a menu must determine its enablement state in "zero" time. To determine if applicable, the action would have to parse a file, and perhaps create a type hierarchy. Worse, the "run" action is not java specific - it pertains to all types of launch configuraitons. Thus, we removed this menu action in 2.0. *** This bug has been marked as a duplicate of 18338 ***