Package infoviewer

Examples of infoviewer.InfoViewer


        urlString = urltmp.toString();
        if (extention != null && extention.length() != 0) {
          urlString = urlString + "#" + extention;
        }
        DockableWindowManager mgr = view.getDockableWindowManager();
        InfoViewer iv = (InfoViewer) mgr.getDockable("infoviewer");
        if (iv == null) {
          return;
        }
        iv.gotoURL(new URL(urlString), true, -1);
      } catch (Exception e) {
        Log.log(Log.ERROR, "ShowContextHelp", "could not find helpfile="
             + urlString + " : error=" + e);
      }
    }
View Full Code Here


   *
   * @param  view  Description of the Parameter
   */
  public static void ShowTutorial(org.gjt.sp.jedit.View view) {
    JDialog jd = new JDialog(view, Translator.getTranslation("Tutorial"), false);
    InfoViewer iv = new InfoViewer(view, "");
    String urlString = null;
    int inset = 100;
    try {
      URL urltmp = Fileio.getURL("tutorialmain." +
          SetupInfo.getProperty(SetupInfo.PRESENT_LANGUAGE) + ".html", "tutorial");
      if (urltmp == null) {
        //if it cant be found, then just get english as the default
        urltmp = Fileio.getURL("tutorialmain.en.html", "tutorial");
      }
      urlString = urltmp.toString();
      iv.gotoURL(urlString);
      jd.getContentPane().add(iv);
      jd.pack();
      Rectangle rv = new Rectangle();
      if (view != null) {
        view.getBounds(rv);
View Full Code Here

            SystemLog.InformationPrintln("lazy8ledger is now showing the logviewer window.");
            org.gjt.sp.jedit.jEdit.getFirstView().getDockableWindowManager().showDockableWindow("infoviewer");
            Lazy8Ledger.ShowContextHelp(null,"welcome","");
            if(isFirstTimeStarting){
              DockableWindowManager mgr = org.gjt.sp.jedit.jEdit.getFirstView().getDockableWindowManager();
              InfoViewer iv = (InfoViewer) mgr.getDockable("infoviewer");
              Dimension d=iv.getParent().getSize();
              iv.getParent().setSize(new Dimension(250,(int)d.getHeight()));
            }
          }//}}}
        }.start();
      }
    } else {
View Full Code Here

TOP

Related Classes of infoviewer.InfoViewer

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.