Package org.codemap

Examples of org.codemap.MapPerProject


        currentSize =  Math.min(dimension.x, dimension.y);
        updateVisualization();
    }
   
    private void updateVisualization() {
        MapPerProject activeMap = getActiveMap();
        if (activeMap == null) return;
       
        CodemapVisualization viz = activeMap
                .updateSize(currentSize)
                .getVisualization();
        textUpdater.setVisualization(viz);
        view.updateMapVisualization(viz);
    }
View Full Code Here


    public void setDirty() {
        CodemapCore plugin = CodemapCore.getPlugin();
        if (plugin == null) return;
       
        MapPerProject activeMap = plugin.getActiveMap();
        if (activeMap == null) return;
       
        Layer layer = activeMap.getLayer(CallOverlay.class);
        if (layer == null) {
            layer = new CallOverlay(this);
            activeMap.addLayer(layer);
            activeMap.redrawWhenChanges(changeTrigger.value());
        }
        changeTrigger.setChanged();
        dirty = true;
    }
View Full Code Here

            onQueryAdded(each);
        }
    }

    public MapSelection getSearchSelection() {
        MapPerProject activeMap = CodemapCore.getPlugin().getActiveMap();
        if (! activeMap.containsLayer(SearchResultsOverlay.class)) {
            SearchResultsOverlay searchOverlay = new SearchResultsOverlay(this);
            activeMap.addSelectionLayer(searchOverlay, mapSelection);
        }
        return mapSelection;          
    }
View Full Code Here

        registerSelectionWithActiveMap();
        return communicationSelection;
    }

    private void registerSelectionWithActiveMap() {
        MapPerProject activeMap = CodemapCore.getPlugin().getActiveMap();
        // TODO: find a way to queue incoming selections as long as there is no map selected
        if (activeMap == null) return;
        if (! activeMap.containsLayer(openFilesLayer)){
            activeMap.addSelectionLayer(openFilesLayer, communicationSelection);
        }
    }
View Full Code Here

  private void clearSelection() {
    getMarkerSelection().clear();
 

  private MarkerSelection getMarkerSelection() {
        MapPerProject activeMap = CodemapCore.getPlugin().getActiveMap();
        MarkerSelection selection = selectionCache.get(activeMap);
        if (selection == null) {
            selection = new MarkerSelection();
            selectionCache.put(activeMap, selection);
            MarkersOverlay markersOverlay = new MarkersOverlay();
            markersOverlay.setMarkerSelection(selection);
            activeMap.addSelectionLayer(markersOverlay, selection.getSelection());
        }
        return selection;
  }
View Full Code Here

TOP

Related Classes of org.codemap.MapPerProject

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.