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

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


   ************************************************************************************/

  private void execute(final NewDocumentStartCommand cmd) {
    Date now = new Date();
    StaticActionDialog ad = StaticActionDialog.get();
    ad.update("New Document", "Do you want to start the new document in a new window?",
        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))
      }
    );
View Full Code Here


      setFunctionLock(LockFunction.COMPILE, false);
      String r = String.valueOf(new Date().getTime());
      if (result.getOutputErrors().length == 0 && result.getOutputFiles().length > 0) {
      String url = result.getOutputFiles()[0].getUrl() + "?r=" + r;
      StaticActionDialog actionDialog = StaticActionDialog.get();
      actionDialog.update("View Exported Document",
          "A " + cmd.getExportFormat() + " version of the current " +
          "document has been compiled and is available for viewing.",
          new ActionDialogOption[] {
            new ActionDialogOption("View " + cmd.getExportFormat() + " Document",
              new SystemOpenPageCommand(currentDocument.getDocumentId() + "_exp", url, false))
View Full Code Here

          }
          public void onSuccess(DocumentServiceEntry result) {
            clearStatus();
            String url = "/docs?docid=" + result.getDocumentId();
            StaticActionDialog actionDialog = StaticActionDialog.get();
      actionDialog.update("Open Copied Document",
          "A copy of the current document has been created and is available for editing.",
          new ActionDialogOption[] {
          new ActionDialogOption("Open Copied Document",
              new SystemOpenPageCommand(result.getDocumentId(), url, false))
        }
View Full Code Here

    "The browser may need to be restarted in order for the certificate prompt to display.";
    final ClsiLocalEngine latexEngine = ClsiLocalEngine.get("editor_advanced/");
    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()) {
View Full Code Here

      ad.center();
      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() {
View Full Code Here

      @Override
      public void onFailure(Throwable caught) {
        clearStatus();
          StaticActionDialog ad = StaticActionDialog.get();
        if (caught instanceof AppletUnavailableException) {
        ad.update("Java Sandbox Detected",
            sandboxMessage,
            new ActionDialogOption[0]);
        } else {
        ad.update("Local LaTeX Service Initialization Error",
            "There was an error initializing the local LaTeX service.",
View Full Code Here

        if (caught instanceof AppletUnavailableException) {
        ad.update("Java Sandbox Detected",
            sandboxMessage,
            new ActionDialogOption[0]);
        } else {
        ad.update("Local LaTeX Service Initialization Error",
            "There was an error initializing the local LaTeX service.",
            new ActionDialogOption[0]);
        }
        ad.center();
      }
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.