PDE Wizard generates inorrect version header [message #58578] |
Sun, 26 April 2009 18:28  |
Eclipse User |
|
|
|
I have a couple of problems and I'm beginning to think they may be
related.
When I use the PDE Wizard to create a org.eclipse.ui.menus plugin it
always
generates a header with <?eclipse version="3.2"?> even though I am using
3.4.1 Ganymede version as it was downloaded from the site with no changes
to
it. The tutorial group I'm working with have never seen this nor can they
explain it. Anyone ever run into this?
Second, I am doing a PDE tutorial with a "visible when" clause added in
that
allows a context menu item to be added to the Package Explorer when the
file
selected is a Java file. I generate the plugin changes from the Extensions
tab in the manifest editor. I generate a plugin.xml file that is identical
to
the Tutorials minus the 3.2 version number above. Problem is when I select
a
java file from the Package Explorer the menu item doesn't appear because
it
is not recognized as a subclass of org.eclips.jdt.core.ICompilationUnit.
If I
change the "visible when" to test on org.eclipse.core.resources.IFile it
works. I have done a instanceof test, printed out the class and
superclass,
and a toString on the selected Java file from the execute method of my
method
that implements AbstractHandler and all indications are the Java file is a
org.eclipse.core.resources.IFile and not a ICompilationUnit.But the author
of
the tutorial says this can't be so. Anyone ever run into this kind of
problem?
Any guidance would be greatly appreciated,
Thanks, Mike
|
|
|
Re: PDE Wizard generates inorrect version header [message #58653 is a reply to message #58578] |
Mon, 27 April 2009 15:23  |
Eclipse User |
|
|
|
Never mind, I got it. I had to some files to eclipse test app after I
started it up and imported them from a Java project in our snv repository.
Unfortunately, that doesn't make it a Java project and hence no Java
nature. After making it a Java project I get the ICompilationUnit upon
selecting Java files as expected.
Sorry to bother you,
Mike
|
|
|
Re: PDE Wizard generates inorrect version header [message #596453 is a reply to message #58578] |
Mon, 27 April 2009 15:23  |
Eclipse User |
|
|
|
Never mind, I got it. I had to some files to eclipse test app after I
started it up and imported them from a Java project in our snv repository.
Unfortunately, that doesn't make it a Java project and hence no Java
nature. After making it a Java project I get the ICompilationUnit upon
selecting Java files as expected.
Sorry to bother you,
Mike
|
|
|
Powered by
FUDForum. Page generated in 0.02780 seconds