Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IWorkspaceRunnable.run()


          public void run(final IProgressMonitor monitor_inner) throws CoreException{
                jsfUtil.createConfigFile(configPath);
            project.refreshLocal(IResource.DEPTH_INFINITE, monitor_inner);
          }
        };
        op.run(monitor);
      }
    } catch (final CoreException e) {
      JSFCorePlugin.log(e, "Exception occured while creating faces-config.xml");//$NON-NLS-1$
    }
View Full Code Here


          public void run(final IProgressMonitor monitor_inner) throws CoreException{
                jsfUtil.createConfigFile(configPath);
            project.refreshLocal(IResource.DEPTH_INFINITE, monitor_inner);
          }
        };
        op.run(monitor);
      }
    } catch (final CoreException e) {
      JSFCorePlugin.log(e, "Exception occured while creating faces-config.xml");//$NON-NLS-1$
    }
View Full Code Here

            }
            project.refreshLocal(IResource.DEPTH_INFINITE,
                monitor_inner);
          }
        };
        op.run(monitor);
      }
    } catch (final CoreException e) {
      TapestryCorePlugin.log(e,
          "Exception occured while copying Tapestry jar libraries");
    }
View Full Code Here

            }
            project.refreshLocal(IResource.DEPTH_INFINITE,
                monitor_inner);
          }
        };
        op.run(monitor);
      }
    } catch (final CoreException e) {
      TapestryCorePlugin.log(e,
          "Exception occured while copying Tapestry jar libraries");
    }
View Full Code Here

    final IWorkspaceRunnable workspaceRunnable =
        OverrideMethodsAction.createRunnable(implRoot, implType.resolveBinding(), null, -1, false);
    // execute in UI because operation works with widgets during apply
    ExecutionUtils.runLogUI(new RunnableEx() {
      public void run() throws Exception {
        workspaceRunnable.run(null);
      }
    });
    implUnit.save(null, true);
    implUnit.getBuffer().save(null, true);
  }
View Full Code Here

               try { if (out != null) out.close(); } catch (Exception e){}
            }
          }         
      };
      try {
        myRunnable.run(null);
      } catch (CoreException e){
        System.out.println(e.getMessage());
        e.printStackTrace();
      }
    }
View Full Code Here

          if (file.exists())
            file.delete(true, monitor);               
        }         
    };
    try {
      myRunnable.run(null);
    } catch (CoreException e){
      System.out.println(e.getMessage());
      e.printStackTrace();
    }
   
View Full Code Here

                      } finally {
                        try { if (in != null) in.close(); } catch (Exception e){}
                      }                     
                    }};
                  try {
                    myRunnable.run(null);
                  } catch (CoreException e){
                    System.out.println(e.getMessage());
                    e.printStackTrace();
                  }
               }
View Full Code Here

                        final ITypeBinding typeBinding = ( (AbstractTypeDeclaration) node ).resolveBinding();
                       
                        final IWorkspaceRunnable addUnimplementedConstructorsOp
                            = AddUnimplementedConstructorsAction.createRunnable( ast, typeBinding, null, -1, false, Flags.AccPublic, false );
                       
                        addUnimplementedConstructorsOp.run( null );
                       
                        final IWorkspaceRunnable overrideMethodsOp
                            = OverrideMethodsAction.createRunnable( ast, typeBinding, null, -1, false );
                       
                        overrideMethodsOp.run( null );
View Full Code Here

                        addUnimplementedConstructorsOp.run( null );
                       
                        final IWorkspaceRunnable overrideMethodsOp
                            = OverrideMethodsAction.createRunnable( ast, typeBinding, null, -1, false );
                       
                        overrideMethodsOp.run( null );
                    }
                   
                    monitor.worked( 1 );
                   
                    final OrganizeImportsAction organizeImportsAction = new OrganizeImportsAction( site );
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.