summaryrefslogtreecommitdiff
path: root/sources/prefs/editors/VSProtocolEditor.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-21 01:54:06 +0000
committerPaul Buetow <paul@buetow.org>2008-05-21 01:54:06 +0000
commit6059b54e23e742db068da5e4a53b8b1b046db121 (patch)
tree72e51fefd35efe5d013d16b4ac26240d7216660f /sources/prefs/editors/VSProtocolEditor.java
parent8d5c21477617e4d08bd098069c7628830675abb7 (diff)
Introduced a new VSEditorFrame.
No more need for the VSProtcolEditor!
Diffstat (limited to 'sources/prefs/editors/VSProtocolEditor.java')
-rw-r--r--sources/prefs/editors/VSProtocolEditor.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/sources/prefs/editors/VSProtocolEditor.java b/sources/prefs/editors/VSProtocolEditor.java
deleted file mode 100644
index f2e6a1a..0000000
--- a/sources/prefs/editors/VSProtocolEditor.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package prefs.editors;
-
-import java.awt.*;
-import java.awt.event.*;
-import java.io.File;
-import java.util.*;
-import javax.swing.*;
-import javax.swing.border.*;
-import javax.swing.event.*;
-import javax.swing.filechooser.*;
-
-import protocols.*;
-import utils.*;
-import core.*;
-import prefs.VSPrefs;
-
-public class VSProtocolEditor extends VSBetterEditor {
- private VSProtocol protocol;
- private JTextField textField;
-
- public VSProtocolEditor(VSPrefs prefs, Component relativeTo, VSProtocol protocol) {
- super(prefs, relativeTo, protocol, prefs.getString("name") + " - "
- + protocol.getName() + " " + prefs.getString("lang.editor"), ALL_PREFERENCES);
-
- this.protocol = protocol;
- init();
- }
-
- private void init() {
- super.getFrame().disposeWithParent();
- super.infoArea.setText(prefs.getString("lang.prefs.protocol.info!"));
- createButtonPanel();
- }
-
- private JPanel createButtonPanel() {
- JPanel buttonPanel = super.buttonPanel;
-
- JButton cancelButton = new JButton(
- prefs.getString("lang.takeover"));
- cancelButton.setMnemonic(prefs.getInteger("keyevent.takeover"));
- cancelButton.addActionListener(this);
- buttonPanel.add(cancelButton);
-
- return buttonPanel;
- }
-
- public void actionPerformed(ActionEvent e) {
- String actionCommand = e.getActionCommand();
-
- if (actionCommand.equals(prefs.getString("lang.ok"))) {
- savePrefs();
- frame.dispose();
-
- } else if (actionCommand.equals(prefs.getString("lang.takeover"))) {
- savePrefs();
-
- } else {
- super.actionPerformed(e);
- }
- }
-}