Package org.eclipse.jface.window

Examples of org.eclipse.jface.window.IShellProvider


        this.site = site;
        setText(Messages.getString("OpenErlangAction.0")); //$NON-NLS-1$
        provider = selectionProvider;
        selectedElement = null;
        selectedClosedProjects = Sets.newHashSet();
        final IShellProvider shellProvider = (IShellProvider) site.getViewSite()
                .getAdapter(IShellProvider.class);
        openResourceAction = new OpenResourceAction(shellProvider);
    }
View Full Code Here


     * @see IActionDelegate#run(IAction)
     */
    @Override
    public void run(final IAction action) {
        if (fBreakpoint != null) {
            IShellProvider provider;
            if (fPart != null) {
                provider = fPart.getSite();
            } else {
                provider = new IShellProvider() {
                    @Override
                    public Shell getShell() {
                        final IWorkbench workbench = PlatformUI.getWorkbench();
                        final IWorkbenchWindow window = workbench
                                .getActiveWorkbenchWindow();
View Full Code Here

    public Object execute( final ExecutionEvent event ) throws ExecutionException {

        final IWorkbenchWindow activeWorkbenchWindow = HandlerUtil.getActiveWorkbenchWindow(event);
       
        IShellProvider shellProvider = new IShellProvider(){

            public Shell getShell() {
                return new Shell(activeWorkbenchWindow.getShell());
            }
View Full Code Here

    }
    public Object execute(ExecutionEvent event) throws ExecutionException {

        final IWorkbenchWindow activeWorkbenchWindow = HandlerUtil.getActiveWorkbenchWindow(event);

        IShellProvider shellProvider = new IShellProvider() {
            public Shell getShell() {
                return new Shell(activeWorkbenchWindow.getShell());
            }
        };
View Full Code Here

    public Object execute( final ExecutionEvent arg0 ) throws ExecutionException {

        final IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow();
       
        IShellProvider shellProvider = new IShellProvider(){
            public Shell getShell() {
                return new Shell(activeWorkbenchWindow.getShell());
            }
        };
View Full Code Here

    resAction.setActionDefinitionId(ITextEditorActionDefinitionIds.SHOW_INFORMATION);
    setAction(ITextEditorActionConstants.SHOW_INFORMATION, resAction);
   

    PropertyDialogAction openProperties= new PropertyDialogAction(
        new IShellProvider() {
          public Shell getShell() {
            return getSite().getShell();
          }
        },
        new ISelectionProvider() {
View Full Code Here

            menu.appendToGroup(ICommonMenuConstants.GROUP_BUILD, refreshAction);
        }
    }

    protected void makeActions() {
        IShellProvider sp = new IShellProvider() {
            @SuppressWarnings("synthetic-access")
            @Override
            public Shell getShell() {
                return shell;
            }
View Full Code Here

   * there isn't one it will use the current workbench window.
   *
   * @return IShellProvider
   */
  static IShellProvider getShellProvider() {
    return new IShellProvider() {

      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.jface.window.IShellProvider#getShell()
View Full Code Here

                }
              }
            }
          }
        }
        IShellProvider shellProvider;
        IRunnableContext runnableContext;
        IWorkbenchWindow w = getActiveWorkbenchWindow();
        if (w == null && windows.length > 0) {
          w = windows[0];
        }
        if (w != null) {
          shellProvider = (WorkbenchWindow)w;
          runnableContext = w;
        } else {
          shellProvider = new IShellProvider() {
            public Shell getShell() {
              return null;
            }
          };
          runnableContext = new ProgressMonitorDialog(null);
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) {
View Full Code Here

TOP

Related Classes of org.eclipse.jface.window.IShellProvider

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.