Package com.volantis.mcs.eclipse.builder.editors.common

Examples of com.volantis.mcs.eclipse.builder.editors.common.TargetSelectionEvent


            IStructuredSelection structuredSelection = (IStructuredSelection) selection;
            Object[] selected = structuredSelection.toArray();
            for (int i = 0; i < selected.length; i++) {
                targets.remove(selected[i]);
                monitor.modifySelection(selected[i], false);
                TargetSelectionEvent event =
                        new TargetSelectionEvent(this, selected[i], false);
                fireTargetSelectionEvent(event);
            }
            selectedTargets.refresh();
        }
    }
View Full Code Here


     * @param selected True if the target has been selected, false if it
     *                 has been deselected
     */
    protected void fireSelectionEvent(Object target, boolean selected) {
        if (!targetSelectionListeners.isEmpty()) {
            TargetSelectionEvent tse = new TargetSelectionEvent(this, target, selected);
            Iterator it = targetSelectionListeners.iterator();
            while (it.hasNext()) {
                TargetSelectionListener listener = (TargetSelectionListener) it.next();
                listener.targetSelectionChanged(tse);
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.builder.editors.common.TargetSelectionEvent

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.