Examples of IShellProvider


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

Examples of org.eclipse.jface.window.IShellProvider

     * @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

Examples of org.eclipse.jface.window.IShellProvider

    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

Examples of org.eclipse.jface.window.IShellProvider

    }
    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

Examples of org.eclipse.jface.window.IShellProvider

    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

Examples of org.eclipse.jface.window.IShellProvider

    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

Examples of org.eclipse.jface.window.IShellProvider

            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

Examples of org.eclipse.jface.window.IShellProvider

   * 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

Examples of org.eclipse.jface.window.IShellProvider

                }
              }
            }
          }
        }
        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

Examples of org.eclipse.jface.window.IShellProvider

                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
Copyright © 2018 www.massapi.com. 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.