format source code

This commit is contained in:
2015-01-18 19:31:54 +01:00
parent 303498804e
commit a9d966a3f7
4 changed files with 9 additions and 9 deletions
@@ -1320,7 +1320,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
if (swf == null) {
return;
}
FileAttributesTag fileAttributes = swf.getFileAttributes();
if (fileAttributes != null && fileAttributes.actionScript3) {
final int multiName = getABCPanel().decompiledTextArea.getMultinameUnderCaret();
@@ -1643,7 +1643,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
}
}
public void exportSwfXml() {
List<TreeItem> sel = tagTree.getSelected(tagTree);
for (TreeItem item : sel) {
@@ -1661,7 +1661,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
}
}
public void importSwfXml() {
List<TreeItem> sel = tagTree.getSelected(tagTree);
for (TreeItem item : sel) {
@@ -1684,7 +1684,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
}
}
public void restoreControlFlow(final boolean all) {
Main.startWork(translate("work.restoringControlFlow"));
if ((!all) || confirmExperimental()) {
@@ -2091,7 +2091,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
JFrame f = new JFrame();
View.setWindowIcon(f);
if (fc.showOpenDialog(f) == JFileChooser.APPROVE_OPTION) {
File result = fc.getSelectedFile();
File result = fc.getSelectedFile();
Configuration.lastOpenDir.set(Helper.fixDialogFile(result).getParentFile().getAbsolutePath());
return result;
}
@@ -255,12 +255,12 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener, Se
public SWF getSwf() {
return abc == null ? null : abc.getSwf();
}
public List<ABCContainerTag> getAbcList() {
SWF swf = getSwf();
return swf == null ? null : swf.getAbcList();
}
public void clearSwf() {
this.abc = null;
constantTable.setModel(new DefaultTableModel());
@@ -681,7 +681,7 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
private ABC getABC() {
return script == null ? null : script.abc;
}
@Override
public void setText(String t) {
super.setText(t);
@@ -64,7 +64,7 @@ public class TraitsList extends JList<Object> implements ListSelectionListener {
setModel(new DefaultListModel<>());
setClassIndex(-1, -1);
}
private List<ABCContainerTag> getAbcTags() {
return abc == null ? null : abc.getSwf().getAbcList();
}