[udig-devel] Axios tools revisited; summary of tool api breakage
Jody Garnett
jgarnett at refractions.net
Tue Mar 4 18:12:38 PST 2008
After Jesse's tool clean up I have a couple of categories of compile
errors I would like to talk to everyone about:
> @Override
> protected String getExtensionID() {
> return "es.axios.udig.ui.editingtools.PolygonTool2"; //$NON-NLS-1$
> }
This method produces an "must override a superclass method" error -
simply because getExtentionID is no longer part of the tool api. I
suspect that this is for two reasons:
- the information was already available in XML; making you specify it
again in code was only a chance to introduce errors
- by leaving the ID as part of the extension point definition we can
reuse the same Java class as the implementation for multiple tools in
the user interface
I cannot find this information right now; I expect if you want it at the
programming level you will need to provide an "public void
init(IConfigurationElement element)" method and record the ID for yourself.
> selectGeometryBehaviour.setCreateGeomOnNoneSelect(ShapeType.POLYGON);
This method no longer exists on SelectFeatureBehaviour; I am not quite
sure what functionality replaces it. If anyone was paying attention when
Jesse did this work I need some help figuring out what happened.
Jody
More information about the udig-devel
mailing list