Package org.latexlab.docs.client.commands

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


        callback.onFailure(reason);
    }
    @Override
    public void onSuccess() {
      callback.onSuccess(new ExtendedMenuItem[] {
      new ExtendedMenuItem(Icons.editorIcons.Blank(), "Using LaTeX Lab", new SystemOpenPageCommand("Help""http://code.google.com/p/latex-lab/wiki/UsingLaTeXLab", false)),
      new ExtendedMenuItem(Icons.editorIcons.Blank(), "Using a custom CLSI server", new SystemOpenPageCommand("Help", "http://code.google.com/p/latex-lab/wiki/UsingPrivateCompiler", false)),
      null,
      new ExtendedMenuItem(Icons.editorIcons.Blank(), "Submit bug or feature request", new SystemOpenPageCommand("IssueTracker", "http://code.google.com/p/latex-lab/issues/entry", false)),
      null,
      new ExtendedMenuItem(Icons.editorIcons.Blank(), "About", new SystemShowDialogCommand(DynamicAboutDialog.class))
      });
    }
    });
View Full Code Here


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

      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))
        }
        );
      actionDialog.center();
      }
      if (result.getOutputErrors().length > 0) {
View Full Code Here

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

TOP

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

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.