Messages.getString("AbstractNamespaceMasterPart.MOVE_UP_BUTTON"), SWT.FLAT); //$NON-NLS-1$
upButton.setLayoutData(data);
upButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
StructuredTextViewer textView = getConfigEditor().getTextViewer();
Action action = new RaiseNodeAction(treeViewer, xmlProcessor, textView);
action.run();
}
});
upButton.setEnabled(false);
downButton = toolkit.createButton(client,
Messages.getString("AbstractNamespaceMasterPart.MOVE_DOWN_BUTTON"), SWT.FLAT); //$NON-NLS-1$
downButton.setLayoutData(data);
downButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
StructuredTextViewer textView = getConfigEditor().getTextViewer();
Action action = new LowerNodeAction(treeViewer, xmlProcessor, textView);
action.run();
}
});
downButton.setEnabled(false);