Esempio n. 1
0
  @MethodInfo(name = "", valueName = "Destination", interactive = true, hide = false)
  public File addContent(
      CanvasRequest cReq,
      @ParamInfo(
              name = "Source",
              style = "load-dialog",
              options = "endings=[\".jar\"];description=\"Java Library - *.jar\"")
          final File src,
      @ParamInfo(
              name = "Destination",
              style = "save-dialog",
              options = "endings=[\".jar\"];description=\"Java Library - *.jar\"")
          final File dest,
      @ParamInfo(name = "Content Name (e.g. help)", style = "default") final String contentName,
      @ParamInfo(
              name = "Content",
              style = "load-dialog",
              options = "endings=[\".zip\"];description=\"Content - *.zip\"")
          final File content,
      @ParamInfo(name = "Ask if File exists", options = "value=true") boolean ask) {

    if (cReq != null) {
      addNatives(
          src, dest, content, contentName, ask, new AddLibraryPluginActionImpl(cReq.getCanvas()));
    } else {
      addNatives(src, dest, content, contentName, ask, null);
    }

    return dest;
  }
Esempio n. 2
0
  @MethodInfo(name = " ", buttonText = "start", hideCloseIcon = true)
  public void start(CanvasRequest cReq, MethodRequest mReq) {

    mRep = mReq.getMethod();

    if (invocation == null) {
      invocation = new VisualInvocationObject();
    }

    if (!invocation.isRunning()) {
      if (invocation.init(cReq.getCanvas())) {
        invocation.invoke();
      }
    } else {
      invocationStopped(cReq.getCanvas());
      invocation.stop();
    }
  }