Package dao

Examples of dao.ISweaveTag


            return;
        }
        oldNode = (DefaultMutableTreeNode) path.getLastPathComponent();
       
       
        ISweaveTag swt = ((IViewport) oldNode.getUserObject()).getSweaveTag();
 
        transferable = new TransferableSweaveTag(swt);
        source.startDrag(dge, DragSource.DefaultMoveNoDrop, transferable, this);

        // If you support dropping the node anywhere, you should probably
View Full Code Here


    private void maybeShowPopup(MouseEvent e) {
   
        if (e.isPopupTrigger()) {
          int start = JLatexPanel.jTextAreaLatexSource.getSelectionStart();
          int end = JLatexPanel.jTextAreaLatexSource.getSelectionEnd();
          ISweaveTag swt;
          if (start < end)
            swt = JLatexPanel.checkAllObjects(start, end - start);
          else swt = JLatexPanel.checkAllObjects(end, start - end);

          popup.getComponent(2).setVisible(swt != null);
View Full Code Here

      try {
      DataFlavor[] flavors = tr.getTransferDataFlavors();
          for (int i = 0; i < flavors.length; i++) {
            if (tr.isDataFlavorSupported(flavors[i])) {
              dtde.acceptDrop(dtde.getDropAction());
              ISweaveTag swt = (ISweaveTag)tr.getTransferData(flavors[i]);
          //TODO: ohne string name
              JLatexPanel.addTagAtCursor(swt);
             
              System.out.println(swt.getName());
             
//              TreePath p = (TreePath) tr.getTransferData(flavors[i]);
//              DefaultMutableTreeNode node = (DefaultMutableTreeNode) p
//                  .getLastPathComponent();
//              DefaultTreeModel model = (DefaultTreeModel) tree.getModel();
View Full Code Here

TOP

Related Classes of dao.ISweaveTag

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.