01: /*
02: * Created on Jun 19, 2004
03: */
04: package net.charabia.jsmoothgen.application.swtgui;
05:
06: public class SaveProjectAction extends JSmoothAction {
07: private JSmoothApplication js;
08:
09: public SaveProjectAction(JSmoothApplication js) {
10: super (js);
11: }
12:
13: public boolean run() {
14: if (getApplication().hasProjectFile()) {
15: return getApplication().saveProject();
16: } else {
17: return getApplication().ACTION_SAVE_AS.run();
18: }
19: }
20: }
|