Search in sources :

Example 6 with AboutToBeChangedEvent

use of org.eclipse.wst.sse.core.internal.provisional.events.AboutToBeChangedEvent in project webtools.sourceediting by eclipse.

the class TestAboutToBeChangedEvent method testSetDeletedText.

public void testSetDeletedText() {
    AboutToBeChangedEvent event = getBasicEvent();
    event.setDeletedText("junkyNothing");
    // assume ok if no exception
    assertTrue(true);
}
Also used : AboutToBeChangedEvent(org.eclipse.wst.sse.core.internal.provisional.events.AboutToBeChangedEvent)

Example 7 with AboutToBeChangedEvent

use of org.eclipse.wst.sse.core.internal.provisional.events.AboutToBeChangedEvent in project webtools.sourceediting by eclipse.

the class TestAboutToBeChangedEvent method testGetOriginalRequester.

public void testGetOriginalRequester() {
    AboutToBeChangedEvent event = getBasicEvent();
    Object r = event.getOriginalRequester();
    assertEquals(this, r);
}
Also used : AboutToBeChangedEvent(org.eclipse.wst.sse.core.internal.provisional.events.AboutToBeChangedEvent)

Aggregations

AboutToBeChangedEvent (org.eclipse.wst.sse.core.internal.provisional.events.AboutToBeChangedEvent)7 IStructuredDocument (org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument)2 BadLocationException (org.eclipse.jface.text.BadLocationException)1 BadPartitioningException (org.eclipse.jface.text.BadPartitioningException)1 BadPositionCategoryException (org.eclipse.jface.text.BadPositionCategoryException)1 IModelAboutToBeChangedListener (org.eclipse.wst.sse.core.internal.provisional.events.IModelAboutToBeChangedListener)1