Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfiguration


    public void launchesTerminated(ILaunch[] launches) {
      for (ILaunch l : launches) {
        try {
          if (l.isTerminated()) {
            ILaunchConfiguration launchConfiguration = l
                .getLaunchConfiguration();
            Map<?, ?> attributes = launchConfiguration
                .getAttributes();
            Object object = attributes
                .get(ORG_ECLIPSE_JDT_LAUNCHING_PROJECT_ATTR);
            if (object instanceof String) {
              knownLaucnhes.remove(object);
View Full Code Here


    }

    public void launchesAdded(ILaunch[] launches) {
      for (ILaunch l : launches) {
        try {
          ILaunchConfiguration ilc = l.getLaunchConfiguration();
          Map attr = ilc.getAttributes();
          return;
        } catch (CoreException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
View Full Code Here

            Object attribute = p
                .getAttribute("org.eclipse.debug.ui.ATTR_CONSOLE_PROCESS");
            if (attribute != null) {
              IProcess pr = (IProcess) attribute;
              ILaunch launch = pr.getLaunch();
              ILaunchConfiguration launchConfiguration = launch
                  .getLaunchConfiguration();
              Map<?, ?> attributes = null;
              try {
                attributes = launchConfiguration
                    .getAttributes();
              } catch (CoreException e1) {
                Activator.log(e1);
                return;
              }
              final String project = (String) attributes
                  .get(ORG_ECLIPSE_JDT_LAUNCHING_PROJECT_ATTR);

              try {
                ILaunchConfigurationType type = launchConfiguration
                    .getType();
                String identifier = type.getIdentifier();
                if (identifier
                    .equals(COM_GOOGLE_GDT_ECLIPSE_SUITE_WEBAPP)) {
                  p.getDocument().addDocumentListener(
View Full Code Here

    String projectName = project.getName();
    IProject project = Util.getProject(projectName);
   
    Util.createModuleEntry(project, moduleName);
   
    ILaunchConfiguration launchConfig = Helper.findOrCreateLaunch(moduleName, projectName, true);
    ILaunchConfigurationWorkingCopy workingCopy = launchConfig.getWorkingCopy();
    workingCopy.setAttribute(Constants.LAUNCH_ATTR_GWT_COMPILE, true);
//    workingCopy.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);
    workingCopy.launch(ILaunchManager.RUN_MODE, null, false, true );
//    launch(launchConfig);
   
View Full Code Here

import xvrengine.debug.IXVRConstants;

public class XVRLaunchShortcut implements ILaunchShortcut {

  private ILaunchConfiguration createConfiguration(IResource resource){
    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
   
    try {
      ILaunchConfigurationType configType = getConfigurationType();
      wc = configType.newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(resource.getProject().getName() + " Configuration"));
View Full Code Here

          IResource resource = (IResource)obj;
          //if(!resource.getFileExtension().equals("s3d")) continue;
         
          try {
            //ILaunchConfiguration configuration = findConfiguration(resource.getFullPath().toString());
            ILaunchConfiguration configuration = findConfiguration(resource.getProject());

            if(configuration == null) configuration = createConfiguration(resource);
            configuration.launch(mode, null);
          } catch (CoreException e) {
          }
         
          break;
        }
View Full Code Here

  @Override
  public void launch(IEditorPart editor, String mode) {
    IEditorInput input = editor.getEditorInput();
    IResource resource = ResourceUtil.getResource(input);
    if(resource.getFileExtension().equals("s3d")){
      ILaunchConfiguration config = findConfiguration(resource.getProject());
      try {
        if(config == null) config = createConfiguration(resource);
        config.launch(mode, null);
      } catch (CoreException e) {
      }
    }
  }
View Full Code Here

    try
    {
      project = findProject(scope, PlatformUI.getWorkbench().getProgressService());
     
      ILaunchConfiguration config =findLaunchConfiguration(project.getName(),getConfigurationType());
      if(config!=null)
      {
        //config already exists for the project.
        launch(config, mode);
        return;
View Full Code Here

    {
      ILaunchConfiguration[] configs = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(configType);
      candidateConfigs = new ArrayList<ILaunchConfiguration>(configs.length);
      for (int i = 0; i < configs.length; i++)
      {
        ILaunchConfiguration config = configs[i];

//        String defaultModule = config.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_DEFAULT, "");
        String pName = config.getAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_PROJECT_NAME, "");
//        String operation = config.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_OPERATION, "");

        if (//defaultModule.equals(getModuleName(type).toString())
            //&&
            pName.equalsIgnoreCase(projectName)
View Full Code Here

        @Override
        protected IStatus run(IProgressMonitor monitor)
        {
          try
          {
            ILaunchConfiguration vdmLaunchConfig = getVdmLaunchConfig(deDebugPort);
            ILaunch vdmLaunch = vdmLaunchConfig.launch("debug", null);
            launch.addDebugTarget(vdmLaunch.getDebugTarget());
          } catch (CoreException e)
          {
            return new Status(IStatus.ERROR, IDebugConstants.PLUGIN_ID, "Faild to launch VDM-RT debug", e);
          }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.ILaunchConfiguration

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.