Examples of ILaunchConfigurationType


Examples of org.eclipse.debug.core.ILaunchConfigurationType

  }

  protected ILaunchConfiguration getLaunchConfiguration(String host, int port, int timeout, String appName,
      String launchName) {
    try {
      ILaunchConfigurationType launchConfigType = DebugPlugin.getDefault().getLaunchManager()
          .getLaunchConfigurationType(CloudFoundryDebuggingLaunchConfigDelegate.LAUNCH_CONFIGURATION_ID);
      if (launchConfigType != null) {

        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.ILaunchConfigurationType

  protected ILaunchConfiguration createConfiguration(IType type)
      throws CoreException {

    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();

    ILaunchConfigurationType configType = manager
        .getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);

    ILaunchConfigurationWorkingCopy workingCopy = configType.newInstance(
        null, manager.generateLaunchConfigurationName(type
            .getTypeQualifiedName('.')));
    workingCopy.setAttribute(
        IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
        type.getFullyQualifiedName());
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

   * @throws CoreException
   */
    public static ILaunchConfiguration createLaunchConfiguration(IProject project, Server server, IFile file) throws CoreException {
     
        ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType  configType = lm.getLaunchConfigurationType(IPHPDebugConstants.PHPServerLaunchType);
     
      if (!file.exists()) {
            Logger.debugMSG("File does not exist, cannot create launch configuration: " + file.toString());
            return null;
        }
       
        ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, project.getName());
        String debuggerID = PHPProjectPreferences.getDefaultDebuggerID(project);
        String URL = server.getBaseURL() + "/app_dev.php";
        AbstractDebuggerConfiguration debuggerConfiguration = PHPDebuggersRegistry.getDebuggerConfiguration(debuggerID);
       
        wc.setAttribute(PHPDebugCorePreferenceNames.PHP_DEBUGGER_ID, debuggerID);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

public class TestabilityLaunchConfigurationHelper {
  private Logger logger = new Logger();
  public ILaunchConfiguration getLaunchConfiguration(String projectName) {
    try {
      ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
      ILaunchConfigurationType type = launchManager
          .getLaunchConfigurationType(TestabilityConstants.TESTABILITY_LAUNCH_CONFIGURATION_TYPE);
      ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations(type);
      for (ILaunchConfiguration launchConfiguration : launchConfigurations) {
        String configProjectName =
            launchConfiguration.getAttribute(TestabilityConstants.CONFIGURATION_ATTR_PROJECT_NAME,
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

 
  public boolean isExistingLaunchConfigWithRunOnBuildOtherThanCurrent(
      String projectName, String launchConfigName) {
    try {
      ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
      ILaunchConfigurationType type = launchManager
          .getLaunchConfigurationType(TestabilityConstants.TESTABILITY_LAUNCH_CONFIGURATION_TYPE);
      ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations(type);
      for (ILaunchConfiguration launchConfiguration : launchConfigurations) {
        String configProjectName =
            launchConfiguration.getAttribute(TestabilityConstants.CONFIGURATION_ATTR_PROJECT_NAME,
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

                }
                return launchConfiguration;
            }
        }
        // try and make one
        final ILaunchConfigurationType launchConfigurationType = launchManager
                .getLaunchConfigurationType(IErlangLaunchDelegateConstants.CONFIGURATION_TYPE);
        ILaunchConfigurationWorkingCopy wc = null;
        wc = launchConfigurationType.newInstance(null, name);
        wc.setAttribute(ErlRuntimeAttributes.PROJECTS,
                ListsUtils.packList(projectNames, PROJECT_NAME_SEPARATOR));
        wc.setAttribute(ErlRuntimeAttributes.RUNTIME_NAME, projects.iterator().next()
                .getRuntimeInfo().getName());
        wc.setAttribute(ErlRuntimeAttributes.NODE_NAME, name);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

            ErlLogger.warn("Tool '" + cmd0 + "' can't be found in $PATH");
            return new ToolResults();
        }

        final ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        final ILaunchConfigurationType type = launchManager
                .getLaunchConfigurationType(IExternalToolConstants.ID_PROGRAM_BUILDER_LAUNCH_CONFIGURATION_TYPE);

        try {
            final ILaunchConfigurationWorkingCopy launchConfig = type.newInstance(null,
                    launchManager.generateLaunchConfigurationName("erlTool"));
            launchConfig.setAttribute(IExternalToolConstants.ATTR_LOCATION, cmd);
            launchConfig.setAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS, args);
            launchConfig
                    .setAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY, wdir);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

    }

    public static boolean isErlangLaunch(final ILaunch aLaunch) {
        try {
            final ILaunchConfiguration cfg = aLaunch.getLaunchConfiguration();
            final ILaunchConfigurationType type = cfg.getType();
            final String id = type.getIdentifier();
            return IErlangLaunchDelegateConstants.CONFIGURATION_TYPE.equals(id)
                    || IErlangLaunchDelegateConstants.CONFIGURATION_TYPE_INTERNAL
                            .equals(id);
        } catch (final CoreException e) {
            ErlLogger.warn(e);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

    }

    public static boolean isErlangInternalLaunch(final ILaunch aLaunch) {
        try {
            final ILaunchConfiguration cfg = aLaunch.getLaunchConfiguration();
            final ILaunchConfigurationType type = cfg.getType();
            final String id = type.getIdentifier();
            return IErlangLaunchDelegateConstants.CONFIGURATION_TYPE_INTERNAL.equals(id);
        } catch (final CoreException e) {
            ErlLogger.warn(e);
            return false;
        }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

        this.launch = launch;
    }

    public ILaunchConfiguration asLaunchConfiguration() {
        final ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
        final ILaunchConfigurationType type = manager
                .getLaunchConfigurationType(IErlangLaunchDelegateConstants.CONFIGURATION_TYPE_INTERNAL);
        ILaunchConfigurationWorkingCopy workingCopy;
        try {
            final RuntimeInfo info = getRuntimeInfo();
            final String name = getNodeName();
            workingCopy = type.newInstance(null, name);
            if (info.getVersion().isReleaseCompatible(new RuntimeVersion(17))) {
                workingCopy.setAttribute(DebugPlugin.ATTR_CONSOLE_ENCODING,
                        Charsets.UTF_8.name());
            } else {
                workingCopy.setAttribute(DebugPlugin.ATTR_CONSOLE_ENCODING,
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.