Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation


      //
      final IFile modelFile = getModelFile();

      // Do the work within an operation.
      //
      WorkspaceModifyOperation operation =
        new WorkspaceModifyOperation() {
          @Override
          protected void execute(IProgressMonitor progressMonitor) {
            try {
              // Create a resource set
              //
View Full Code Here


      while (container instanceof View) {
        ((View) container).persist();
        container = container.eContainer();
      }
      try {
        new WorkspaceModifyOperation() {
          protected void execute(IProgressMonitor monitor)
              throws CoreException, InvocationTargetException,
              InterruptedException {
            try {
              for (Iterator it = diagramFacet.eResource()
View Full Code Here

      //
      final IFile modelFile = getModelFile();

      // Do the work within an operation.
      //
      WorkspaceModifyOperation operation =
        new WorkspaceModifyOperation() {
          @Override
          protected void execute(IProgressMonitor progressMonitor) {
            try {
              // Create a resource set
              //
View Full Code Here

   * Allows wizard to finish if true is returned.
   *
   */
  public boolean performFinish() {
   
    IRunnableWithProgress op = new WorkspaceModifyOperation(null) {

      protected void execute(IProgressMonitor monitor)
          throws CoreException, InterruptedException,
          InvocationTargetException {
             
View Full Code Here

    final Map<Object, Object> saveOptions = new HashMap<Object, Object>();
    saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);

    // Do the work within an operation because this is a long running activity that modifies the workbench.
    //
    WorkspaceModifyOperation operation =
      new WorkspaceModifyOperation() {
        // This is the method that gets invoked when the operation runs.
        //
        @Override
        public void execute(IProgressMonitor monitor) {
          // Save the resources to the file system.
View Full Code Here

   * Allows wizard to finish if true is returned.
   *
   */
  public boolean performFinish() {
   
    IRunnableWithProgress op = new WorkspaceModifyOperation(null) {

      protected void execute(IProgressMonitor monitor)
          throws CoreException, InterruptedException,
          InvocationTargetException {
             
View Full Code Here

    /* (non-Javadobc)
     * @see org.eclipse.jface.wizard.IWizard#performFinish()
     */
    public boolean performFinish() {
               
        WorkspaceModifyOperation op = new WorkspaceModifyOperation()
        {
           protected void execute(IProgressMonitor monitor)
           throws CoreException , InvocationTargetException, InterruptedException{
              if (monitor == null)
                 monitor = new NullProgressMonitor();
View Full Code Here

    /**
     * The worker method, generates the code itself.
     */
    private void doFinishWSDL2Java() {
        WorkspaceModifyOperation op = new WorkspaceModifyOperation()
        {
           protected void execute(IProgressMonitor monitor)
           throws CoreException, InvocationTargetException, InterruptedException{
              if (monitor == null)
                 monitor = new NullProgressMonitor();
View Full Code Here

    }

    private void doFinishJava2WSDL() throws Exception {

        WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
            protected void execute(IProgressMonitor monitor) {
                if (monitor == null)
                    monitor = new NullProgressMonitor();

                /*
 
View Full Code Here

                }

                IWorkspace workspace = ResourcesPlugin.getWorkspace();
                final IFile newFile = workspace.getRoot().getFile(path);

                WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
                    public void execute(final IProgressMonitor monitor)
                            throws CoreException {
                        try {
                            ByteArrayOutputStream out = new ByteArrayOutputStream();
                            newFile.create(new ByteArrayInputStream(output.getBytes()), true, monitor);
View Full Code Here

TOP

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

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.