Changeset 807 for java/installer2
- Timestamp:
- Apr 12, 2013, 6:33:10 PM (12 years ago)
- Location:
- java/installer2
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/locales/net/oni2/aeinstaller/localization/MainWin_de.properties
r806 r807 23 23 menu.saveConfig=&Speichere die aktuelle Mod-Auswahl... 24 24 menu.saveConfigTooltip=Speichere die aktuelle Mod-Auswahl in eine Datei 25 menu.copyConfig=&Kopiere aktuell installierte Mods in die Zwischenablage 26 menu.copyConfigTooltip=Kopiert die aktuell installierten Mods in die Zwischenablage zum Posten im OCF 25 27 26 28 menu.corePackages=&Zeige Kernpakete -
java/installer2/src/net/oni2/aeinstaller/Images.properties
r806 r807 6 6 img.refresh=/net/oni2/aeinstaller/images/tango/view-refresh.png 7 7 8 img.copy=/net/oni2/aeinstaller/images/open_icon_library/edit-copy-9.png 8 9 img.help=/net/oni2/aeinstaller/images/open_icon_library/help-3.png 9 10 img.stop=/net/oni2/aeinstaller/images/open_icon_library/media-playback-stop-7.png -
java/installer2/src/net/oni2/aeinstaller/backend/packages/PackageManager.java
r804 r807 215 215 216 216 /** 217 * @return Currently installed mods 218 */ 219 public TreeSet<Package> getInstalledMods() { 220 TreeSet<Package> res = new TreeSet<Package>(); 221 for (int n : Installer.getInstalledMods()) { 222 res.add(getPackageByNumber(n)); 223 } 224 return res; 225 } 226 227 /** 217 228 * @return Collection of tools valid on this platform and not core 218 229 */ -
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) -
java/installer2/src/net/oni2/aeinstaller/localization/MainWin.properties
r806 r807 23 23 menu.saveConfig=&Save current mod selection... 24 24 menu.saveConfigTooltip=Save current mod selection to a file 25 menu.copyConfig=&Copy currently installed mods to clipboard 26 menu.copyConfigTooltip=Copies the currently installed mods to clipboard in format for posting on OCF 25 27 26 28 menu.corePackages=&Show core packages
Note:
See TracChangeset
for help on using the changeset viewer.