Search in sources :

Example 1 with ChangeActivateStatusSubjobCommand

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);
    }
}
Also used : ChangeActivateStatusSubjobCommand(org.talend.designer.core.ui.editor.cmd.ChangeActivateStatusSubjobCommand) List(java.util.List) NodePart(org.talend.designer.core.ui.editor.nodes.NodePart)

Example 2 with ChangeActivateStatusSubjobCommand

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);
    }
}
Also used : ChangeActivateStatusSubjobCommand(org.talend.designer.core.ui.editor.cmd.ChangeActivateStatusSubjobCommand) List(java.util.List) NodePart(org.talend.designer.core.ui.editor.nodes.NodePart)

Aggregations

List (java.util.List)2 ChangeActivateStatusSubjobCommand (org.talend.designer.core.ui.editor.cmd.ChangeActivateStatusSubjobCommand)2 NodePart (org.talend.designer.core.ui.editor.nodes.NodePart)2