Package ch.ethz.prose.eclipse

Examples of ch.ethz.prose.eclipse.IProseRunListener


     * @param run Node that contains the Prose run being added
     */
    public void addRun(final ProseRunNode run) {
        runs.add(run);
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.runAdded(run);
                }
            });
        }
    }
View Full Code Here


     * @param run Node that contains the Prose run being started
     */
    public void removeRun(final ProseRunNode run) {
        runs.remove(run);
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.runRemoved(run);
                }
            });
        }
    }
View Full Code Here

     *
     * @param run Node that contains the Prose run which is unreachable
     */
    public void fireRunUnreachable(final ProseRunNode run) {
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.runUnreachable(run);
                }
            });
        }
    }
View Full Code Here

     *
     * @param node Node that contains the aspect being inserted
     */
    public void fireAspectInserted(final AspectManagerNode node) {
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.aspectInserted(node);
                }
            });
        }
    }
View Full Code Here

     *
     * @param node Aspect being withdawn
     */
    public void fireAspectWithdrawn(final AspectNode node) {
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.aspectWithdrawn(node);
                }
            });
        }
    }
View Full Code Here

TOP

Related Classes of ch.ethz.prose.eclipse.IProseRunListener

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.