Package org.gjt.sp.jedit.gui

Examples of org.gjt.sp.jedit.gui.DockableWindowManager


   * @param  view  Description of the Parameter
   */
  public DataConnection(JFrame view) {
    //show always the welcome window
    if (SetupInfo.getBoolProperty(SetupInfo.ALL_WINDOWS_FLOATING)) {
      DockableWindowManager mgr = ((org.gjt.sp.jedit.View) view).getDockableWindowManager();
      mgr.showDockableWindow("infoviewer");
    }
    Lazy8Ledger.ShowContextHelp(view, "welcome", "");
    bIsConnectionMade = false;
    String stringPass = SetupInfo.getProperty(SetupInfo.CONNECT_PASSWORD);
    String stringUser = SetupInfo.getProperty(SetupInfo.CONNECT_USERNAME);


  //{{{ +Exit() : void
  /**
   *  Description of the Method
   */
  public void Exit() {
    DockableWindowManager mgr = ((View) view).getDockableWindowManager();
    mgr.removeDockableWindow(frameName);
    EditBus.removeFromBus(this);
    if (cc != null) {
      cc.exit();
    }
  }//}}}

    JButton butCancel = new JButton(Translator.getTranslation("Exit"));
    butCancel.addActionListener(
      new java.awt.event.ActionListener() {
        //{{{ +actionPerformed(java.awt.event.ActionEvent) : void
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          DockableWindowManager mgr = ((View) view).getDockableWindowManager();
          mgr.removeDockableWindow("lazy8ledger-databaselist");
        }//}}}
      }
        );
    jp.add(butCancel);
    jp.add(new JPanel());

        buttonDelete.setEnabled(true);
        buttonChange.setEnabled(true);
        formDataExchange.ChangeButtonEnabled(true);
        buttonGetNext.setEnabled(true);
        if (skDialog.hitShowList){
          DockableWindowManager mgr = ((org.gjt.sp.jedit.View) view).getDockableWindowManager();
          mgr.showDockableWindow("lazy8ledger-databaselist");
          FindInListView iv = (FindInListView) mgr.getDockable("lazy8ledger-databaselist");
          if (iv != null)
            iv.setDataView(dataAccess, this);
        }
      } else {
        buttonClearActionPerformed(evt);

   *  Description of the Method
   *
   * @param  evt  Description of the Parameter
   */
  private void buttonSeekListActionPerformed(java.awt.event.ActionEvent evt) {
    DockableWindowManager mgr = ((org.gjt.sp.jedit.View) view).getDockableWindowManager();
    mgr.showDockableWindow("lazy8ledger-databaselist");
    FindInListView iv = (FindInListView) mgr.getDockable("lazy8ledger-databaselist");
    if (iv == null) {
      return;
    }
    buttonGetFirstActionPerformed(evt);
    iv.setDataView(dataAccess, this);

  //{{{ +buttonExit() : void
  /**
   *  Description of the Method
   */
  public void buttonExit() {
    DockableWindowManager mgr = ((View) view).getDockableWindowManager();
    mgr.removeDockableWindow("lazy8ledger-report");
    EditBus.removeFromBus(this);
    if (cc != null) {
      cc.exit();
    }
  }//}}}

  //{{{ +buttonExit() : void
  /**
   *  Description of the Method
   */
  public void buttonExit() {
    DockableWindowManager mgr = ((View) view).getDockableWindowManager();
    mgr.removeDockableWindow(frameName);
    if (cc != null) {
      cc.exit();
    }
  }//}}}

  /**
   *  Description of the Method
   */
  public void buttonExit() {
    EditBus.removeFromBus(this);
    DockableWindowManager mgr = ((View) view).getDockableWindowManager();
    mgr.removeDockableWindow(frameName);
    if (cc != null) {
      cc.exit();
    }
  }//}}}

        }
        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) {

              sleep(6000);}catch(Exception e){}
            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();

TOP

Related Classes of org.gjt.sp.jedit.gui.DockableWindowManager

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.