Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » preference page for package explorer
preference page for package explorer [message #267083] Mon, 16 August 2004 12:27 Go to next message
Eclipse UserFriend
Hi!

I am trying to apply an extension point of type org.eclipse.ui.propertyPages to any roots displayed
in the Package explorer. How I define this?

Example:
<extension
point="org.eclipse.ui.propertyPages">
<page
objectClass="????"
class="MyPropertyPage"
name="MyName"
id="MyPropertyPage"/>
</extension>
--
[Have a nice day] / [10x]
---
Pope
---
<<There are only solutions...>>
Re: preference page for package explorer [message #267247 is a reply to message #267083] Tue, 17 August 2004 03:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: t1.s-neubert.net

Hi,

your template is seems quite ok. You just have to fill in the following
informations:

- objectClass= The class which has to be selected to show your property
page. For example: objectClass="org.eclipse.jdt.core.IJavaProject" which
means that this property page will show up if the current selection is an
IJavaElement.

- class= Correct, your implementation of a org.eclipse.ui.PropertyPage

- name= and id= Choose whatever you like.

- adaptable="true" I recommend that if you do not want to define a
property page for every kind of resource. If you choose adaptable to be
true, eclipse tries to find am adapter of the type, that you've declared
in objectClass. For example: If you want a property page to show up if any
IProject resource is selected, you should define
objectClass="org.eclipse.core.resources.IProject" and adaptable="true". It
than does not matter if you select an IProject within the Navigator-view
or an IJavaProject within the Package Explorer, because eclipse is able to
find an adapter for the IJavaProject.

I hope that helps,
Tobias


the_mindstorm wrote:

> Hi!

> I am trying to apply an extension point of type org.eclipse.ui.propertyPages
to any roots displayed
> in the Package explorer. How I define this?

> Example:
> <extension
> point="org.eclipse.ui.propertyPages">
> <page
> objectClass="????"
> class="MyPropertyPage"
> name="MyName"
> id="MyPropertyPage"/>
> </extension>
Re: preference page for package explorer [message #267361 is a reply to message #267247] Tue, 17 August 2004 12:14 Go to previous message
Eclipse UserFriend
Tobias Neubert wrote:
> Hi,
>
> your template is seems quite ok. You just have to fill in the following
> informations:
>
> - objectClass= The class which has to be selected to show your property
> page. For example: objectClass="org.eclipse.jdt.core.IJavaProject" which
> means that this property page will show up if the current selection is an
> IJavaElement.
>
> - class= Correct, your implementation of a org.eclipse.ui.PropertyPage
>
> - name= and id= Choose whatever you like.
>
> - adaptable="true" I recommend that if you do not want to define a
> property page for every kind of resource. If you choose adaptable to be
> true, eclipse tries to find am adapter of the type, that you've declared
> in objectClass. For example: If you want a property page to show up if any
> IProject resource is selected, you should define
> objectClass="org.eclipse.core.resources.IProject" and adaptable="true". It
> than does not matter if you select an IProject within the Navigator-view
> or an IJavaProject within the Package Explorer, because eclipse is able to
> find an adapter for the IJavaProject.
>
> I hope that helps,
> Tobias
>
>
> the_mindstorm wrote:
>
>
>>Hi!
>
>
>>I am trying to apply an extension point of type org.eclipse.ui.propertyPages
>
> to any roots displayed
>
>>in the Package explorer. How I define this?
>
>
>>Example:
>> <extension
>> point="org.eclipse.ui.propertyPages">
>> <page
>> objectClass="????"
>> class="MyPropertyPage"
>> name="MyName"
>> id="MyPropertyPage"/>
>> </extension>
>
>
>
The line org.eclipse.jdt.core.IJavaProject is exactly what i wanted. How can I find out more such
objectClass-es?

--
[Have a nice day] / [10x]
---
Pope
---
<<There are only solutions...>>
Previous Topic:[RCP] imports not resolved
Next Topic:Navigator does not show project names and resources
Goto Forum:
  


Current Time: Sun Jun 01 15:54:18 EDT 2025

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

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

Back to the top