mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-01 16:14:53 +00:00
Checkstyle fix
This commit is contained in:
@@ -29,15 +29,16 @@ import javax.swing.JPanel;
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class EasyPanel extends JPanel {
|
||||
|
||||
|
||||
/**
|
||||
* TODO: switch to true when Easy mode is released.
|
||||
* I think it's not production ready yet.
|
||||
* TODO: switch to true when Easy mode is released. I think it's not
|
||||
* production ready yet.
|
||||
*/
|
||||
public static final boolean EASY_AVAILABLE = true;
|
||||
|
||||
|
||||
private TabSwitcher<SWF> tabSwitcher;
|
||||
private EasySwfPanel easySwfPanel;
|
||||
|
||||
public EasyPanel(MainPanel mainPanel) {
|
||||
easySwfPanel = new EasySwfPanel(mainPanel);
|
||||
tabSwitcher = new TabSwitcher<>(easySwfPanel);
|
||||
@@ -47,30 +48,30 @@ public class EasyPanel extends JPanel {
|
||||
@Override
|
||||
public void tabSwitched(SWF value) {
|
||||
easySwfPanel.setTimelined(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void setSwfs(List<SWF> swfs) {
|
||||
tabSwitcher.clear();
|
||||
for (SWF swf : swfs) {
|
||||
tabSwitcher.addTab(swf, swf.getShortPathTitle(), View.getIcon("flash16"));
|
||||
}
|
||||
}
|
||||
easySwfPanel.clearUndos();
|
||||
}
|
||||
|
||||
|
||||
public void setSwf(SWF swf) {
|
||||
tabSwitcher.setValue(swf);
|
||||
}
|
||||
|
||||
|
||||
public void setNoSwf() {
|
||||
easySwfPanel.setTimelined(null);
|
||||
}
|
||||
|
||||
|
||||
public SWF getSwf() {
|
||||
return tabSwitcher.getSelectedValue();
|
||||
}
|
||||
|
||||
|
||||
public void dispose() {
|
||||
setSwfs(new ArrayList<>());
|
||||
easySwfPanel.dispose();
|
||||
|
||||
Reference in New Issue
Block a user