예제 #1
0
  @ServiceMethod
  @Face(displayName = "Save As...")
  public Object saveAs() throws Exception {
    classDefinition.processManager = processManager;
    classDefinition.save();

    return new Remover(this);
  }
예제 #2
0
  @ServiceMethod
  @Face(
      displayName = "Save All",
      options = {"separator"},
      values = {"true"})
  public Object saveAll() throws Exception {
    classDefinition.processManager = processManager;
    classDefinition.save();

    return new Remover(this);
  }
예제 #3
0
  @ServiceMethod(target = ServiceMethodContext.TARGET_APPEND)
  @Face(displayName = "Save")
  public Object save() throws Exception {

    if (true) {
      String script = "mw3.getAutowiredObject('org.uengine.codi.mw3.ide.CloudIDE').save();";

      return new Object[] {new Remover(this), new ScriptRunner(script)};
    }

    classDefinition.processManager = processManager;
    classDefinition.save();

    return new Remover(this);
  }