Package ch.ethz.prose.eclipse.internal.run

Examples of ch.ethz.prose.eclipse.internal.run.ProseRunNode


        // check for cancellation
        if (monitor.isCanceled()) { return; }

        if (configuration.getAttribute(ProseLaunchConfiguration.ATTR_LAUNCH_PROSE_SERVER, true))
            ProsePlugin.getDefault().addRun(new ProseRunNode(mainTypeName, "localhost", port, launch));
        monitor.done();
    }
View Full Code Here


    protected ProseRunNode run;

    protected ProsePlugin plugin;

    protected void setUp() {
        run = new ProseRunNode("test", "dummyhost", -1, null);
        plugin = ProsePlugin.getDefault();
    }
View Full Code Here

    /**
     * Test if listeners are notified on <code>ProseRun</code> additions.
     */
    public void testAddRunNotification() {
        ProseRunNode run = new ProseRunNode("test", "dummyhost", -1, null);
        ProsePlugin.getDefault().addRun(run);
        assertEquals(run, listener.run);
    }
View Full Code Here

    /**
     * Test if listeners are notified on <code>ProseRun</code> removals.
     */
    public void testRemoveRunNotification() {
        ProseRunNode run = new ProseRunNode("test", "dummyhost", -1, null);
        ProsePlugin.getDefault().addRun(run);
        ProsePlugin.getDefault().removeRun(run);
        assertEquals(run, listener.run);
    }
View Full Code Here

    /**
     * Test if listeners are notified when a <code>ProseRun</code> is set
     * unreachable.
     */
    public void testUnreachableRunNotification() {
        ProseRunNode run = new ProseRunNode("test", "dummyhost", -1, null);
        run.setUnreachable();
        assertEquals(run, listener.run);
    }
View Full Code Here

    /**
     * Test if listeners are notified when an <code>Aspect</code> has been
     * inserted.
     */
    public void testInsertAspectNotification() {
        ProseRunNode run = new ProseRunNode("test", "dummyhost", -1, null);
        AspectManagerNode aspectManager = new AspectManagerNode(run, true);
        ProsePlugin.getDefault().fireAspectInserted(aspectManager);
        assertEquals(aspectManager, listener.aspectManager);
    }
View Full Code Here

    /**
     * Test if listeners are notified when an <code>Aspect</code> has been
     * withdrawn.
     */
    public void testWithdrawAspectNotification() {
        ProseRunNode run = new ProseRunNode("test", "dummyhost", -1, null);
        AspectManagerNode aspectManager = new AspectManagerNode(run, true);
        AspectSurrogate surrogate = new AspectSurrogate("Aspect", null);
        AspectNode aspect = new AspectNode(aspectManager, surrogate);
        ProsePlugin.getDefault().fireAspectWithdrawn(aspect);
        assertEquals(aspect, listener.aspect);
View Full Code Here

     * @return Reachable aspect managers
     */
    public List getAspectManagers() {
        List managers = new ArrayList();
        for (Iterator all = runs.iterator(); all.hasNext();) {
            ProseRunNode each = (ProseRunNode) all.next();
            if (each.hasChildren()) {
                Object[] nodes = each.getChildren();
                managers.add(nodes[0]);
                managers.add(nodes[1]);
            }
        }
        return managers;
View Full Code Here

TOP

Related Classes of ch.ethz.prose.eclipse.internal.run.ProseRunNode

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.