Package com.volantis.mcs.eclipse.common.odom

Examples of com.volantis.mcs.eclipse.common.odom.ODOMSelectionManager.addSelectionListener()


                new String[]{DeviceRepositorySchemaConstants.DEVICE_ELEMENT_NAME},
                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


                            LayoutSchemaType.MONTAGE_LAYOUT.getName()
                        });

        final ODOMSelectionManager manager = context.getODOMSelectionManager();

        manager.addSelectionListener(listener, filter);

        formatComposite.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent event) {
                manager.removeSelectionListener(listener, filter);
                // Set the selection to the device layout element otherwise
View Full Code Here

                    }
                };
        // register the ODOM selection listener with the contexts selection
        // manager
        selectionManager.addSelectionListener(deviceSelectionListener,
                DEVICE_FILTER);

        // we want to update the tree whenever a hierarchy element is modified
        ODOMChangeListener rootElementListener = new ODOMChangeListener() {
            public void changed(ODOMObservable node,
View Full Code Here

                DEVICE_ELEMENT_NAME},
                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

                        treeViewer.setSelection(event.getSelection(), true);
                        treeViewer.addSelectionChangedListener(selectionManager);
                    }
                };

        selectionManager.addSelectionListener(selectionListener,
                selectionFilter);

        treeViewer.setContentProvider(contentProvider);

View Full Code Here

        ODOMSelectionManager selectionManager =
                context.getODOMSelectionManager();

        // 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

    protected void doTestRun(TestData data,
                             String expectedXml) throws Exception {

        ODOMSelectionManager selManager = data.getSelectionManager();
        ODOMESCountingListener listener = new ODOMESCountingListener();
        selManager.addSelectionListener(listener, null);
        super.doTestRun(data, expectedXml);
        assertEquals("One selection event was expected. ",
                numRunSelectionsExpected, listener.getCount());
        selManager.removeSelectionListener(listener, null);
View Full Code Here

    protected void doTestEnable(TestData data,
                                String testName,
                                boolean expected) throws Exception {
        ODOMSelectionManager selManager = data.getSelectionManager();
        ODOMESCountingListener listener = new ODOMESCountingListener();
        selManager.addSelectionListener(listener, null);
        super.doTestEnable(data, testName, expected);
        assertEquals("No selection event was expected.",
                numEnableSelectionsExpected, listener.getCount());
        selManager.removeSelectionListener(listener, null);
    }
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.