Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPDE Wizard generates inorrect version header
https://www.eclipse.org/forums/index.php/mv/msg/188014/596425/#msg_596425
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]]>Mike S2009-04-26T22:28:23-00:00