All,
I have checked in the change so you can add properties to a Task.
Properties are keyed by a QName instance, see
org.openjump.core.model.OpenJumpTaskProperties for the list of standard
properties (just SRID at the moment). If you want to add a standard
property it would go in this constant file and there should be
discussion on this list before adding any new values. Developers are
free for their own plugin to create an properties they wish in their own
code. They should be in their own namespace (e.g.
http://foo.org/myPlugin) and not in any namespace below
http://openjump.org/.
For SRID's I've started adding constants in the class
org.openjump.core.epsg.EpsgConstants. Again I've used QNames as srid
names. This means if someone wanted to support another naming scheme
other than EPSG they can. I think EPSG should be our standard which all
plug-ins can understand if they need to. Other naming schemes could be
used but plug-ins may not now how to handle these other schemes. The
EpsgConstants class has a getSrid method to convert a QName srid to a
int srid and another to do the reverse. Epsg QNames will be in the form
{http://epsg.org/}3005.
I've also added the support for a getTask method on AbstractLayerable
and Category which then calls getTask on the LayerManager to get the
task instance which I added to the LayerManager. I did not add it to the
Layerable interface as I did not want to break any plug-ins which have
custom Layerable subclasses.
Let me know if any of this causes you any issues.
I will at some point need to add a window to show the properties for the
task. And we could add other properties such as Author,Copyright, Dates etc.
Paul
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel