Examples of ODOMElementSelectionEvent


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

    private void processApplySelection(ODOMElement directive) {
        // Make a note of what element tree constitutes the current
        // selection, and pass it to the top-level proxy element
        currentSelection = directive;
        topEle.selectionChanged(
                new ODOMElementSelectionEvent(currentSelection.getChildren()));
    }
View Full Code Here

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

        }

        // Apply the selection change to the top level proxy (which simulates
        // what should happen in the real environment)
        topEle.selectionChanged(
                new ODOMElementSelectionEvent(selection));
    }
View Full Code Here

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

    public void setSetAttributeValid() throws Exception {
        List list = new ArrayList(1);
        final ODOMElement element = (ODOMElement) odomFactory.element("test");
        element.setAttribute("attribute", "value");
        list.add(element);
        proxy.selectionChanged(new ODOMElementSelectionEvent(list));
        proxy.setAttribute("attribute", "");
    }
View Full Code Here

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

        element.setAttribute("attribute", "value");
        list.add(element);

        details.setProxiedElements(list.iterator());

        proxy.selectionChanged(new ODOMElementSelectionEvent(list));

        Attribute attribute = proxy.getAttribute("attribute");

        assertNotNull("Attribute should exist",
                attribute);
View Full Code Here

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

            proxy.selectionChanged(null);
            fail("Expected a IllegalArgumentException.");
        } catch (IllegalArgumentException e) {
        }

        ODOMElementSelectionEvent event = new ODOMElementSelectionEvent(
                new ArrayList());
        // This is properly tested in ProxyElementDelegates test case.
        proxy.selectionChanged(event);
    }
View Full Code Here

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

        list.add(element);

        proxy.addContent(new ProxyText());
        details.setProxiedElements(list.iterator());

        proxy.selectionChanged(new ODOMElementSelectionEvent(list));

        String text = proxy.getText();
        assertNotNull("Text should exist", text);

        assertEquals("Text value incorrect", sampleText, text);

        // Check that the proxy is updated correctly
        final String otherSample = "lazydog";
        element.setText(otherSample);

        text = proxy.getText();
        assertNotNull("Text should exist", text);

        assertEquals("Text value incorrect", otherSample, text);

        // Check that aggregation works correctly
        final ODOMElement otherElement =
                (ODOMElement) odomFactory.element("test");
        otherElement.setText(otherSample);

        list = new ArrayList(2);
        list.add(element);
        list.add(otherElement);

        proxy.selectionChanged(new ODOMElementSelectionEvent(list));

        // Identical text values should be passed through
        text = proxy.getText();
        assertNotNull("Text should exist", text);
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.