From 20f53760902ba308d162f7913e31f300a76fd0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 19 Aug 2024 08:31:50 +0200 Subject: [PATCH] Changed: #2285 Export to FlashDevelop and IntelliJ IDEA is available only for SWFs without main timeline - even for context menu --- .../flash/gui/tagtree/TagTreeContextMenu.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java index 0e8c22df9..02e09e4f4 100644 --- a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java +++ b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java @@ -34,6 +34,8 @@ import com.jpexs.decompiler.flash.action.parser.script.ActionScript2Parser; import com.jpexs.decompiler.flash.configuration.Configuration; import com.jpexs.decompiler.flash.configuration.CustomConfigurationKeys; import com.jpexs.decompiler.flash.configuration.SwfSpecificCustomConfiguration; +import com.jpexs.decompiler.flash.exporters.swf.SwfFlashDevelopExporter; +import com.jpexs.decompiler.flash.exporters.swf.SwfIntelliJIdeaExporter; import com.jpexs.decompiler.flash.gui.AppDialog; import com.jpexs.decompiler.flash.gui.AppStrings; import com.jpexs.decompiler.flash.gui.AsLinkageDialog; @@ -1472,8 +1474,12 @@ public class TagTreeContextMenu extends JPopupMenu { SWF swf = (SWF) firstItem; exportFlaMenuItem.setVisible(true); if (swf.isAS3()) { - exportFlashDevelopMenuItem.setVisible(true); - exportIdeaMenuItem.setVisible(true); + if (SwfFlashDevelopExporter.canExportSwf(swf)) { + exportFlashDevelopMenuItem.setVisible(true); + } + if (SwfIntelliJIdeaExporter.canExportSwf(swf)) { + exportIdeaMenuItem.setVisible(true); + } } }