Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.RefreshAction


       
        // close
        mCloseProjectAction = new CloseResourceAction(shell);
       
        // refresh
        mRefreshAction = new RefreshAction(shell);
       
        mRetargetRefreshAction = ActionFactory.REFRESH.create(window);
       
        mRetargetRefreshAction.setImageDescriptor(
                CasEditorPlugin.getTaeImageDescriptor(
View Full Code Here


  public void run() {
    final IResource resource= fTextEditor == null ? null : (IResource)fTextEditor.getEditorInput().getAdapter(IResource.class);
    if (resource == null)
      return;

    RefreshAction impl= new RefreshAction(fTextEditor.getSite().getShell()) {
      protected List getSelectedResources() {
        List result= new ArrayList(1);
        result.add(resource);
        return result;
      }
    };
    impl.run();
  }
View Full Code Here

        // close
        mCloseProjectAction = new CloseResourceAction(shell);

        // refresh
        mRefreshAction = new RefreshAction(shell);

        mRetargetRefreshAction = ActionFactory.REFRESH.create(window);

        mRetargetRefreshAction.setImageDescriptor(
                CasEditorPlugin.getTaeImageDescriptor(
View Full Code Here

            public Shell getShell() {
                return shell;
            }
        };

        refreshAction = new RefreshAction(sp) {
            @Override
            public void run() {
                final IStatus[] errorStatus = new IStatus[1];
                errorStatus[0] = Status.OK_STATUS;
                final WorkspaceModifyOperation op = (WorkspaceModifyOperation) createOperation(errorStatus);
View Full Code Here

  @SuppressWarnings("deprecation")
  @Override
  public void init(ICommonActionExtensionSite aSite) {
    super.init(aSite);
    this.shell_provider = aSite.getViewSite().getShell();
    this.refreshAction = new RefreshAction(this.shell_provider);      
    this.refreshAction.setActionDefinitionId("org.eclipse.ui.file.refresh"); //$NON-NLS-1$
        this.refreshAction.setDisabledImageDescriptor(IDEWorkbenchPlugin.getIDEImageDescriptor("dlcl16/refresh_nav.gif"));//$NON-NLS-1$
        this.refreshAction.setImageDescriptor(IDEWorkbenchPlugin.getIDEImageDescriptor("elcl16/refresh_nav.gif"));//$NON-NLS-1$
        this.refreshAction.setId(ID_PRJ_REFRESH_ACT);
       
View Full Code Here

TOP

Related Classes of org.eclipse.ui.actions.RefreshAction

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.