Preference page. [message #155892] |
Wed, 07 June 2006 12:54 |
Eclipse User |
|
|
|
Originally posted by: Kulbir.Singh.trianz.com
Hi Developers,
I am new to eclipse and have so many doubts. Looking for your help to
resolve some of the issues.
I want to call a preference page dialog box through Menu Actions. Yeah,
I know that we can contribute our action in plugin.xml file with the
extension of org.eclipse.ui.preferences. but the problem is it will add
the preferences page to the
Windows->preferences. But I dont want that preferences. I have created
own menu item in which I contributed an action called MyPreferences. So
whenever this action will trigger the preference page should open. Can
anybody help me to resolve this problem It will be appreciate if anybody
send me UML diagram for that.
Thanks and regards
|
|
|
Re: Preference page. [message #157633 is a reply to message #155892] |
Tue, 20 June 2006 09:45 |
Eclipse User |
|
|
|
Originally posted by: kirana_mk.yahoo.com
Hi Kuldeep,
did you get any answer for this?
Even I am also in search of an answer for similar question.
My scenario is different:
Do the following-
Click on the "New Java Project" button on the tool bar. A "New Java
Project" Window will open. Click on the "Configure default..." link.
Preferences(filtered) pages is opened.
I want to do like this. I have created my own page using SWT controls and
added a link on it. When I click on this link I want to get the
preferences page opened. Did you get my point?.
If you have answer for this question and also if you have found answer for
your question plz do reply to me.
Thanking you,
Regards,
Kiran.
Kulbir wrote:
> Hi Developers,
> I am new to eclipse and have so many doubts. Looking for your help to
> resolve some of the issues.
> I want to call a preference page dialog box through Menu Actions. Yeah,
> I know that we can contribute our action in plugin.xml file with the
> extension of org.eclipse.ui.preferences. but the problem is it will add
> the preferences page to the
> Windows->preferences. But I dont want that preferences. I have created
> own menu item in which I contributed an action called MyPreferences. So
> whenever this action will trigger the preference page should open. Can
> anybody help me to resolve this problem It will be appreciate if anybody
> send me UML diagram for that.
> Thanks and regards
|
|
|
Re: Preference page. [message #157780 is a reply to message #157633] |
Wed, 21 June 2006 12:06 |
Eclipse User |
|
|
|
Originally posted by: contact_kulbir.yahoo.co.in
Hi Kiran,
yeh i got your point, what i know is you dont need to use swt control. you
can go by the same way, what the eclipse guys are calling the preference
page dialogs. you can use the instance of preferencedialog class and
provide the shell for that. lets take an instance.. u have your own
action. right? inside the run method u can do like this
run(Iaction action){
PreferenceDialog dlg = new PreferenceDialog(shell,prferencemanager);
dlg.open();
}
you can use the eclipse preferencemangager or u can create your own
manager..
might be it will help you
regards
Kulbir
|
|
|
Powered by
FUDForum. Page generated in 0.08461 seconds