Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.PropertyDialogAction


    exportAction = new ExportSessionAction(getSite().getWorkbenchWindow());
    kb.registerAction(exportAction);
    refreshAction = new RefreshSessionAction();
    kb.registerAction(refreshAction);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.REFRESH.getId(), refreshAction);
    propertiesAction = new PropertyDialogAction(getSite(), viewer);
    propertiesAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.PROPERTIES);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.PROPERTIES.getId(), propertiesAction);
  }
View Full Code Here


    exportAction = new ExportSessionAction(getSite().getWorkbenchWindow());
    kb.registerAction(exportAction);
    refreshAction = new RefreshSessionAction();
    kb.registerAction(refreshAction);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.REFRESH.getId(), refreshAction);
    propertiesAction = new PropertyDialogAction(getSite(), viewer);
    propertiesAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.PROPERTIES);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.PROPERTIES.getId(), propertiesAction);
  }
View Full Code Here

    exportAction = new ExportSessionAction(getSite().getWorkbenchWindow());
    kb.registerAction(exportAction);
    refreshAction = new RefreshSessionAction();
    kb.registerAction(refreshAction);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.REFRESH.getId(), refreshAction);
    propertiesAction = new PropertyDialogAction(getSite(), viewer);
    propertiesAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.PROPERTIES);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.PROPERTIES.getId(), propertiesAction);
  }
View Full Code Here

    exportAction = new ExportSessionAction(getSite().getWorkbenchWindow());
    kb.registerAction(exportAction);
    refreshAction = new RefreshSessionAction();
    kb.registerAction(refreshAction);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.REFRESH.getId(), refreshAction);
    propertiesAction = new PropertyDialogAction(getSite(), viewer);
    propertiesAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.PROPERTIES);
    getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.PROPERTIES.getId(), propertiesAction);
  }
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

    kb.registerAction(exportAction);

    refreshAction = new RefreshSessionAction();
    ab.setGlobalActionHandler(ActionFactory.REFRESH.getId(), refreshAction);

    propertiesAction = new PropertyDialogAction(getSite(), viewer);
    propertiesAction
        .setActionDefinitionId(IWorkbenchActionDefinitionIds.PROPERTIES);
    ab.setGlobalActionHandler(ActionFactory.PROPERTIES.getId(),
        propertiesAction);
  }
View Full Code Here

    kb.registerAction(exportAction);

    refreshAction = new RefreshSessionAction();
    ab.setGlobalActionHandler(ActionFactory.REFRESH.getId(), refreshAction);

    propertiesAction = new PropertyDialogAction(getSite(), viewer);
    propertiesAction
        .setActionDefinitionId(IWorkbenchActionDefinitionIds.PROPERTIES);
    ab.setGlobalActionHandler(ActionFactory.PROPERTIES.getId(),
        propertiesAction);
  }
View Full Code Here

                IStructuredSelection ssel = (IStructuredSelection) selection;
                Object element = ssel.getFirstElement();
                if (element instanceof BugGroup) {
                    final BugGroup group = (BugGroup) element;
                    if (group.getType() == GroupType.Project) {
                        PropertyDialogAction paction = new PropertyDialogAction(new IShellProvider() {
                            public Shell getShell() {
                                return null;
                            }
                        }, new ISelectionProvider() {
                            public void addSelectionChangedListener(ISelectionChangedListener listener) {
                                // noop
                            }

                            public ISelection getSelection() {
                                return new StructuredSelection(group.getData());
                            }

                            public void removeSelectionChangedListener(ISelectionChangedListener listener) {
                                // noop
                            }

                            public void setSelection(ISelection selection) {
                                // noop
                            }
                        });
                        paction.run();
                        return;
                    }
                }
                targetPart.getSite().getPage().showView(IPageLayout.ID_PROP_SHEET);
            }
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

    action= new TextOperationAction(EditorMessages.getBundleForConstructedKeys(), "Editor.OpenHyperlink.", this, HyperlinkManager.OPEN_HYPERLINK, true); //$NON-NLS-1$;
    action.setHelpContextId(IAbstractTextEditorHelpContextIds.OPEN_HYPERLINK_ACTION);
    action.setActionDefinitionId(ITextEditorActionDefinitionIds.OPEN_HYPERLINK);
    setAction(ITextEditorActionConstants.OPEN_HYPERLINK, action);

    PropertyDialogAction openProperties= new PropertyDialogAction(
        new IShellProvider() {
          public Shell getShell() {
            return getSite().getShell();
          }
        },
        new ISelectionProvider() {
          public void addSelectionChangedListener(ISelectionChangedListener listener) {
          }
          public ISelection getSelection() {
            return new StructuredSelection(getEditorInput());
          }
          public void removeSelectionChangedListener(ISelectionChangedListener listener) {
          }
          public void setSelection(ISelection selection) {
          }
        });
    openProperties.setActionDefinitionId(IWorkbenchCommandConstants.FILE_PROPERTIES);
    setAction(ITextEditorActionConstants.PROPERTIES, openProperties);

    markAsContentDependentAction(ITextEditorActionConstants.UNDO, true);
    markAsContentDependentAction(ITextEditorActionConstants.REDO, true);
    markAsContentDependentAction(ITextEditorActionConstants.FIND, true);
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.