Package org.locationtech.udig.project.ui.commands

Examples of org.locationtech.udig.project.ui.commands.OpenProjectElementCommand


       
    };
    Runner runner = new Runner(runners,2000);
    runner.schedule();
   
    OpenProjectElementCommand omCommand = new OpenProjectElementCommand(map);
    omCommand.run(new NullProgressMonitor());
   
    Display display = Display.getCurrent();
    while(!display.isDisposed() && !done) {
      display.readAndDispatch();
    }
View Full Code Here


                } catch (FactoryException e) {
                    throw (RuntimeException) new RuntimeException( ).initCause( e );
                }
                final Object object = resource.getContents().get(0);
                if (object instanceof IProjectElement) {
                    OpenProjectElementCommand command = new OpenProjectElementCommand(
                            (IProjectElement) object);
                    monitor.setTaskName(Messages.StartupOpenMaps_OpenTask + ": " //$NON-NLS-1$
                            + ((IProjectElement) object).getName());
                    ApplicationGIS.getActiveProject().sendASync(command);
                }
View Full Code Here

     *            object to open
     * @param wait
     *            whether or not to perform the action asynchronously
     */
    public static void openProjectElement(IProjectElement obj, boolean wait) {
        OpenProjectElementCommand command = new OpenProjectElementCommand(obj);
        if (wait)
            ApplicationGIS.getActiveProject().sendSync(command);
        else
            ApplicationGIS.getActiveProject().sendASync(command);
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.commands.OpenProjectElementCommand

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.