Examples of OpenFileAction


Examples of org.eclipse.ui.actions.OpenFileAction

   *
   * @param page
   */
  OpenActionGroup(IWorkbenchPage page) {
    mPage = page;
    mOpenFileAction = new OpenFileAction(mPage);
  }
View Full Code Here

Examples of org.eclipse.ui.actions.OpenFileAction

   *
   * @param page
   */
  OpenActionGroup(IWorkbenchPage page) {
    mPage = page;
    mOpenFileAction = new OpenFileAction(mPage);
  }
View Full Code Here

Examples of org.eclipse.ui.actions.OpenFileAction

    if (activePage == null) {
      return;
    }

    // Add 'Open' menu item
    OpenFileAction openFileAction = new OpenFileAction(activePage) {
      @SuppressWarnings("synthetic-access")
      public void run() {
        okPressed();
      }
    };
    openFileAction.selectionChanged(selectedItems);
    if (!openFileAction.isEnabled()) {
      return;
    }
    menuManager.add(new Separator());
    menuManager.add(openFileAction);
View Full Code Here

Examples of org.eclipse.ui.actions.OpenFileAction

        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);
        else
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.