Package org.latexlab.docs.client.commands

Examples of org.latexlab.docs.client.commands.SystemApplyCompilerSettingsCommand


    compilerName.setWidth("200px");
    compilerName.setValue("latex");
    addField(compilerName, "Compiler name:");
    submit.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        SystemApplyCompilerSettingsCommand cmd;
        if (useDefault.getValue()) {
        cmd = new SystemApplyCompilerSettingsCommand();
        } else {
        if (useCustom.getValue() &&
          (clsiServiceUrl.getValue().equals("") ||
            clsiServiceToken.getValue().equals("") ||
            clsiAsyncPath.getValue().equals("") ||
            compilerName.getValue().equals(""))) {
          Window.alert("All fields are required.");
          return;
        } else {
          SystemApplyCompilerSettingsCommand.Compiler compiler =
            SystemApplyCompilerSettingsCommand.Compiler.REMOTE_DEFAULT_COMPILER;
          if (useMikTex.getValue()) {
          compiler =
              SystemApplyCompilerSettingsCommand.Compiler.LOCAL_MIKTEX_COMPILER;
          } else if (useTexLive.getValue()) {
            compiler =
              SystemApplyCompilerSettingsCommand.Compiler.LOCAL_TEXLIVE_COMPILER;
          } else if (useCustom.getValue()) {
            compiler =
              SystemApplyCompilerSettingsCommand.Compiler.REMOTE_CUSTOM_COMPILER;
          }
          cmd = new SystemApplyCompilerSettingsCommand(compiler,
              clsiServiceUrl.getValue(),
              clsiServiceToken.getValue(),
              clsiAsyncPath.getValue(),
              compilerName.getValue());
        }
        }
        cmd.setContinueCommand(continueCommand);
        DynamicCompilerSettingsDialog.this.hide();
        CommandEvent.fire(cmd);
      }
    });
    cancel.addClickHandler(new ClickHandler(){
View Full Code Here


   
    PickupDragController dragController = new PickupDragController(root, true);
    dragController.setBehaviorConstrainedToBoundaryPanel(true);
    dragController.setBehaviorMultipleSelection(false);
    dragController.setBehaviorDragStartSensitivity(1);
    execute(new SystemApplyCompilerSettingsCommand());
    loadDocument();
  }
View Full Code Here

        app = result;
        clearStatus();
        clsiService = new ClsiRemoteService();
        clsiService.setTimeout(30);
        settings = new DocsEditorSettings();
          execute(new SystemApplyCompilerSettingsCommand());
        settings.setHasCompilerSettings(false);
          loadDocument();
          scheduler = new Scheduler();
          scheduler.addCommandHandler(DocsAdvancedEditorController.this);
        if (settings.isUseAutoSave()) {
View Full Code Here

TOP

Related Classes of org.latexlab.docs.client.commands.SystemApplyCompilerSettingsCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.