Examples of NullProgressMonitor


Examples of org.eclipse.core.runtime.NullProgressMonitor

    FileUtils.copy(loggingProperties, new File(confTargetDir, "logging.properties"));
 
   
  public void start(WGARuntime runtime, IProgressMonitor monitor) throws IOException, CoreException {
    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
    if (!isRunning()) {
      notifyListeners(TomcatServerStateListener.STATE_STARTING);
     
     
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

    }
  }

  public void stop(IProgressMonitor monitor) throws IOException, DocumentException {
    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
   
    if (_currentRuntime != null) {   
      try {
        _stopRequested = true;
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

  private static Change createDirlinkChange(DirlinkRefactoringInformation info) throws Exception {

   
    if(info.getArguments() instanceof MoveArguments || info.getArguments() instanceof RenameArguments){
      TextFileChange change = new TextFileChange("", info.getFile());
      IDocument doc = change.getCurrentDocument(new NullProgressMonitor());
      // create Textedit
   
 
      FindReplaceDocumentAdapter find = new FindReplaceDocumentAdapter(doc);
      IRegion resultStart = find.find(0, "location\\s*=\\s*\"", true, true, false, true);
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

      if(errors.isEmpty()) {
       
     
      ByteArrayOutputStream configContent = new ByteArrayOutputStream();   
      WGAConfiguration.write(config, configContent);
      change.setEdit(new ReplaceEdit(0, change.getCurrentDocument((new NullProgressMonitor())).getLength(), configContent.toString()))
      return change;
      } else {
        for(ValidationError current : errors){
          WGADesignerPlugin.getDefault().logError(current.getMessage());
        }
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

  public static void createDesign(IFolder folder, String designKey, DesignTemplate designTemplate){     
    try {
      FileUtils.unzip(designTemplate.getContent(), folder.getLocation().toFile());
     
      // remove properties from project
      folder.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
      IFile props = folder.getFile(DesignTemplate.PROPERTIES_FILENAME);
      if (props.exists()) {
        props.delete(true, new NullProgressMonitor());
      }     
     
      DesignDefinition syncinfo = new DesignDefinition();   
      syncinfo.setDesignKey(designKey);
      syncinfo.setFileEncoding(DesignDefinition.FILEENCODING_CSCONFIG_DEFINED);     
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

    IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
    for (IProject project : projects) {
      if (project.isAccessible() && isWGAPublisherProject(project)) {
        WGADeployment deployment = getDeployment(project.getName());
        if (deployment != null) {
          deployment.updateWGA(project, new NullProgressMonitor());
        } else {
          createDeployment(project, new NullProgressMonitor());
        }       
      }
    }
   
    // register an libraryset for each deployment which is not a workspace
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

    ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.PRE_BUILD|IResourceChangeEvent.PRE_DELETE);
  }

  public void createOrUpdateDefaultDeployment(File defaultWGAWar, IProgressMonitor monitor) throws FileSystemException, IOException, ZipException {
    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
    FileSystemManager fsManager = VFS.getManager();
    FileObject propFile = fsManager.resolveFile( "zip:" + defaultWGAWar.toURI() + "!/WEB-INF/wgabuild.properties");
    //_defaultDeploymentName = DEFAULT_DEPLOYMENT_PREFIX + WGADeployment.determineWGAVersion(propFile.getURL().openStream(), "_", true, false);
       
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

  public void removeDeployment(WGADeployment deployment, IProgressMonitor monitor) {
//    if (deployment.getName().equals(getDefaultDeploymentName())) {
//      throw new IllegalArgumentException("Default deployment cannot be removed.");
//    }
    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
    try {
      monitor.beginTask("Removing wga deployment '" + deployment.getBaseDir().getAbsolutePath() + "'.", 1);
      WGUtils.delTree(deployment.getBaseDir())
     
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

    return _workDir;
  }
 
  public void updateWGA(File wgaWarOrFolder, IProgressMonitor monitor) throws ZipException, IOException {
    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
    try {
      monitor.beginTask("Updating wga deployment.", 3);
     
      monitor.setTaskName("Deleting workdir " + _workDir.getAbsolutePath() + "'.");
View Full Code Here

Examples of org.eclipse.core.runtime.NullProgressMonitor

   * @throws IOException
   * @throws CoreException
   */
  public void updateWGA(IResourceDelta projectDelta, IProgressMonitor monitor) throws CoreException {
    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
    try {
      monitor.beginTask("Incremental updating wga deployment.", 1);
      IResourceDelta delta = projectDelta.findMember(new Path("WebContent"));
      if (delta != null) {
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.