Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IWorkBenchPropertyPages and disabling/enabling based on content
IWorkBenchPropertyPages and disabling/enabling based on content [message #335074] Fri, 20 March 2009 13:22 Go to next message
Andy is currently offline AndyFriend
Messages: 47
Registered: July 2009
Member
I have a plugin that displays information in a tree format. The
functionality I have right now has four different
org.eclipse.ui.propertyPages that show up when someone right mouse clicks
on the nodes and selects "Properties".

The issue that I am having is that I want only one of the properties pages
to appear based on the content of one node, and four properties pages to
appear based on the content of a different type of node.

From the available options on the Extension Element Details part of the
Extensions page for the plugin I wasn't able to see any type of option
setting or class that I could use to manage making this determination.

I tried using setVisible(false) in the page itself but this apparently had
no effect on whether the page would be loaded into the preferences pane.
Does anyone know how to programmatically change the contents of the list
of preference pages at runtime? Thanks in advance,

Andy

PS to the mods: I had this question in eclipse.platform.rcp but no one
answered it so I thought I would try this group. Please delete the other
one. Thanks.
Re: IWorkBenchPropertyPages and disabling/enabling based on content [message #335142 is a reply to message #335074] Tue, 24 March 2009 06:17 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
> Does anyone know how to programmatically change the contents of the list
> of preference pages at runtime? Thanks in advance,

Can't you use the enabledWhen in the plugin.xml to solve the issue? For
example you can set the property page on an IProject only if it has some
nature.

- Prakash
--
http://blog.eclipse-tips.com
Previous Topic:Restoring toolbar item state of last session
Next Topic:my 3.3 plugin doesn't work in 3.4
Goto Forum:
  


Current Time: Sat Apr 20 02:11:01 GMT 2024

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

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

Back to the top