Examples of ILaunch


Examples of org.eclipse.debug.core.ILaunch

        }
        return p.getStreamsProxy();
    }

    private IProcess getIProcess() {
        final ILaunch launch = getData().getLaunch();
        final IProcess[] ps = launch.getProcesses();
        if (ps == null || ps.length == 0) {
            return null;
        }
        return ps[0];
    }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

        this.data = data;
    }

    @Override
    public IProcess get() {
        ILaunch launch = data.getLaunch();
        if (launch == null) {
            launch = launchPeer();
            data.setLaunch(launch);
        }
        return launch.getProcesses().length == 0 ? null : launch.getProcesses()[0];
    }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

        // }

        @Override
        public Object[] getChildren(final Object parentElement) {
            if (parentElement instanceof ILaunch) {
                final ILaunch launch = (ILaunch) parentElement;
                final List<IDebugTarget> nodes = nodeMap.get(launch);
                return nodes.toArray();
            } else if (parentElement instanceof IDebugTarget) {
                final IDebugTarget node = (IDebugTarget) parentElement;
                final List<DebugTraceEvent> events = eventMap.get(node);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

                switch (columnIndex) {
                case 0:
                    s = "launch";
                    break;
                case 1:
                    final ILaunch l = (ILaunch) element;
                    s = l.toString();
                    break;
                default:
                    s = "";
                    break;
                }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

                // if (viewer.getInput() != source) {
                // viewer.setInput(source);
                // viewer.refresh();
                // } else {
                if (data.getWhat() == TraceChangedEventData.ADDED) {
                    final ILaunch launch = data.getLaunch();
                    if (!launches.contains(launch)) {
                        launches.add(launch);
                        viewer.add(viewer.getInput(), launch);
                        parentMap.put(launch, viewer.getInput());
                    }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

                        } else if (id == DISCONNECT_ID) {
                            operation[0] = "Disconnect";
                            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

Examples of org.eclipse.debug.core.ILaunch

            final Object o = structuredSelection.getFirstElement();
            if (o instanceof ErlangDebugElement) {
                final ErlangDebugElement e = (ErlangDebugElement) o;
                erlangDebugTarget = e.getErlangDebugTarget();
            } else if (o instanceof ILaunch) {
                final ILaunch launch = (ILaunch) o;
                final IDebugTarget target = launch.getDebugTarget();
                if (target instanceof IErlangDebugNode) {
                    final IErlangDebugNode edn = (IErlangDebugNode) target;
                    erlangDebugTarget = edn.getErlangDebugTarget();
                }
            } else if (o instanceof RuntimeProcess) {
                final RuntimeProcess ep = (RuntimeProcess) o;
                final ILaunch launch = ep.getLaunch();
                final IDebugTarget target = launch.getDebugTarget();
                if (target instanceof IErlangDebugNode) {
                    final IErlangDebugNode edn = (IErlangDebugNode) target;
                    erlangDebugTarget = edn.getErlangDebugTarget();
                }
            }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

    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>();
    fileIds.add(new Path("/ab1c"));
    fileIds.add(new Path("/d1ef"));
    return new LaunchEvent(new Interval(dateTime, dateTime.plus(duration)),
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

    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>();
    fileIds.add(new Path("/1ab1c"));
    return new LaunchEvent(new Interval(dateTime, dateTime.plus(duration)),
        launch, config, type, fileIds);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

    String configName = "configName";
    ILaunchConfiguration config = mock(ILaunchConfiguration.class);
    given(config.getName()).willReturn(configName);

    String modeId = ILaunchManager.RUN_MODE;
    ILaunch launch = mock(ILaunch.class);
    given(launch.getLaunchMode()).willReturn(modeId);

    Set<IPath> filePaths = new HashSet<IPath>();
    filePaths.add(new Path("/abc"));
    filePaths.add(new Path("/def"));
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.