import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.beans.PropertyChangeEvent;
*
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
-public class FileManager extends JDialog implements I18nable, ActionListener, TreeSelectionListener, MouseListener {
+public class FileManager extends JDialog implements I18nable, TreeSelectionListener, MouseListener {
/** Logger. */
private static final Logger logger = Logging.getLogger(FileManager.class.getName());
return selectedProjectFileWrappers;
}
+ /**
+ * Sets the given action’s enabled state to the given enabled state if the
+ * action’s current enabled state is not the given enabled state.
+ *
+ * @param action
+ * The action to set the enabled state on
+ * @param enabled
+ * The new enabled state of the action
+ */
+ private void setEnabled(Action action, boolean enabled) {
+ if (action.isEnabled() != enabled) {
+ action.setEnabled(enabled);
+ }
+ }
+
+ /**
+ * Sets the given button’s selected state to the given selected state if the
+ * button’s current selected state is not the given selected state.
+ *
+ * @param button
+ * The button to set the selected state on
+ * @param selected
+ * The new selected state of the button
+ */
+ private void setSelected(AbstractButton button, boolean selected) {
+ if (button.isSelected() != selected) {
+ button.setSelected(selected);
+ }
+ }
+
//
// INTERFACE I18nable
//
setSelected(insertOverrideCheckBox, insertOverrideSelected);
}
- /**
- * Sets the given action’s enabled state to the given enabled state if the
- * action’s current enabled state is not the given enabled state.
- *
- * @param action
- * The action to set the enabled state on
- * @param enabled
- * The new enabled state of the action
- */
- private void setEnabled(Action action, boolean enabled) {
- if (action.isEnabled() != enabled) {
- action.setEnabled(enabled);
- }
- }
-
- /**
- * Sets the given button’s selected state to the given selected state if the
- * button’s current selected state is not the given selected state.
- *
- * @param button
- * The button to set the selected state on
- * @param selected
- * The new selected state of the button
- */
- private void setSelected(AbstractButton button, boolean selected) {
- if (button.isSelected() != selected) {
- button.setSelected(selected);
- }
- }
-
- //
- // INTERFACE ActionListener
- //
-
- /**
- * {@inheritDoc}
- */
- public void actionPerformed(ActionEvent actionEvent) {
- /* TODO */
- }
-
//
// INTERFACE MouseListener
//