[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui GUI.java, 1.117, 1.118
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2010-04-26 09:30:43
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv10674/src/net/sourceforge/bprocessor/gui Modified Files: GUI.java Log Message: Index: GUI.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/GUI.java,v retrieving revision 1.117 retrieving revision 1.118 diff -C2 -d -r1.117 -r1.118 *** GUI.java 22 Apr 2010 08:13:42 -0000 1.117 --- GUI.java 26 Apr 2010 09:30:35 -0000 1.118 *************** *** 87,90 **** --- 87,92 ---- private static final long serialVersionUID = 1L; + private static final boolean IMPORT = false; + private boolean isMac; *************** *** 98,101 **** --- 100,104 ---- private boolean presented = false; + /** The main split pane */ private JSplitPane splitPaneLeftRight; *************** *** 641,644 **** --- 644,665 ---- fileImport.setEnabled(true); file.add(fileImport); + + if (IMPORT) { + JMenuItem item = new JMenuItem("Import Library..."); + item.addActionListener(new AbstractAction() { + public void actionPerformed(ActionEvent e) { + File file = chooseFile(""); + if (file != null) { + try { + Project.getInstance().importLibrary(file); + } catch (Exception e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } + } + } + }); + file.add(item); + } JMenuItem fileExport = new JMenuItem("Export"); |