Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Property and Preference Page
Property and Preference Page [message #902746] Mon, 20 August 2012 09:04 Go to next message
Michael Fuss is currently offline Michael FussFriend
Messages: 1
Registered: August 2012
Junior Member
Hello,

I want to create a Preference and Property Page for my Plugin. For both pages I wanted the same structure, so I used "extends PropertyAndPreferencePage". For this, I use the Code of the "ProblemSeveritiesPreferencePage" and the "ProblemSeveritiesConfigurationBlock" (Compiler Errors/Warnings) as example. I adapted the code for my plugin. And for the Preference Page it works. But if I switch to the Property Page, it doesn´t work. I don´t see a page. there is nothing. If you want, I can post the code. Btw I get a warning in the code, called:

"Discouraged access: The method settingsUpdated() from the type OptionsConfigurationBlock is not accessible due to restriction on required library C:\eclipse\plugins\org.eclipse.jdt.ui_3.8.0.v20120524-1551.jar"

I use Eclipse 4.2. I don´t know what to do and i hope you can help me.

P:S: Sorry for my bad english Smile
Re: Property and Preference Page [message #902812 is a reply to message #902746] Mon, 20 August 2012 14:56 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 20.08.2012 11:04, Michael Fuss wrote:
> Hello,
>
> I want to create a Preference and Property Page for my Plugin. For
> both pages I wanted the same structure, so I used "extends
> PropertyAndPreferencePage". For this, I use the Code of the
> "ProblemSeveritiesPreferencePage" and the
> "ProblemSeveritiesConfigurationBlock" (Compiler Errors/Warnings) as
> example. I adapted the code for my plugin. And for the Preference Page
> it works. But if I switch to the Property Page, it doesn´t work. I
> don´t see a page. there is nothing. If you want, I can post the code.
Maybe you did not correctly register it in the plugin.xml (e.g. typo in
the ID).

> Btw I get a warning in the code, called:
>
> "Discouraged access: The method settingsUpdated() from the type
> OptionsConfigurationBlock is not accessible due to restriction on
> required library
> C:\eclipse\plugins\org.eclipse.jdt.ui_3.8.0.v20120524-1551.jar"
This is because you are using internal classes which are not API and not
designed to be used outside JDT UI.

Dani
> I use Eclipse 4.2. I don´t know what to do and i hope you can help me.
>
> P:S: Sorry for my bad english :)
Previous Topic:Own product in Eclipse 3.8
Next Topic:External jar class cannot be resolved
Goto Forum:
  


Current Time: Thu Oct 03 20:30:43 GMT 2024

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

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

Back to the top