Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfiguration


        launch.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, captureOutput);
    }

    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) {
View Full Code Here


        }
    }

    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

        }
        return launch.getProcesses().length == 0 ? null : launch.getProcesses()[0];
    }

    private ILaunch launchPeer() {
        final ILaunchConfiguration launchConfig = data.asLaunchConfiguration();
        try {
            final boolean registerForDebug = data.getLaunch() != null
                    || SystemConfiguration.getInstance().isDeveloper();
            return launchConfig.launch(ILaunchManager.RUN_MODE,
                    new NullProgressMonitor(), false, registerForDebug);
        } catch (final CoreException e) {
            ErlLogger.error(e);
            return null;
        }
View Full Code Here

                    && erlangDebugTarget.getInterpretedModules().contains(moduleName)) {
                if (isModuleRunningInInterpreter(erlangDebugTarget, backend.getOtpRpc(),
                        moduleName)) {
                    abortContinueDialog(erlangDebugTarget);
                } else {
                    final ILaunchConfiguration launchConfiguration = erlangDebugTarget
                            .getLaunch().getLaunchConfiguration();
                    final EnumSet<ErlDebugFlags> debugFlags = ErlDebugFlags
                            .makeSet(launchConfiguration.getAttribute(
                                    ErlRuntimeAttributes.DEBUG_FLAGS, ErlDebugFlags
                                            .getFlag(ErlDebugFlags.DEFAULT_DEBUG_FLAGS)));
                    final boolean distributed = debugFlags
                            .contains(ErlDebugFlags.DISTRIBUTED_DEBUG);
                    erlangDebugTarget.interpret(project, moduleName, distributed, true);
View Full Code Here

            name = target.getName();
        } catch (final DebugException e) {
            name = ""; // never happens, ErlangDebugTarget doesn't throw this...
        }
        final String vmName = name;
        final ILaunchConfiguration config = target.getLaunch().getLaunchConfiguration();
        final String launchName = config != null ? config.getName() : "<unknown>";
        final IStatus status = new Status(IStatus.ERROR, ErlangCore.PLUGIN_ID,
                IStatus.ERROR, "Can't replace code", null);
        final String title = "Code Replace Failed";
        final String message = MessageFormat.format(
                "Some code changes cannot be replaced when being debugged.",
View Full Code Here

                            target.disconnect();
                        } else {
                            operation[0] = "Restart";
                            final ILaunch launch = target.getLaunch();
                            launch.terminate();
                            final ILaunchConfiguration config = launch
                                    .getLaunchConfiguration();
                            if (config != null && config.exists()) {
                                DebugUITools.launch(config, launch.getLaunchMode());
                            }
                        }
                    } catch (final DebugException e) {
                        ErlLogger.error(e);
View Full Code Here

            }
            if (erlangDebugTarget == null) {
                ErlLogger.debug("no debug target found for " + selection);
                return;
            }
            final ILaunchConfiguration launchConfiguration = erlangDebugTarget
                    .getLaunch().getLaunchConfiguration();
            setViewerInput(launchConfiguration);
            try {
                final EnumSet<ErlDebugFlags> debugFlags = ErlDebugFlags
                        .makeSet(launchConfiguration.getAttribute(
                                ErlRuntimeAttributes.DEBUG_FLAGS,
                                ErlDebugFlags.getFlag(ErlDebugFlags.DEFAULT_DEBUG_FLAGS)));
                distributed = debugFlags.contains(ErlDebugFlags.DISTRIBUTED_DEBUG);
            } catch (final CoreException e1) {
                distributed = false;
View Full Code Here

    @Override
    public void inputChanged(final Viewer viewer, final Object oldInput,
            final Object newInput) {
        modules = EMPTY;
        if (newInput instanceof ILaunchConfiguration) {
            final ILaunchConfiguration launchConfiguration = (ILaunchConfiguration) newInput;
            try {
                final List<String> interpret = launchConfiguration.getAttribute(
                        ErlRuntimeAttributes.DEBUG_INTERPRET_MODULES,
                        new ArrayList<String>());
                addModules(interpret);
            } catch (final CoreException e) {
                ErlLogger.warn(e);
View Full Code Here

    long duration = 19823;
   
    ILaunchConfigurationType type = mock(ILaunchConfigurationType.class);
    given(type.getIdentifier()).willReturn("typeId1");
   
    ILaunchConfiguration config = mock(ILaunchConfiguration.class);
    given(config.getName()).willReturn("configName1");
   
    ILaunch launch = mock(ILaunch.class);
    given(launch.getLaunchMode()).willReturn("run1");
   
    Set<IPath> fileIds = new HashSet<IPath>();
View Full Code Here

    long duration = 119823;
   
    ILaunchConfigurationType type = mock(ILaunchConfigurationType.class);
    given(type.getIdentifier()).willReturn("typeId2");
   
    ILaunchConfiguration config = mock(ILaunchConfiguration.class);
    given(config.getName()).willReturn("configName2");
   
    ILaunch launch = mock(ILaunch.class);
    given(launch.getLaunchMode()).willReturn("run2");
   
    Set<IPath> fileIds = new HashSet<IPath>();
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.