[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Diagram preferences
|
- From: bjzhanghao@xxxxxxxx (Hao Zhang)
- Date: Tue, 12 Sep 2006 05:27:52 +0000 (UTC)
- Newsgroups: eclipse.modeling.gmf
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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/tutorials/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