Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram preferences
Diagram preferences [message #44722] Mon, 11 September 2006 08:18 Go to next message
Eclipse UserFriend
Hi,
I added MyDiagramsPreferencePage to org.eclipse.ui.preferencePages
extension point, there exists my diagram preference page, but setting them
does not affect diagram behavior. For example, I set "Show popup bars" to
false, but there is still bars prompting. Anything additional step I
should do?

Regards,
Zhang Hao
Re: Diagram preferences [message #45301 is a reply to message #44722] Mon, 11 September 2006 14:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cmahoney.ca.ibm.com

Zhang Hao,

Did you take a look at this tutorial?
http://help.eclipse.org/help31/topic/org.eclipse.gmf.doc/tut orials/diagram/diagramPreferencesTutorial.html

You are probably missing the step, "Registering the Preference Store".

Regards,
Cherie

Hao Zhang wrote:
> Hi,
> I added MyDiagramsPreferencePage to org.eclipse.ui.preferencePages
> extension point, there exists my diagram preference page, but setting
> them does not affect diagram behavior. For example, I set "Show popup
> bars" to false, but there is still bars prompting. Anything additional
> step I should do?
>
> Regards,
> Zhang Hao
>
Re: Diagram preferences [message #45519 is a reply to message #45301] Tue, 12 September 2006 01:27 Go to previous messageGo to next message
Eclipse UserFriend
It has been generated in MyDiagramEditorPlugin#startup(), but it seems the
PreferencesHint uses plugin id rather than editor id, I modified

PreferencesHint.registerPreferenceStore(DIAGRAM_PREFERENCES_ HINT,
getPreferenceStore());

into

PreferencesHint.registerPreferenceStore(new
PreferencesHint("com.my.diagram.part.MyDiagramEditorID"),
getPreferenceStore());

then it works.

A generation template bug?

Cherie Revells (Mahoney) wrote:

> Zhang Hao,

> Did you take a look at this tutorial?
>
http://help.eclipse.org/help31/topic/org.eclipse.gmf.doc/tut orials/diagram/diagramPreferencesTutorial.html

> You are probably missing the step, "Registering the Preference Store".

> Regards,
> Cherie

> Hao Zhang wrote:
>> Hi,
>> I added MyDiagramsPreferencePage to org.eclipse.ui.preferencePages
>> extension point, there exists my diagram preference page, but setting
>> them does not affect diagram behavior. For example, I set "Show popup
>> bars" to false, but there is still bars prompting. Anything additional
>> step I should do?
>>
>> Regards,
>> Zhang Hao
>>
Re: Diagram preferences [message #46308 is a reply to message #45519] Tue, 12 September 2006 09:00 Go to previous message
Eclipse UserFriend
Generated code references preferenceStore associated with
DIAGRAM_PREFERENCES_HINT, so it's doubtful
registerPreferenceStore(anotherId) works unless you modified rest of the
code to use same id. If it's the case, file the bug, please.

Artem

"Hao Zhang" <bjzhanghao@21cn.com> wrote in message
news:2c2759bbdf6e75f60ccd2e22790d24ac$1@www.eclipse.org...
> It has been generated in MyDiagramEditorPlugin#startup(), but it seems the
> PreferencesHint uses plugin id rather than editor id, I modified
>
> PreferencesHint.registerPreferenceStore(DIAGRAM_PREFERENCES_ HINT,
> getPreferenceStore());
>
> into
> PreferencesHint.registerPreferenceStore(new
> PreferencesHint("com.my.diagram.part.MyDiagramEditorID"),
> getPreferenceStore());
>
> then it works.
>
> A generation template bug?
>
> Cherie Revells (Mahoney) wrote:
>
>> Zhang Hao,
>
>> Did you take a look at this tutorial?
>>
> http://help.eclipse.org/help31/topic/org.eclipse.gmf.doc/tut orials/diagram/diagramPreferencesTutorial.html
>
>> You are probably missing the step, "Registering the Preference Store".
>
>> Regards,
>> Cherie
>
>> Hao Zhang wrote:
>>> Hi,
>>> I added MyDiagramsPreferencePage to org.eclipse.ui.preferencePages
>>> extension point, there exists my diagram preference page, but setting
>>> them does not affect diagram behavior. For example, I set "Show popup
>>> bars" to false, but there is still bars prompting. Anything additional
>>> step I should do?
>>>
>>> Regards,
>>> Zhang Hao
>>>
>
Previous Topic:Multiple editpart objects with numbers in name
Next Topic:Re: EMFCoreUtil.getReferencers returns empty set
Goto Forum:
  


Current Time: Wed Jul 16 10:01:05 EDT 2025

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

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

Back to the top