Package org.locationtech.udig.project.ui.internal

Examples of org.locationtech.udig.project.ui.internal.MapEditorWithPalette


        ToolManager tools = (ToolManager) ApplicationGIS.getToolManager();
        MapPart currentEditor = tools.currentEditor;
        if (currentEditor != null) {
            if (currentEditor instanceof MapEditorWithPalette) {
                MapEditorWithPalette editor2 = (MapEditorWithPalette) currentEditor;

                MapEditDomain editDomain = editor2.getEditDomain();

                PaletteViewer paletteViewer = editDomain.getPaletteViewer();
                if( paletteViewer != null ){
                    for( MapToolEntry entry : this.mapToolEntries ) {
   
View Full Code Here


  public void setUp() throws Exception {
        ConnectionFactoryManager.instance().getConnectionFactoryDescriptors();
   
    UDIGControlDropListener dropper = UDIGDragDropUtilities.getEditorDropListener();
    handler = dropper.getHandler();
    handler.setTarget(new MapEditorWithPalette());
    done = false;
  }
View Full Code Here

                activeModalToolProxy.getModalTool().setActive(true);               
            }
            editor.setSelectionProvider(activeModalToolProxy.getSelectionProvider());
            if( editor instanceof MapEditorWithPalette){
                // temporary cast while we sort out if MapPart can own an MapEditDomain
                MapEditorWithPalette editor2 = (MapEditorWithPalette) editor;
                MapEditDomain editDomain = editor2.getEditDomain();
                editDomain.setActiveTool( activeModalToolProxy.getId() );
            }

        }
    }
View Full Code Here

        if( mapEditor instanceof MapEditorPart ){
            MapEditorPart part = (MapEditorPart) mapEditor;
          partSize = part.getComposite().getSize();
        }
        else if( mapEditor instanceof MapEditorWithPalette){
          MapEditorWithPalette part = (MapEditorWithPalette) mapEditor;
          partSize = part.getComposite().getSize();
        }
        else {
          //java.awt.Dimension size = map.getRenderManager().getMapDisplay().getDisplaySize();
          //Point partSize = new Point(size.width,size.height);
          partSize = new Point(500,500);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.internal.MapEditorWithPalette

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.