Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkbenchPart


            }
        }
    }

    public void partHidden( IWorkbenchPartReference partRef ) {
        IWorkbenchPart part = partRef.getPart(false);
        if( part instanceof MapPart){
            visibleMaps.remove(part);
        }
    }
View Full Code Here


            visibleMaps.remove(part);
        }
    }

    public void partOpened( IWorkbenchPartReference partRef ) {
        IWorkbenchPart part = partRef.getPart(false);
        if( part instanceof MapPart){
            addOpenMap(part);
        }
    }
View Full Code Here

                return new Shell(activeWorkbenchWindow.getShell());
            }

        };

        IWorkbenchPart activePart = activeWorkbenchWindow.getActivePage().getActivePart();
        ISelectionProvider selectionProvider = activePart.getSite().getSelectionProvider();
        PropertyDialogAction action = new org.eclipse.ui.dialogs.PropertyDialogAction(
                shellProvider, selectionProvider);
        PreferenceDialog dialog = action.createDialog();
        dialog.open();
View Full Code Here

            IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                    .getActivePage();
            IViewReference[] refs = page.getViewReferences();

            for( IViewReference reference : refs ) {
                IWorkbenchPart part = reference.getPart(false);
                if (page.isPartVisible(part) && part instanceof IUDIGView)
                    views.add((IUDIGView) part);
            }
        }
View Full Code Here

            public Shell getShell() {
                return new Shell(activeWorkbenchWindow.getShell());
            }
        };

        IWorkbenchPart activePart = activeWorkbenchWindow.getActivePage().getActivePart();
        ISelectionProvider provider = activePart.getSite().getSelectionProvider();

        ISelectionProvider selectionProvider = new SelectionProviderForwarder(provider,forwardType);

        PropertyDialogAction action = new PropertyDialogAction(shellProvider, selectionProvider);
        PreferenceDialog dialog = action.createDialog();
View Full Code Here

            public Shell getShell() {
                return new Shell(activeWorkbenchWindow.getShell());
            }
        };

        IWorkbenchPart activePart = activeWorkbenchWindow.getActivePage().getActivePart();
        ISelectionProvider provider = activePart.getSite().getSelectionProvider();
        if( provider == null ){
            MessageDialog.openInformation( activeWorkbenchWindow.getShell(), "Service Properties", "Please select a service");
            return null;
        }
        ISelectionProvider selectionProvider = new ServiceSelectionProvider( provider );
View Full Code Here

       
        IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage();
        if( activePage==null )
            return;
       
        IWorkbenchPart activePart = activePage.getActivePart();
        if( activePart==null )
            return;
       
        IActionBars actionBars;
        if( activePart instanceof IViewPart ){
View Full Code Here

    public void activate( EditToolHandler handler ) {
        IActionBars2 actionBars = handler.getContext().getActionBars();
        if( actionBars==null )
            return;
        IWorkbenchPart part=(IWorkbenchPart) ApplicationGISInternal.getActiveEditor();
       
        if( part == null ) return;
       
        oldAction=ApplicationGIS.getToolManager().getDELETEAction();
        IKeyBindingService keyBindingService = part.getSite().getKeyBindingService();
        if( oldAction!=null )
            keyBindingService.unregisterAction(oldAction);

        deleteVertexHandler = new DeleteVertexHandler(handler);
        if( oldAction!=null ){
View Full Code Here

    public void deactivate( EditToolHandler handler ) {
        IActionBars2 actionBars = handler.getContext().getActionBars();
        if( actionBars==null || oldAction==null ){
            return;
        }
        IWorkbenchPart part=ApplicationGISInternal.getActiveEditor();
       
        if( part == null ) return;
       
        IWorkbenchPartSite site = part.getSite();
       
        IKeyBindingService keyBindingService = site.getKeyBindingService();
        keyBindingService.unregisterAction(deleteVertexHandler);
        deleteVertexHandler=null;
       
View Full Code Here

    }

    public void activate() {
      page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      page.addPartListener(this);
      IWorkbenchPart activePart = page.getActivePart();
      partActivated(activePart);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkbenchPart

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.