Examples of MapEditDomain


Examples of org.locationtech.udig.project.ui.viewers.MapEditDomain

        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 ) {
   
                        if (paletteViewer.getEditPartRegistry().get(entry) != null) {
                            paletteViewer.setActiveTool(entry);
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapEditDomain

    viewer.setSelectionProvider(selectionProvider);   
  }

  @Override
  public final void createPartControl(Composite parent) {
    editDomain = new MapEditDomain(null);
    try {
      IProgressMonitor monitor = getViewSite().getActionBars().getStatusLineManager().getProgressMonitor();
      viewer = new MapViewer(parent, SWT.DOUBLE_BUFFERED);
      List<IGeoResource> resources = new ArrayList<IGeoResource>();
      createResources(resources, monitor);
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapEditDomain

        fd.right = new FormAttachment(size);
        fd.bottom = new FormAttachment(100);
        overviewmapviewer.getControl().setLayoutData(fd);

        // create map
      editDomain = new MapEditDomain(null);

        mapviewer = new MapViewer(parent, SWT.MULTI | SWT.NO_BACKGROUND);
        mapviewer.setMap(mainmap);
        fd = new FormData();
        fd.left = new FormAttachment(0);
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapEditDomain

            }
            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

Examples of org.locationtech.udig.project.ui.viewers.MapEditDomain

     * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
     */
    public void createPartControl( final Composite parent ) {
        ShutdownTaskList.instance().addPreShutdownTask(shutdownTask);
        if( editDomain == null ){
            editDomain = new MapEditDomain(this);
        }
        setEditDomain( editDomain );
       
        // super class sets up the splitter; it needs the setEditDomain to be defined
        // prior to the method being called (so the FlyoutPaletteComposite split can latch on)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.