Ignore:
Timestamp:
01/09/13 00:09:10 (11 years ago)
Author:
psniegowski
Message:

Add f0 parsing and f0->Model transformation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/gui/Frame.java

    r77 r78  
    11package com.framsticks.gui;
    22
     3import com.framsticks.core.Node;
    34import com.framsticks.core.Path;
    45import com.framsticks.gui.view.*;
     
    1213import javax.swing.tree.*;
    1314import java.awt.*;
     15import java.awt.datatransfer.StringSelection;
    1416import java.awt.event.ActionEvent;
    1517import java.awt.event.MouseAdapter;
     
    7577        treePopupMenu.add(new JMenuItem("Refresh"));
    7678        treePopupMenu.add(new JMenuItem("Open in new frame as root"));
     79                addNodeActionToTreePopupMenu("Copy path to clipboard", new NodeAction() {
     80                        @Override
     81                        public void actionPerformed(TreeNode treeNode) {
     82                                Path path = treeNode.getInstancePath();
     83                                StringSelection selection = new StringSelection(path.toString());
     84                                getToolkit().getSystemClipboard().setContents(selection, selection);
     85                        }
     86                });
    7787        //this.add(createMenuItem("Add to favourites", null));
    7888        //this.add(createMenuItem("Remove from favourites", null));
Note: See TracChangeset for help on using the changeset viewer.