diff --git a/src/com/jpexs/decompiler/flash/gui/abc/LinkDialog.java b/src/com/jpexs/decompiler/flash/gui/abc/LinkDialog.java index 21e7b5faf..3061109d1 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/LinkDialog.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/LinkDialog.java @@ -20,6 +20,7 @@ import com.jpexs.decompiler.flash.SWF; 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.gui.AppStrings; import com.jpexs.decompiler.flash.gui.Main; import com.jpexs.decompiler.flash.gui.MainPanel; import java.awt.BorderLayout; @@ -39,6 +40,7 @@ import javax.swing.BorderFactory; import javax.swing.DefaultListModel; import javax.swing.JCheckBox; import javax.swing.JDialog; +import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.JRootPane; @@ -60,6 +62,8 @@ public class LinkDialog extends JDialog { private SWF swf; private boolean overLinkButton = false; + + private JLabel noOtherFilesLabel = new JLabel(AppStrings.translate("abc.link.dialog.noOtherFilesOpened")); private List saveListeners = new ArrayList<>(); @@ -106,6 +110,9 @@ public class LinkDialog extends JDialog { dispose(); } }); + + noOtherFilesLabel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); + JPanel customLibraryPanel = new JPanel(new BorderLayout()); linkList = new JList<>(); linkList.setCellRenderer(new CustomLibraryListCellRenderer()); @@ -121,6 +128,7 @@ public class LinkDialog extends JDialog { } }); customLibraryPanel.add(linkList, BorderLayout.CENTER); + customLibraryPanel.add(noOtherFilesLabel, BorderLayout.NORTH); customLibraryPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED)); @@ -140,6 +148,7 @@ public class LinkDialog extends JDialog { } populateSWFs(swf, selectedSWFs); + noOtherFilesLabel.setVisible(selectedSWFs.isEmpty()); } public void show(SWF swf) { diff --git a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties index e50652fac..cb53794e9 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties @@ -1081,4 +1081,6 @@ action.code-completion = Code completion transform.copy = Copy transformation to clipboard transform.clipboard.paste.load = Load transformation from clipboard -transform.clipboard.paste.apply = Apply transformation from clipboard \ No newline at end of file +transform.clipboard.paste.apply = Apply transformation from clipboard + +abc.link.dialog.noOtherFilesOpened = No other files opened \ No newline at end of file diff --git a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties index e9e368fd4..7e3e84eae 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame_cs.properties @@ -1080,4 +1080,6 @@ action.code-completion = Dokon\u010dov\u00e1n\u00ed k\u00f3du transform.copy = Kop\u00edrovat transformaci do schr\u00e1nky transform.clipboard.paste.load = Na\u010d\u00edst transformaci ze schr\u00e1nky -transform.clipboard.paste.apply = Pou\u017e\u00edt transformaci ze schr\u00e1nky \ No newline at end of file +transform.clipboard.paste.apply = Pou\u017e\u00edt transformaci ze schr\u00e1nky + +abc.link.dialog.noOtherFilesOpened = Nejsou otev\u0159eny \u017e\u00e1dn\u00e9 jin\u00e9 soubory \ No newline at end of file