blob: 8b15c95336c3c537e26e7e7c85f18acb6e090c8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package org.cristalise.gui.tabs.execution;
import javax.swing.JLabel;
import org.cristalise.gui.MainFrame;
import org.cristalise.kernel.entity.agent.Job;
import org.cristalise.kernel.utils.Language;
/**************************************************************************
*
* $Revision: 1.2 $
* $Date: 2003/11/04 14:31:30 $
*
* Copyright (C) 2003 CERN - European Organization for Nuclear Research
* All rights reserved.
**************************************************************************/
public class DefaultExecutor implements Executor {
public DefaultExecutor() {
super();
}
@Override
public void execute(Job job, JLabel status) throws Exception {
status.setText(Language.translate("Submitting..."));
MainFrame.progress.startBouncing("Requesting, please wait.");
MainFrame.userAgent.execute(job);
MainFrame.progress.stopBouncing("Execution complete.");
status.setText("Waiting for joblist update.");
}
@Override
public String toString() {
return "Normal";
}
}
|