use of org.talend.designer.core.ui.editor.cmd.ChangeActivateStatusSubjobCommand in project tdi-studio-se by Talend.
the class ActivateSubjobOneComponentAction method run.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
public void run() {
List editparts = getSelectedObjects();
if (editparts.size() == 1) {
NodePart part = (NodePart) editparts.get(0);
ChangeActivateStatusSubjobCommand changeActivateStatusCommand = new ChangeActivateStatusSubjobCommand((Node) part.getModel(), true);
execute(changeActivateStatusCommand);
}
}
use of org.talend.designer.core.ui.editor.cmd.ChangeActivateStatusSubjobCommand in project tdi-studio-se by Talend.
the class ActivateSubjobAction method run.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
public void run() {
List editparts = getSelectedObjects();
if (editparts.size() == 1) {
NodePart part = (NodePart) editparts.get(0);
ChangeActivateStatusSubjobCommand changeActivateStatusCommand = new ChangeActivateStatusSubjobCommand((Node) part.getModel(), false);
execute(changeActivateStatusCommand);
}
}
Aggregations