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

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


    private void openMap( final UDIGEditorInput input ) {
        try {
            IEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input,
                    input.getEditorId(), true, IWorkbenchPage.MATCH_NONE);
           
            ProjectExplorer explorer = ProjectExplorer.getProjectExplorer();
            explorer.setSelection(Collections.singleton(input.getProjectElement()), true);

            if( part instanceof MapEditorPart ){
                MapEditorPart mapEditor=(MapEditorPart) part;
                while( !mapEditor.getComposite().isVisible() || !mapEditor.getComposite().isEnabled() ){
                    if( !Display.getCurrent().readAndDispatch() ){
View Full Code Here


                    IEditorPart editor = page.findEditor(desc.createInput(element));
                    if (editor != null)
                        page.closeEditor(editor, false);
                }
            }
            ProjectExplorer explorer = ProjectExplorer.getProjectExplorer();
            explorer.collapseToLevel(project, 1);
        }
    }
View Full Code Here

TOP

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

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.