Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.doSave()


       
        Map attrs = (Map) buildermap.get(command);
        ILaunchConfigurationWorkingCopy configwc = config.getWorkingCopy();
        configwc.setAttribute(IDebugUIConstants.ATTR_APPEND_TO_FILE, ((Boolean)attrs.get(IDebugUIConstants.ATTR_APPEND_TO_FILE)).booleanValue());
        configwc.setAttribute(IDebugUIConstants.ATTR_CAPTURE_IN_FILE, (String)attrs.get(IDebugUIConstants.ATTR_CAPTURE_IN_FILE));
        configwc.doSave();
      }
    }
  }
 
  void buildWorkspace(IProgressMonitor monitor) throws Exception
View Full Code Here


      workCopy.setAttribute(
          ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO,
          sourceDir.getMemento());

      workCopy.doSave();
    } catch (Exception e) {
      // something wrong, skip add sources
    }
  }
View Full Code Here

        RunJettyRunTab.initDefaultConfiguration(wc,
            proj == null ? null : proj.getName(), launchConfigName);

        //set mapped resource , let next time we could execute this directly from menuitem.
        wc.setMappedResources(new IResource[] {type});
        config = wc.doSave();
      }else{
        showError("Project is not a regular webapp project (missing WEB-INF\\web.xml");
      }
    } catch (CoreException exception) {
      showError( exception.getStatus().getMessage());
View Full Code Here

      workCopy.setAttribute(
          ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO,
          sourceDir.getMemento());

      workCopy.doSave();
    } catch (Exception e) {
      // something wrong, skip add sources
    }
  }
View Full Code Here

          //Just in case, I am afraid this happened in some special case.
          //Anyway , if a map contains a null key will cause RunConfiguration get NPE when writing to XML.
          if(nonchecked.containsKey(null)){
            nonchecked.remove(null);
          }
          workingcopy.doSave();
          fClasspathViewer.refresh(event.getElement());
        } catch (CoreException e) {
          logger.severe("CheckStateChangedEvent - exception: " + e);
          e.printStackTrace();
        }
View Full Code Here

        RunJettyRunTab.initDefaultConfiguration(wc,
            proj == null ? null : proj.getName(), launchConfigName);

        //set mapped resource , let next time we could execute this directly from menuitem.
        wc.setMappedResources(new IResource[] {type});
        config = wc.doSave();
      }else{
        showError("Project is not a regular webapp project (missing WEB-INF)");
      }
    } catch (CoreException exception) {
      showError( exception.getStatus().getMessage());
View Full Code Here

        wc = configType.newInstance(null, launchConfigName);
        RunJettyRunTab.initDefaultConfiguration(wc, type.getProject(), launchConfigName);
        //set mapped resource , let next time we could execute this directly from menuitem.
        wc.setMappedResources(new IResource[] {type});
        config = wc.doSave();
      }else{
        showError("Project is not a regular webapp project (missing WEB-INF\\web.xml");
      }
    } catch (CoreException exception) {
      showError( exception.getStatus().getMessage());
View Full Code Here

        wc = configType.newInstance(null, launchConfigName);
        RunJettyRunTab.initDefaultConfiguration(wc, type.getProject(), launchConfigName);
        //set mapped resource , let next time we could execute this directly from menuitem.
        wc.setMappedResources(new IResource[] {type});
        config = wc.doSave();
      }else{
        showError("Project is not a regular webapp project (missing WEB-INF\\web.xml");
      }
    } catch (CoreException exception) {
      showError( exception.getStatus().getMessage());
View Full Code Here

          //Just in case, I am afraid this happened in some special case.
          //Anyway , if a map contains a null key will cause RunConfiguration get NPE when writing to XML.
          if(nonchecked.containsKey(null)){
            nonchecked.remove(null);
          }
          workingcopy.doSave();
          fClasspathViewer.refresh(event.getElement());
        } catch (CoreException e) {
          logger.severe("CheckStateChangedEvent - exception: " + e);
          e.printStackTrace();
        }
View Full Code Here

        wc = configType.newInstance(null, launchConfigName);
        RunJettyRunTab.initDefaultConfiguration(wc, type.getProject(), launchConfigName);
        //set mapped resource , let next time we could execute this directly from menuitem.
        wc.setMappedResources(new IResource[] {type});
        config = wc.doSave();
      }else{
        showError("Project is not a regular webapp project (missing WEB-INF\\web.xml");
      }
    } catch (CoreException exception) {
      showError( exception.getStatus().getMessage());
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.