Examples of ILaunchConfiguration


Examples of org.eclipse.debug.core.ILaunchConfiguration

    @Override
    protected ISourceContainer[] createSourceContainers() throws CoreException {
        List<ISourceContainer> result = new LinkedList<ISourceContainer>();

        ILaunchConfiguration config = getLaunchConfiguration();
        Project project = LaunchUtils.getBndProject(config);
        if (project != null) {
            try {
                Collection<Container> runbundles = project.getRunbundles();
                for (Container runbundle : runbundles) {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

   *
   * @param bin
   * @param mode
   */
  private void launch(IFile bin, String mode) {
    ILaunchConfiguration config = findLaunchConfiguration(bin, mode);
    if (config != null) {
      DebugUITools.launch(config, mode);
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

   * @param mode
   * @return a re-useable or new config or <code>null</code> if none
   */
  private ILaunchConfiguration findLaunchConfiguration(IFile bin,
      String mode) {
    ILaunchConfiguration configuration = null;
    List candidateConfigs = Collections.EMPTY_LIST;
    try {
      ILaunchConfiguration[] configs = DebugPlugin.getDefault()
          .getLaunchManager().getLaunchConfigurations();
      candidateConfigs = new ArrayList(configs.length);
      for (int i = 0; i < configs.length; i++) {
        ILaunchConfiguration config = configs[i];
        String projectName = config.getAttribute(
            PerlLaunchConfigurationConstants.ATTR_PROJECT_NAME,
            (String) null);
        String programFile = config.getAttribute(
            PerlLaunchConfigurationConstants.ATTR_STARTUP_FILE,
            (String) null);
        String name = bin.getName();
        if (programFile != null && programFile.equals(name)) {
          if (projectName != null
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

   *
   * @param file
   * @return ILaunchConfiguration
   */
  private ILaunchConfiguration createConfiguration(IFile file) {
    ILaunchConfiguration config = null;
    String projectName = file.getProjectRelativePath().toString();
    ILaunchConfigurationType[] configType = getLaunchManager()
        .getLaunchConfigurationTypes();
    ILaunchConfigurationType type = null;
    for (int i = 0; i < configType.length; i++) {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

        IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(appName);

        // Create the launch configuration, whether the project exists
        // or not, as there may
        // not be a local project associated with the deployed app
        ILaunchConfiguration configuration = launchConfigType.newInstance(project, launchName);
        ILaunchConfigurationWorkingCopy wc = configuration.getWorkingCopy();

        if (project != null && project.isAccessible()) {
          wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());

        }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

    return null;
  }

  protected IStatus connect(String debugIP, int debugPort, final IProgressMonitor monitor, String launchLabel) {

    final ILaunchConfiguration launchConfiguration = getLaunchConfiguration(debugIP, debugPort, 5000,
        getApplicationID(), launchLabel);
    boolean successful = false;
    IStatus status = Status.OK_STATUS;
    if (launchConfiguration != null) {
      try {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

      DebugPlugin.getDefault().addDebugEventListener(debugListener);
    }
  }

  protected void setSourceLocator(ILaunch launch) throws CoreException {
    ILaunchConfiguration configuration = launch.getLaunchConfiguration();
    if (launch.getSourceLocator() == null) {
      ISourceLookupDirector sourceLocator = new JavaSourceLookupDirector();
      ISourcePathComputer locator = getLaunchManager().getSourcePathComputer(SOURCE_LOCATOR);
      if (locator != null) {
        sourceLocator.setSourcePathComputer(locator); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

  public IPackageFragmentRoot[] getPackageFragmentRoots(
      IProgressMonitor monitor) throws CoreException {
    IType type = getMainType(monitor);

    ILaunchConfiguration configuration = createConfiguration(type);
    IPath[] classpathEntries = getRuntimeClasspaths(configuration);

    List<IPackageFragmentRoot> pckRoots = new ArrayList<IPackageFragmentRoot>();

    // Since the java project may have other required projects, fetch the
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

  }

  @Override
  public void buildFinished(IJavaProject project) {
    super.buildFinished(project);
    ILaunchConfiguration launchConfiguration =
        configurationHelper.getLaunchConfiguration(project.getElementName());
    if (launchConfiguration != null) {
      try {
        ILaunchConfigurationWorkingCopy workingCopy = launchConfiguration.getWorkingCopy();
        workingCopy.setAttribute(
            TestabilityConstants.CONFIGURATION_ATTR_RUNNING_IN_COMPILATION_MODE, true);
        ILaunch launch = workingCopy.launch(TestabilityConstants.TESTABILITY_MODE, null);
      } catch (CoreException e) {
        logger.logException(e);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

        }
    }

    private void doLaunch(final String mode, final Collection<IErlProject> projects)
            throws CoreException {
        final ILaunchConfiguration launchConfiguration = getLaunchConfiguration(projects,
                mode);
        bringConsoleViewToFront();
        launchConfiguration.launch(mode, 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.