Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PropertyPages on Popup for Java Projects in Package Explorer
PropertyPages on Popup for Java Projects in Package Explorer [message #4351] Wed, 28 May 2008 10:53 Go to next message
T Kruse is currently offline T KruseFriend
Messages: 73
Registered: July 2009
Member
Hi,

using Eclipse 3.3 eclipse.buildId=M20080221-1800

I defined a property page in my plugin.xml like this:
<page
class="com.example.ui.WorkbenchPropertyPage"
id="com.example.page1"
name="Test">
<enabledWhen>
<instanceof
value="org.eclipse.core.resources.IProject">
</instanceof>
</enabledWhen>
</page>

This works fine from the Navigator view.

In the Package Explorer view however, whenever I choose a Java Project and
right-click and select Properties, my page will not appear. It appears if
I choose Project > Properties from the menu bar, also if I right-click
such projects in the Navigator view, but not in the Package Explorer. The
page also appears for non-Java projects even when right-clicking in the
Package Explorer view.

Is this a bug or not? It appears like on e to me.
How else can I make contributions to the Property Pages of Java Projects
that show up on right-clicks in the Package Explorer?
Re: PropertyPages on Popup for Java Projects in Package Explorer [message #4419 is a reply to message #4351] Wed, 28 May 2008 14:33 Go to previous message
T Kruse is currently offline T KruseFriend
Messages: 73
Registered: July 2009
Member
Hi,

found out that in the Package Explorer View, Java projects are of type
IJavaProject, not of type IProject (both extend IAdaptable directly), and
that the adaptable flag in the plugin.xml may be used to get the extention
to show for Java Projects in the Package Explorer.
Re: PropertyPages on Popup for Java Projects in Package Explorer [message #567400 is a reply to message #4351] Wed, 28 May 2008 14:33 Go to previous message
T Kruse is currently offline T KruseFriend
Messages: 73
Registered: July 2009
Member
Hi,

found out that in the Package Explorer View, Java projects are of type
IJavaProject, not of type IProject (both extend IAdaptable directly), and
that the adaptable flag in the plugin.xml may be used to get the extention
to show for Java Projects in the Package Explorer.
Previous Topic:PropertyPages on Popup for Java Projects in Package Explorer
Next Topic:Ensuring plugin activation at startup
Goto Forum:
  


Current Time: Sun Dec 22 06:14:10 GMT 2024

Powered by FUDForum. Page generated in 0.03831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top