[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: where to store customized palette?

Frank Dyck wrote:
Ok I got a nice GEF editor with a very customizable palette.
I have implemented saving and reading the palette from an rdf file.
At the moment it is simply saved along with the diagram into the same file as the diagrammodel which is also an rdf file.


Where should I normally store the palette?
In the plugin preferences? or as a propertypage of  the resource?


I would save it in the preferences. unless you want each editor view to have its own customized palette.


Preferences store = yourPlugin.getDefault().getPluginPreferences(); //a static method of grabbing your plugin, then getting the preferences from it






-- Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into the sheepfold{}, but climbeth up some other *way, the same is a thief and a robber."

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD  19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see http://www.rigidsoftware.com/Chess/chess.html