Package org.locationtech.udig.tools.merge

Examples of org.locationtech.udig.tools.merge.MergeContext


        treeFeatures.addSelectionListener(new SelectionAdapter() {

            @Override
            public void widgetSelected(SelectionEvent e) {
                MergeContext mergeContextSingleton = MergeContext.getInstance();
                if (mergeContextSingleton.getMergeMode() == MergeContext.MERGEMODE_TOOL) {
                    // The handleTreeEventClick function selects in map the clicked treeFeature:
                    // such behaviour is not compatible with MERGEMODE_OPERATION due to filterChange
                    // listeners in place when in that mode, so the function call is allowed just
                    // when in TOOL mode
                handleTreeEventClick(e);
View Full Code Here


   */
  private void addPreSelectedFeatures() {
    // Use the currEventTriggeringLayer to store the layer that
    // pseudo-triggered (no actual
    // listener, just) this
    MergeContext mergeContextSingleton = MergeContext.getInstance();
    List<SimpleFeature> selectedFeatures = mergeContextSingleton
        .getPreselectedFeatures();
    this.currEventTriggeringLayer = mergeContextSingleton
        .getPreSelectedLayer();
    if (selectedFeatures != null) {
      this.addSourceFeatures(selectedFeatures);
      // Clear preselected features to prevent repeated additions
      mergeContextSingleton.clearPreselectedFeatures();
      this.display();
    }
  }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.merge.MergeContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.