Package com.volantis.mcs.eclipse.ab.editors

Examples of com.volantis.mcs.eclipse.ab.editors.ElementSelectionChangeEvent


     * Test the event with a valid JDOM Element.
     */
    public void testEventWithJDOMElement() throws Exception {
        DefaultJDOMFactory factory = new DefaultJDOMFactory();
        Element source = factory.element("testElement");
        ElementSelectionChangeEvent event =
                new ElementSelectionChangeEvent(source);

        String mustBeNull = "Value should be null";
        assertNull(mustBeNull, event.getNewValue());
        assertNull(mustBeNull, event.getOldValue());

        String match = "Values should match";
        assertEquals(match, ChangeQualifier.NONE, event.getChangeQualifier());
        assertEquals(match, source, event.getSource());
    }
View Full Code Here


        Element oldObject = factory.element("oldObject");
        Element newObject = factory.element("newObject");
        ODOMChangeEvent event = ODOMChangeEvent.createNew(source, oldObject, newObject,
                ChangeQualifier.NAMESPACE);

        ElementSelectionChangeEvent selectionChangeEvent =
                new ElementSelectionChangeEvent(event);

        final String match = "Values should match";
        assertEquals(match, newObject, selectionChangeEvent.getNewValue());
        assertEquals(match, oldObject, selectionChangeEvent.getOldValue());
        assertEquals(match, ChangeQualifier.NAMESPACE, event.getChangeQualifier());
        assertEquals(match, source, event.getSource());
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.ab.editors.ElementSelectionChangeEvent

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.