Changeset 807 for java/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- Apr 12, 2013, 6:33:10 PM (12 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r806 r807 4 4 import java.awt.Desktop; 5 5 import java.awt.GridLayout; 6 import java.awt.Toolkit; 7 import java.awt.datatransfer.Clipboard; 8 import java.awt.datatransfer.StringSelection; 6 9 import java.awt.event.ActionEvent; 7 10 import java.awt.event.ItemEvent; … … 406 409 new AboutDialog().setVisible(true); 407 410 } 408 411 409 412 @SuppressWarnings("unused") 410 413 private void showHelp() { … … 463 466 tblMods.getSelectedMods()); 464 467 } 468 } 469 470 @SuppressWarnings("unused") 471 private void copyConfig() { 472 StringBuffer b = new StringBuffer(); 473 b.append("[code]"); 474 for (Package p : PackageManager.getInstance().getInstalledMods()) 475 b.append(String.format("%s %s%n", p.getPackageNumberString(), 476 p.getName())); 477 b.append("[/code]"); 478 479 StringSelection selection = new StringSelection(b.toString()); 480 Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); 481 clipboard.setContents(selection, selection); 465 482 } 466 483 … … 809 826 pkgInfo.updateInfo(m); 810 827 } 811 828 812 829 @SuppressWarnings("unused") 813 830 private void clearFilter() { -
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.yml
r806 r807 19 19 - Action(name=loadConfig, text=menu.loadConfig, toolTipText=menu.loadConfigTooltip, icon=img.openFile, onAction=[loadConfig]) 20 20 - Action(name=saveConfig, text=menu.saveConfig, toolTipText=menu.saveConfigTooltip, icon=img.saveFile, onAction=[saveConfig]) 21 - Action(name=copyConfig, text=menu.copyConfig, toolTipText=menu.copyConfigTooltip, icon=img.copy, onAction=[copyConfig]) 21 22 - Action(name=reglobalize, text=menu.reglobalize, toolTipText=menu.reglobalizeTooltip, icon=img.refresh, onAction=[reglobalizeVerify,reglobalize]) 22 23 - Action(name=tools, text=menu.manageTools, toolTipText=menu.manageToolsTooltip, icon=img.tools, onAction=[tools,refreshToolsMenu]) … … 34 35 - JMenuItem(action=loadConfig) 35 36 - JMenuItem(action=saveConfig) 37 - JMenuItem(action=copyConfig) 36 38 - JSeparator() 37 39 - JMenuItem(action=openEditionFolder)
Note:
See TracChangeset
for help on using the changeset viewer.