Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] Created: (UDIG-1641) RenderContextImpl throws exception

Okay with a bit of help from Jesse I actually have a way out.

The CreateAndSelectNewFeature command is defined in =
net.refractions.udig.tool.edit; so I can process the extension point =
from there and
issue a different command if there is a feature panel available.

So I don't need to add an extension point right now; even though it is =
the best idea going forward.

Jody

On 04/05/2010, at 5:34 PM, Jody Garnett wrote:

> Hi Jesse:
>=20
> A bit of a design puzzle; the AddFeatureCommand is where I would like =
to "hook in" to the feature creation process (and prompt the user to =
fill in initial fields if a FeaturePanel is available to do so). Indeed =
I may make a flag so feature panels can mark if they want to be used =
during creation or not.
>=20
> The trick is:
> - AddFeatureCommand is defined in net.refractions.udig.project
> - FeaturePanelProcess is defined in net.refractions.udig.project.ui
>=20
> So what is a kind way to proceed?
> - formally blow a hole in AddFeatureCommand and access it to process =
an extension point? To follow Jesse naming it could be a =
"CreateFeatureInterceptor"
> - move the FeaturePanelProcessor into ne.refractions.udig.project? No =
that does not make sense it is a UI thing
> - Ask AddFeatureCommand it to be configurable? This would be useful in =
filling in feature fields based on current context (something else I =
want to do; but was going to do as part of the initial dialog opening)
>=20
> Accepting ideas on this one.
>=20
> Jody
>=20
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top