Package org.latexlab.docs.client.content.dialogs

Examples of org.latexlab.docs.client.content.dialogs.StaticActionDialog.center()


        new ActionDialogOption[] {
        new ActionDialogOption("Open New Window", new SystemOpenPageCommand("Untitled" + now.getTime(), "/docs", false)),
        new ActionDialogOption("Use Current Window", new SystemOpenPageCommand("Untitled" + now.getTime(), "/docs", true))
      }
    );
    ad.center();
  }
  private void execute(final NewDocumentLoadCommand cmd) {
  docService.getNewDocument(new AsyncCallback<DocumentServiceEntry>() {
    @Override
    public void onFailure(Throwable caught) {
View Full Code Here


          new ActionDialogOption[] {
            new ActionDialogOption("View " + cmd.getExportFormat() + " Document",
              new SystemOpenPageCommand(currentDocument.getDocumentId() + "_exp", url, false))
        }
        );
      actionDialog.center();
      }
      if (result.getOutputErrors().length > 0) {
      String err = "";
      for (ClsiOutputError msg : result.getOutputErrors()) {
        err += msg.getMessage() + "\n";
View Full Code Here

          new ActionDialogOption[] {
          new ActionDialogOption("Open Copied Document",
              new SystemOpenPageCommand(result.getDocumentId(), url, false))
        }
      );
      actionDialog.center();
          }
    });
  }
  private void execute(final CurrentDocumentSaveCommand cmd) {
  if (currentDocument != null && currentDocument.isSaving()) {
View Full Code Here

    if (latexEngine.isStarted()) {
    if (Window.Navigator.isJavaEnabled()) {
      StaticActionDialog ad = StaticActionDialog.get();
      ad.update("Java Unavailable", "<a href=\"http://www.java.com\">Java</a> was not detected. " +
          "Ensure that <a href=\"http://www.java.com\">Java</a> is installed and enabled.", new ActionDialogOption[0]);
      ad.center();
      return;
    }
    if (latexEngine.isLocked()) {
      StaticActionDialog ad = StaticActionDialog.get();
      ad.update("Java Sandbox Detected", sandboxMessage, new ActionDialogOption[0]);
View Full Code Here

      return;
    }
    if (latexEngine.isLocked()) {
      StaticActionDialog ad = StaticActionDialog.get();
      ad.update("Java Sandbox Detected", sandboxMessage, new ActionDialogOption[0]);
      ad.center();
    }
    } else {
    showStatus("Initializing the local LaTeX service. Please accept the certificate when prompted.", true);
    latexEngine.start(new ReadyCallback() {
      @Override
View Full Code Here

        } else {
        ad.update("Local LaTeX Service Initialization Error",
            "There was an error initializing the local LaTeX service.",
            new ActionDialogOption[0]);
        }
        ad.center();
      }
      @Override
      public void onSuccess() {
        clearStatus();
        settings.setClsiAsyncPath(latexEngine.getAsyncPath());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.