Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-debug-dev] jdt launch shortcuts on non java files


        I don't think my files should be able to be adapted to IJavaElement
       since they are not java files. Maybe the problem is I have done
       something to make them adaptable to IJavaElement. Where would I look to
       find out?


Your file(s) can be adapted to an IJavaElement if you are using the java model (projects, packages, etc).

        I do want my shortcut to show up in the Run As menu and I have already
       done so using org.eclipse.debug.ui.matchesPattern test. The problem is I
       don't want the jdt shortcuts showing up in the context menu for my files
       since they are not java files.


They (the jdt shortcuts) should not be showing up, as your file is not a java file (*.java or *.class).
If however you right click on a package, fragment or project you will see all of them, this is because we take an optimistic approach
for including menuitems. To do otherwise would require too much processing and make the RunAs menu slow to appear.

Michael Rennie
Eclipse Platform Commiter,
Rational Team,
IBM Canada

Back to the top