Search in sources :

Example 1 with UpdateContentModelCommand

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

the class XSDModelGroupSection method doWidgetSelected.

public void doWidgetSelected(SelectionEvent e) {
    XSDModelGroup particle = (XSDModelGroup) input;
    if (e.widget == modelGroupCombo) {
        XSDCompositor newValue = XSDCompositor.get(modelGroupCombo.getText());
        UpdateContentModelCommand command = new UpdateContentModelCommand(org.eclipse.wst.xsd.ui.internal.common.util.Messages._UI_ACTION_CHANGE_CONTENT_MODEL, particle, newValue);
        getCommandStack().execute(command);
    }
    super.doWidgetSelected(e);
}
Also used : XSDModelGroup(org.eclipse.xsd.XSDModelGroup) XSDCompositor(org.eclipse.xsd.XSDCompositor) UpdateContentModelCommand(org.eclipse.wst.xsd.ui.internal.common.commands.UpdateContentModelCommand)

Aggregations

UpdateContentModelCommand (org.eclipse.wst.xsd.ui.internal.common.commands.UpdateContentModelCommand)1 XSDCompositor (org.eclipse.xsd.XSDCompositor)1 XSDModelGroup (org.eclipse.xsd.XSDModelGroup)1