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 05:04 Go to next message
Michael Fuss is currently offline Michael Fuss
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 10:56 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
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: Sat Jul 26 07:16:40 EDT 2014

Powered by FUDForum. Page generated in 0.03430 seconds