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

Examples of org.locationtech.udig.project.ui.internal.wizard.MapImport


        }
    }

    static Collection<IGeoResource> toResources( IProgressMonitor monitor, Object object, Class<?> callingClass ) {
        // create a wizard that does not add to map.  We will add all resources at once.
        MapImport mapImport = new MapImport(){

            @Override
            protected WorkflowWizard createWorkflowWizard( Workflow workflow,
                    java.util.Map<Class< ? extends State>, WorkflowWizardPageProvider> map ) {
                return new MapImportWizard(workflow, map){
                    @Override
                    protected boolean performFinish( IProgressMonitor monitor ) {
                        return true;
                    }
                };
           }
        };
        if (mapImport.run(monitor, object)) {

            ResourceSelectionState state = mapImport.getDialog().getWorkflowWizard().getWorkflow()
                    .getState(ResourceSelectionState.class);

            Set<IGeoResource> keySet = state.getResources().keySet();

            ProjectUIPlugin.trace(Trace.DND, callingClass,
View Full Code Here


        public void run() {
            Display display = Display.getCurrent();
            // final ArrayList<File> files = new ArrayList<File>();
            display.syncExec(new Runnable(){
                public void run() {
                    MapImport mapImport = new MapImport();
                    mapImport.getDialog().open();
                }
            });
        }
View Full Code Here

        }
        public void run() {
            Display display = Display.getCurrent();
            display.syncExec(new Runnable(){
                public void run() {
                    MapImport mapImport = new MapImport();
                    mapImport.getDialog().open();
                }
            });
        }
View Full Code Here

 
  MapImport mapImport;
 
  @Before
  public void setUp() throws Exception {
    mapImport = new MapImport();
    mapImport.getDialog().setBlockOnOpen(false);
    PlatformUI.getWorkbench().getActiveWorkbenchWindow()
      .getActivePage().showView(LayersView.ID);
  }
View Full Code Here

       
        for (ILayer layer : layers) {
            assertGeoResourceType(layer, DummyService.class);
        }

        mapImport=new MapImport();
        runMapImport(context);
       
        assertEquals(2, map.getMapLayers().size());
        assertEquals(map, ApplicationGIS.getActiveMap());
        IEditorReference[] editors = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
View Full Code Here

     * @see org.eclipse.ui.actions.ActionDelegate#runWithEvent(org.eclipse.jface.action.IAction,
     *      org.eclipse.swt.widgets.Event)
     */
    @Override
    public void runWithEvent( IAction action, Event event ) {
        MapImport mapImport = new MapImport();
        mapImport.getDialog().open();
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.internal.wizard.MapImport

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.