Examples of ODOMElementSelectionListener


Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

                new ODOMSelectionFilterConfiguration(true, true));

        // register an ODOMSelection listener with the ODOMSelectionManager
        // so that we can update the list builder whenever a device is selected
        selectionManager.addSelectionListener(
                new ODOMElementSelectionListener() {
                    // javadoc inherited
                    public void selectionChanged(ODOMElementSelectionEvent event) {
                        if (selectedDevice != null) {
                            selectedDevice.removeChangeListener(odomChangeListener);
                        }
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

        this.odomSelectionManager = odomSelectionManager;
        this.filter = filter;

        setLayout(new PackingLayout());

        odomSelectionListener = new ODOMElementSelectionListener() {
            // javadoc inherited.
            public void selectionChanged(ODOMElementSelectionEvent event) {
                updateSecondaryControls(event, details);
            }
        };
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

         * Construct a new ConstextMenuListener.
         * @param context the ODOMEditorContext.
         * @param actions the actions available to the menu.
         */
        public ContextMenuListener(ODOMEditorContext context, Map actions) {
            ODOMElementSelectionListener listener =
                createSelectionListener(context);
            context.getODOMSelectionManager().addSelectionListener(listener,
                    FILTER);
            final LayoutODOMEditorContext odomEditorContext =
                (LayoutODOMEditorContext) context;
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

         * @return an ODOMElementSelectionListener
         */
        private ODOMElementSelectionListener createSelectionListener(
                final ODOMEditorContext context) {

            ODOMElementSelectionListener listener =
                    new ODOMElementSelectionListener() {
                        public void selectionChanged(ODOMElementSelectionEvent event) {
                            ODOMElementSelection selection =
                                    event.getSelection();

                            // Determine the current selection state for use in generating
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

        formatComposite.
                addSelectionChangedListener(context.getODOMSelectionManager());

        // Ensure that FormatComposites are informaed of ODOMSelectionManager
        // selection changes.
        final ODOMElementSelectionListener listener =
                new ODOMElementSelectionListener() {
                    public void selectionChanged(ODOMElementSelectionEvent event) {
                        formatComposite.setSelection(event.getSelection());
                    }
                };
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

                new String[]{
                    DeviceRepositorySchemaConstants.DEVICE_ELEMENT_NAME},
                new ODOMSelectionFilterConfiguration(true, true));

        deviceSelectionListener =
                new ODOMElementSelectionListener() {
                    public void selectionChanged(
                            ODOMElementSelectionEvent event) {
                        // retrieve the current selection
                        ODOMElementSelection selection = event.getSelection();
                        // store away the currently selected device
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

        final ODOMSelectionManager selectionManager =
                context.getODOMSelectionManager();

        // create a listener that responds to ODOMElement selections
        ODOMElementSelectionListener deviceSelectionListener =
                new ODOMElementSelectionListener() {
                    // javadoc inherited
                    public void selectionChanged(
                            ODOMElementSelectionEvent event) {
                        treeViewer.removeSelectionChangedListener(
                                selectionManager);
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

                new ArrayBasedActionDetails();

        // Set up a listener that will update the action's enablement
        // status, using the {@link ODOMActionCommand#enable} method return
        // value, storing the selection in the actionDetails
        ODOMElementSelectionListener dndListener =
                new ODOMElementSelectionListener() {
                    public void selectionChanged(ODOMElementSelectionEvent event) {
                        actionDetails.setElements(event.getSelection().
                                toODOMElementArray());
                    }
                };
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

       
        if ((editorContext != null) && (editorContext.getODOMSelectionManager()!=null)) {
            // Set up a listener that will update the action's enablement
            // status, using the {@link ODOMActionCommand#enable} method return
            // value, storing the selection in the actionDetails
            listener = new ODOMElementSelectionListener() {
                public void selectionChanged(ODOMElementSelectionEvent event) {
                    actionDetails.setElements(event.getSelection().
                            toODOMElementArray());

                    setEnabled(ODOMAction.this.command.enable(actionDetails));
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMElementSelectionListener

                new ArrayBasedActionDetails();

        // Set up a listener that will update the action's enablement
        // status, using the {@link ODOMActionCommand#enable} method return
        // value, storing the selection in the actionDetails
        ODOMElementSelectionListener dndListener =
                new ODOMElementSelectionListener() {
                    public void selectionChanged(ODOMElementSelectionEvent event) {
                        actionDetails.setElements(event.getSelection().
                                toODOMElementArray());
                    }
                };
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.