Changeset 807 for java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
- Timestamp:
- Apr 12, 2013, 6:33:10 PM (12 years ago)
- File:
-
- 1 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() {
Note:
See TracChangeset
for help on using the changeset viewer.