Search in sources :

Example 1 with AddDocumentationCommand

use of org.eclipse.wst.xsd.ui.internal.common.commands.AddDocumentationCommand in project webtools.sourceediting by eclipse.

the class AnnotationSection method doHandleEvent.

public void doHandleEvent(Event event) {
    if (input instanceof XSDConcreteComponent) {
        if (event.widget == simpleText) {
            // $NON-NLS-1$
            AddDocumentationCommand command = new AddDocumentationCommand(Messages._UI_ACTION_ADD_DOCUMENTATION, null, (XSDConcreteComponent) input, simpleText.getText(), "");
            getCommandStack().execute(command);
        }
    }
}
Also used : AddDocumentationCommand(org.eclipse.wst.xsd.ui.internal.common.commands.AddDocumentationCommand) XSDConcreteComponent(org.eclipse.xsd.XSDConcreteComponent)

Aggregations

AddDocumentationCommand (org.eclipse.wst.xsd.ui.internal.common.commands.AddDocumentationCommand)1 XSDConcreteComponent (org.eclipse.xsd.XSDConcreteComponent)1