mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 20:10:51 +00:00
#1601 Option to hide AS3 docs panel and traitslist/constants panel
This commit is contained in:
@@ -3587,7 +3587,11 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
abcPanel.decompiledTextArea.setNoTrait();
|
||||
}
|
||||
|
||||
showDetail(DETAILCARDAS3NAVIGATOR);
|
||||
if (Configuration.displayAs3TraitsListAndConstantsPanel.get()) {
|
||||
showDetail(DETAILCARDAS3NAVIGATOR);
|
||||
} else {
|
||||
showDetail(DETAILCARDEMPTYPANEL);
|
||||
}
|
||||
showCard(CARDACTIONSCRIPT3PANEL);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,11 @@ public class MethodCodePanel extends JPanel {
|
||||
|
||||
docsPanel = new DocsPanel();
|
||||
sourceTextArea.addDocsListener(docsPanel);
|
||||
add(new JPersistentSplitPane(JSplitPane.VERTICAL_SPLIT, new JScrollPane(sourceTextArea), new JScrollPane(docsPanel), Configuration.guiAvm2DocsSplitPaneDividerLocationPercent));
|
||||
if (Configuration.displayAs3PCodeDocsPanel.get()) {
|
||||
add(new JPersistentSplitPane(JSplitPane.VERTICAL_SPLIT, new JScrollPane(sourceTextArea), new JScrollPane(docsPanel), Configuration.guiAvm2DocsSplitPaneDividerLocationPercent));
|
||||
} else {
|
||||
add(new JScrollPane(sourceTextArea));
|
||||
}
|
||||
sourceTextArea.changeContentType("text/flasm3");
|
||||
sourceTextArea.setFont(Configuration.getSourceFont());
|
||||
|
||||
|
||||
@@ -510,3 +510,9 @@ config.description.warning.initializers = Show warning on AS3 slot/const editati
|
||||
|
||||
config.name.parametersPanelInSearchResults = Show parameters panel in search results
|
||||
config.description.parametersPanelInSearchResults = Show panel with parameters like search text / ignore case / regexp in search results window
|
||||
|
||||
config.name.displayAs3PCodeDocsPanel = Show docs panel in AS3 P-code
|
||||
config.description.displayAs3PCodeDocsPanel = Show panel with documentation of instructions and code structure in AS3 P-code editation and display
|
||||
|
||||
config.name.displayAs3TraitsListAndConstantsPanel = Show AS3 traits list and constants panel
|
||||
config.description.displayAs3TraitsListAndConstantsPanel = Show panel with list of traits and constants under the tag tree for AS3
|
||||
|
||||
Reference in New Issue
Block a user