Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions src/main/java/core/packetproxy/gui/ExtendedTextPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down Expand Up @@ -157,7 +154,6 @@ public void mousePressed(MouseEvent e) {

public void mouseReleased(MouseEvent e) {
showDecodedTooltipOnSelectedText();
notifySelectedText();
}
});
addKeyListener(new KeyListener() {
Expand Down Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/core/packetproxy/gui/GUIHistoryBinary.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
1 change: 0 additions & 1 deletion src/main/java/core/packetproxy/gui/GUIHistoryRaw.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Loading