Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-users] setting a property

Hi Rudolf:

I think we are getting a bit mixed up...
- the tools are displayed in the toolbar and are enabled or disabled
based on the selected layer (according to what is filled out in the
plugin.xml)
- the operations are often displayed by right clicking on something

Since this is a programming question would you like to move discussion
over to the developer list?
Jody

On Tue, Jun 2, 2009 at 10:32 PM, Hochmeister Rudolf
<rudolf.hochmeister@xxxxxxxxxx> wrote:
> Hi,
>
> I want to set a property (in plugin.xml) on a tool so that it only gets
> activated on a specific layer.
> I found LayerSelectionProperty in package
> net.refractions.udig.project.ui.operations, which I think does the job
> for me. But the problem is, that I cannot init it with the right
> property-values. I do not know the ID of this property-extension.
>
> How is the mapping done from propertyId to the implemented
> property-class (is there a catalog available or something).
> Can you give me an example/hint to init the property properly on a
> layer?
>
> I tried to figure out how it works on a geometry-property, but I failed
> :-(
> How is the mapping:
> net.refractions.udig.project.ui.GeometryType -->
> net.refractions.udig.project.ui.internal.tool.display.GeometryProperty
> done?
>
> cheers,
> Rudi
>
> _______________________________________________
> udig-users mailing list
> udig-users@xxxxxxxxxxxxxxxxxxxxx
> http://lists.refractions.net/mailman/listinfo/udig-users
>


Back to the top