summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Reilly <jdr0887@renci.org>2011-07-05 18:47:38 (GMT)
committer Jason Reilly <jdr0887@renci.org>2011-07-05 18:47:38 (GMT)
commit93b9df80bc761a47b0689b4628839eafc5d0c207 (patch)
treee9359d7e928681f33df44ea370dc5740fd5404a4
parentec53d0845d8a45e1230339b6d026c567b30d4b94 (diff)
downloadQCG-Data-93b9df80bc761a47b0689b4628839eafc5d0c207.zip
QCG-Data-93b9df80bc761a47b0689b4628839eafc5d0c207.tar.gz
QCG-Data-93b9df80bc761a47b0689b4628839eafc5d0c207.tar.bz2
cleaning up & setting showSplash preference
-rw-r--r--idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/listeners/PreferencesDialogSaveActionListener.java41
1 files changed, 4 insertions, 37 deletions
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/listeners/PreferencesDialogSaveActionListener.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/listeners/PreferencesDialogSaveActionListener.java
index 8b3301d..0b4bcc6 100644
--- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/listeners/PreferencesDialogSaveActionListener.java
+++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/listeners/PreferencesDialogSaveActionListener.java
@@ -3,6 +3,7 @@ package org.irods.jargon.idrop.desktop.systraygui.listeners;
import static org.irods.jargon.idrop.desktop.systraygui.Constants.PREFERENCE_KEY_DEFAULT_LOCAL_DIR;
import static org.irods.jargon.idrop.desktop.systraygui.Constants.PREFERENCE_KEY_SHOW_HIDDEN_FILES;
import static org.irods.jargon.idrop.desktop.systraygui.Constants.PREFERENCE_KEY_SHOW_UI;
+import static org.irods.jargon.idrop.desktop.systraygui.Constants.PREFERENCE_KEY_SHOW_SPLASH;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@@ -28,6 +29,9 @@ public class PreferencesDialogSaveActionListener implements ActionListener {
boolean showUI = desktop.preferencesDialogShowUICheckBox.isSelected();
desktop.getiDropCore().getPreferences().putBoolean(PREFERENCE_KEY_SHOW_UI, showUI ? true : false);
+ boolean showSplash = desktop.preferencesDialogShowSplashScreenCheckBox.isSelected();
+ desktop.getiDropCore().getPreferences().putBoolean(PREFERENCE_KEY_SHOW_SPLASH, showSplash ? true : false);
+
String defaultLocalDir = desktop.preferencesDialogDefaultLocalDirectoryTextField.getText();
desktop.getiDropCore().getPreferences().put(PREFERENCE_KEY_DEFAULT_LOCAL_DIR, defaultLocalDir);
@@ -35,43 +39,6 @@ public class PreferencesDialogSaveActionListener implements ActionListener {
desktop.getiDropCore().getPreferences()
.putBoolean(PREFERENCE_KEY_SHOW_HIDDEN_FILES, showHiddenFiles ? true : false);
- // if (!showHiddenFiles && StringUtils.isNotEmpty(defaultLocalDir)) {
- // desktop.localFSTreeTableModel = new LocalFSTreeTableModel(new File(defaultLocalDir),
- // desktop.hiddenFileFilenameFilter);
- // }
- //
- // if (showHiddenFiles && StringUtils.isNotEmpty(defaultLocalDir)) {
- // desktop.localFSTreeTableModel = new LocalFSTreeTableModel(new File(defaultLocalDir));
- // }
- //
- // if (!showHiddenFiles && StringUtils.isEmpty(defaultLocalDir)) {
- // desktop.localFSTreeTableModel = new LocalFSTreeTableModel(desktop.hiddenFileFilenameFilter);
- // }
- //
- // if (showHiddenFiles && StringUtils.isEmpty(defaultLocalDir)) {
- // desktop.localFSTreeTableModel = new LocalFSTreeTableModel();
- // }
-
- // desktop.localFSTreeTable.setModel(new TreeTableModelAdapter(desktop.localFSTreeTableModel,
- // new TreeTableCellRenderer(desktop.localFSTreeTable, desktop.localFSTreeTableModel)));
- //
- // desktop.localFSTreeTable = new LocalFSTreeTable(desktop);
- //
- // desktop.localFSTreeTable.setDragEnabled(true);
- // desktop.localFSTreeTable.setDropMode(DropMode.INSERT_ROWS);
- // desktop.localFSTreeTable.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
- // TransferHandler handler = new LocalFSTreeTableTransferHandler(desktop);
- // desktop.localFSTreeTable.setTransferHandler(handler);
- //
- // desktop.localFSTreeTable.getColumn("Name").setPreferredWidth(230);
- // desktop.localFSTreeTable.getColumn("Size").setPreferredWidth(70);
- // desktop.localFSTreeTable.getColumn("Type").setPreferredWidth(65);
- // desktop.localFSTreeTable.getColumn("Modified").setPreferredWidth(95);
- //
- // desktop.localFSTreeTable.setFillsViewportHeight(true);
- // desktop.localFSTreeTableScrollPane.getViewport().removeAll();
- // desktop.localFSTreeTableScrollPane.getViewport().add(desktop.localFSTreeTable);
-
desktop.preferencesDialog.setVisible(false);
}