Hi guys!

I an silent attempt to fix the bug in object I hit a blocking issue.

I cannot find a way to have the Merge View show selected feature on opening.

Some background information: I implemented an Operation which now allows
the user to use Box Selection tool to select some features, right click on
them and select "Operations.. -> Merge Selected"
I implemented some filter listeners so that, ONCE the Merge View is opened,
all changes in selection (made with Box Selection tool) are reflected in
the Merge View. This allows the user to forget about the Dustbin button to
remove features from Merge View and visually mange the features to merge
through direct selection in map. Then the merging workflow flows as before:
actual merge is triggered by a button in the Merge View.

The PROBLEM is setting up the INITIAL content of the merge view. Features
selected BEFORE right clicking an selecting "Operation. -> Merge Selected"
do not trigger any filter chnge event in Merge View as they belong to the
filter before the Merge View is launched. More I could not find any
ViewPart lifecylce event (like those in Microsoft framework like onLoad)
that could be used to trigger a once-only check for previously selected
feature to feed in the Merge View on opening.
Since merge view is opened by the Operation using a display.asyncExec call
I cannot rely on this non UI-thread to make updates to the view (or.. ..at
least, I have no idea how to!)

So where can I plug-in a check for existing preselected features in
selected layer?

Marco

---------- Forwarded message ----------
From: Jody Garnett (JIRA) <j...@codehaus.org>
Date: 2012/6/19
Subject: [udig-devel] [jira] (UDIG-1921) Replace merge tool with merge
operation and merge view
To: udig-devel@lists.refractions.net


       Jody 
Garnett<https://jira.codehaus.org/secure/ViewProfile.jspa?name=jgarnett>created
[image:
Sub-task] UDIG-1921 <https://jira.codehaus.org/browse/UDIG-1921>
 *Replace merge tool with merge operation and merge
view*<https://jira.codehaus.org/browse/UDIG-1921>
       *Issue Type:*  [image: Sub-task] Sub-task   *Affects Versions:*
UDIG 1.3.2
*Assignee:*  Unassigned   *Components:*  tools and editing
*Created:* 18/Jun/12 9:47 PM
*Description:*

When the selection, merge, view workflow is working we can remove the
existing merge tool.

Reminder: This is easier then trying to accept every idea of how selection
can be done for the merge tool. Let each selection idea have its own
selection tools; and we can run merge on the result.
  *Project:*  uDIG <https://jira.codehaus.org/browse/UDIG>
*Priority:*  [image:
Major] Major   *Reporter:*  Jody
Garnett<https://jira.codehaus.org/secure/ViewProfile.jspa?name=jgarnett>
      This
message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators<https://jira.codehaus.org/secure/ContactAdministrators!default.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
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to