mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:00:47 +00:00
ASDec Code: Organizing imports, formatting
This commit is contained in:
@@ -16,28 +16,19 @@
|
||||
*/
|
||||
package com.jpexs.asdec.action.gui;
|
||||
|
||||
import com.jpexs.asdec.Configuration;
|
||||
import com.jpexs.asdec.Main;
|
||||
import com.jpexs.asdec.SWF;
|
||||
import com.jpexs.asdec.action.TagNode;
|
||||
import com.jpexs.asdec.action.parser.ASMParser;
|
||||
import com.jpexs.asdec.action.parser.ParseException;
|
||||
import com.jpexs.asdec.gui.LoadingPanel;
|
||||
import com.jpexs.asdec.gui.View;
|
||||
import com.jpexs.asdec.helpers.Highlighting;
|
||||
import com.jpexs.asdec.tags.Tag;
|
||||
import com.jpexs.asdec.tags.base.ASMSource;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Container;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.swing.*;
|
||||
@@ -61,7 +52,6 @@ public class ActionPanel extends JPanel implements TreeSelectionListener, Action
|
||||
public JLabel asmLabel = new JLabel("P-code source (editable)");
|
||||
public JLabel decLabel = new JLabel("ActionScript source");
|
||||
|
||||
|
||||
public ActionPanel(List<Tag> list) {
|
||||
this.list = list;
|
||||
DefaultSyntaxKit.initKit();
|
||||
@@ -107,7 +97,7 @@ public class ActionPanel extends JPanel implements TreeSelectionListener, Action
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
setLayout(new BorderLayout());
|
||||
add(splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(tagTree), splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panA, panB)), BorderLayout.CENTER);
|
||||
splitPane.setResizeWeight(0.5);
|
||||
@@ -117,10 +107,10 @@ public class ActionPanel extends JPanel implements TreeSelectionListener, Action
|
||||
tagTree.addTreeSelectionListener(this);
|
||||
|
||||
}
|
||||
|
||||
public void initSplits(){
|
||||
splitPane.setDividerLocation(getWidth()/3);
|
||||
splitPane2.setDividerLocation(getWidth()/3);
|
||||
|
||||
public void initSplits() {
|
||||
splitPane.setDividerLocation(getWidth() / 3);
|
||||
splitPane2.setDividerLocation(getWidth() / 3);
|
||||
}
|
||||
|
||||
public void valueChanged(TreeSelectionEvent e) {
|
||||
@@ -172,5 +162,4 @@ public class ActionPanel extends JPanel implements TreeSelectionListener, Action
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user