Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.PropertyDialogAction


     * @see Action#run()
     */
    public void run() {
        IBreakpoint breakPoint = getBreakpoint();
        if (breakPoint != null) {
            PropertyDialogAction action = new PropertyDialogAction(getTextEditor().getEditorSite(),
                    new ISelectionProvider() {
                        public void addSelectionChangedListener(ISelectionChangedListener listener) {
                        }

                        public ISelection getSelection() {
                            return new StructuredSelection(getBreakpoint());
                        }

                        public void removeSelectionChangedListener(ISelectionChangedListener listener) {
                        }

                        public void setSelection(ISelection selection) {
                        }
                    });
            action.run();
        }
    }
View Full Code Here


    initialize(part.getEditorSite());
  }

  private void createSiteActions(IWorkbenchSite site) {

    fOpenPropertiesDialog = new PropertyDialogAction(site,
        site.getSelectionProvider());
    fOpenPropertiesDialog
        .setActionDefinitionId(IWorkbenchActionDefinitionIds.PROPERTIES);

    fOpenTypeHierarchy = new OpenTypeHierarchyAction(site);
View Full Code Here

    public NewTextSearchActionGroup(IViewPart part) {
        Assert.isNotNull(part);
        IWorkbenchPartSite site = part.getSite();
        fSelectionProvider = site.getSelectionProvider();
        fPage = site.getPage();
        fOpenPropertiesDialog = new PropertyDialogAction(site, fSelectionProvider);
        fOpenAction = new OpenFileAction(fPage);
        ISelection selection = fSelectionProvider.getSelection();

        if (selection instanceof IStructuredSelection)
            fOpenPropertiesDialog.selectionChanged((IStructuredSelection) selection);
View Full Code Here

        .setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    ab.setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
    viewer.addSelectionChangedListener(openAction);

    PropertyDialogAction propertiesAction = new PropertyDialogAction(getSite(),
        viewer);
    propertiesAction
        .setActionDefinitionId(IWorkbenchCommandConstants.FILE_PROPERTIES);
    ab.setGlobalActionHandler(ActionFactory.PROPERTIES.getId(),
        propertiesAction);
    propertiesAction.setEnabled(false);
    viewer.addSelectionChangedListener(propertiesAction);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.dialogs.PropertyDialogAction

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.