[jira] Created: (UDIG-1586) Operation doesn't check for update if selection in layer view didn't changed

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (UDIG-1586) Operation doesn't check for update if selection in layer view didn't changed

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Operation doesn't check for update if selection in layer view didn't changed
----------------------------------------------------------------------------

                 Key: UDIG-1586
                 URL: http://jira.codehaus.org/browse/UDIG-1586
             Project: uDIG
          Issue Type: Bug
          Components: application, framework, tools and editing
    Affects Versions: UDIG 1.1.1, UDIG 1.2.M7
            Reporter: Frank Gasdorf
         Attachments: OpAction.patch

.. but other preferences the PropertyValues checks for. It's a problem everybody could run into if extending udig. the effect can described as follows:

- i created an operation, used the net.refractions.udig.ui.operation extension point to get an Action for the targetClass net.refractions.udig.project.ILayer
- subclassed AbstractPropertyValue and created my own PropertyValue class (checks preferences for layer using a preferences store)
- the user select a layer, changed the preference for the selected layer and as a result an operation should be available within the context menu of the still selected layer
BUT the action (OpAction) is not visible (PropertyValue would return true) because the selection didn't changed.
If the customer deselects the layer and selects it again it works.

But it is possible to run into performance issues if PropertyValue implementations are very heavy.

see patchfile

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel