diff --git a/src/main/java/core/packetproxy/gui/ExtendedTextPane.java b/src/main/java/core/packetproxy/gui/ExtendedTextPane.java index 6a136354..eded98f7 100644 --- a/src/main/java/core/packetproxy/gui/ExtendedTextPane.java +++ b/src/main/java/core/packetproxy/gui/ExtendedTextPane.java @@ -23,7 +23,6 @@ import java.awt.event.MouseListener; import java.util.Arrays; import java.util.EventListener; -import javax.swing.JButton; import javax.swing.JTextPane; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; @@ -45,9 +44,7 @@ abstract class ExtendedTextPane extends JTextPane { private static final int TEXT_TRIMMING_SIZE = 300000; private static final int BINARY_TRIMMING_SIZE = 10000; // バイナリデータの表示はテキストデータの表示に比べ大幅に時間がかかることを考慮して設定 private static final int DEFAULT_SHOW_SIZE = 2000; - private static final int FONT_SIZE = 12; private WrapEditorKit editor = new WrapEditorKit(new byte[]{}); - private GUIHistoryPanel parentHistory = null; public String prev_text_panel = ""; public UndoManager undo_manager = new UndoManager(); public BinaryBuffer raw_data = new BinaryBuffer(); @@ -157,7 +154,6 @@ public void mousePressed(MouseEvent e) { public void mouseReleased(MouseEvent e) { showDecodedTooltipOnSelectedText(); - notifySelectedText(); } }); addKeyListener(new KeyListener() { @@ -211,25 +207,6 @@ public void setData(byte[] data, boolean trimming) throws Exception { setCaretPosition(0); } - public void setParentHistory(GUIHistoryPanel parentHistory) { - this.parentHistory = parentHistory; - } - - public JButton getParentSend() { - return parentHistory.getParentSend(); - } - - private void notifySelectedText() { - int position_start = getSelectionStart(); - int position_end = getSelectionEnd(); - Range area = Range.of(position_start, position_end); - if (area.getLength() == 0 || area.getLength() > 1000) { - - return; - } - byte[] request = Utils.getSelectedCharacters(data, area.getPositionStart(), area.getPositionEnd()); - } - private void showDecodedTooltipOnSelectedText() { int position_start = getSelectionStart(); int position_end = getSelectionEnd(); diff --git a/src/main/java/core/packetproxy/gui/GUIHistoryBinary.java b/src/main/java/core/packetproxy/gui/GUIHistoryBinary.java index a6e8161c..266b9a45 100644 --- a/src/main/java/core/packetproxy/gui/GUIHistoryBinary.java +++ b/src/main/java/core/packetproxy/gui/GUIHistoryBinary.java @@ -58,7 +58,6 @@ public JTextPane getTextPane() { public GUIHistoryBinary() throws Exception { hex_text = new BinaryTextPane(); - hex_text.setParentHistory(this); hex_text.addDataChangedListener(this); // hex_text.setLineWrap(true); hex_text.setFont(FontManager.getInstance().getFont()); diff --git a/src/main/java/core/packetproxy/gui/GUIHistoryRaw.java b/src/main/java/core/packetproxy/gui/GUIHistoryRaw.java index 52b27367..3dde570e 100644 --- a/src/main/java/core/packetproxy/gui/GUIHistoryRaw.java +++ b/src/main/java/core/packetproxy/gui/GUIHistoryRaw.java @@ -39,7 +39,6 @@ public JTextPane getTextPane() { public GUIHistoryRaw() throws Exception { raw_text = new RawTextPane(); - raw_text.setParentHistory(this); raw_text.addDataChangedListener(this); jsonHighlighter = new JsonSyntaxHighlighter(raw_text.getStyledDocument());