ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
(Generate patch)

Comparing java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java (file contents):
Revision 806 by alloc, Fri Apr 12 16:21:37 2013 UTC vs.
Revision 807 by alloc, Fri Apr 12 16:33:10 2013 UTC

# Line 3 | Line 3 | package net.oni2.aeinstaller.gui;
3   import java.awt.BorderLayout;
4   import java.awt.Desktop;
5   import java.awt.GridLayout;
6 + import java.awt.Toolkit;
7 + import java.awt.datatransfer.Clipboard;
8 + import java.awt.datatransfer.StringSelection;
9   import java.awt.event.ActionEvent;
10   import java.awt.event.ItemEvent;
11   import java.awt.event.ItemListener;
# Line 405 | Line 408 | public class MainWin extends JFrame impl
408          private void showAbout() {
409                  new AboutDialog().setVisible(true);
410          }
411 <        
411 >
412          @SuppressWarnings("unused")
413          private void showHelp() {
414                  try {
# Line 465 | Line 468 | public class MainWin extends JFrame impl
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);
482 +        }
483 +
484 +        @SuppressWarnings("unused")
485          private boolean reglobalizeVerify() {
486                  int res = JOptionPane.showConfirmDialog(this,
487                                  bundle.getString("rebuildCore.text"),
# Line 808 | Line 825 | public class MainWin extends JFrame impl
825          public void modSelectionChanged(ModTable source, Package m) {
826                  pkgInfo.updateInfo(m);
827          }
828 <        
828 >
829          @SuppressWarnings("unused")
830          private void clearFilter() {
831                  txtShowFilter.setText("");

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)