mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 11:25:29 +00:00
show warning when switching to hex view if swf is modified
This commit is contained in:
@@ -538,6 +538,11 @@ public class Configuration {
|
||||
@ConfigurationCategory("import")
|
||||
public static final ConfigurationItem<Boolean> warningSvgImport = null;
|
||||
|
||||
@ConfigurationDefaultBoolean(true)
|
||||
@ConfigurationName("warning.hexViewNotUpToDate")
|
||||
@ConfigurationCategory("import")
|
||||
public static final ConfigurationItem<Boolean> warningHexViewNotUpToDate = null;
|
||||
|
||||
@ConfigurationDefaultBoolean(false)
|
||||
@ConfigurationName("shapeImport.useNonSmoothedFill")
|
||||
@ConfigurationCategory("import")
|
||||
|
||||
@@ -1040,7 +1040,12 @@ public abstract class MainFrameMenu implements MenuBuilder {
|
||||
|
||||
private void viewHexActionPerformed(ActionEvent evt) {
|
||||
Configuration.dumpView.set(true);
|
||||
mainFrame.getPanel().showView(MainPanel.VIEW_DUMP);
|
||||
MainPanel mainPanel = mainFrame.getPanel();
|
||||
if (mainPanel.isModified()) {
|
||||
View.showMessageDialog(null, translate("message.warning.hexViewNotUpToDate"), translate("message.warning"), JOptionPane.WARNING_MESSAGE, Configuration.warningHexViewNotUpToDate);
|
||||
}
|
||||
|
||||
mainPanel.showView(MainPanel.VIEW_DUMP);
|
||||
setGroupSelection("view", "/file/view/viewHex");
|
||||
setMenuChecked("/tools/timeline", false);
|
||||
}
|
||||
|
||||
@@ -413,4 +413,7 @@ config.name.shapeImport.useNonSmoothedFill = Use non-smoothed fill when a shape
|
||||
config.description.shapeImport.useNonSmoothedFill =
|
||||
|
||||
config.name.internalFlashViewer.execute.as12 = AS1/2 in own flash viewer (Experimental)
|
||||
config.description.internalFlashViewer.execute.as12 = Try to execute ActionScript 1/2 during SWF playback using FFDec flash viewer
|
||||
config.description.internalFlashViewer.execute.as12 = Try to execute ActionScript 1/2 during SWF playback using FFDec flash viewer
|
||||
|
||||
config.name.warning.hexViewNotUpToDate = Show Hex View not up-to-date warning
|
||||
config.description.warning.hexViewNotUpToDate =
|
||||
|
||||
@@ -704,4 +704,6 @@ button.replaceNoFill = Replace - Update bounds...
|
||||
message.warning.svgImportExperimental = Not all SVG features are supported. Only solid color fill mode is supported. Please check the log after import.
|
||||
|
||||
message.imported.swf = The SWF file uses assets from an imported SWF file:\n%url%\nDo you want the assets to be loaded from that URL?
|
||||
message.imported.swf.manually = Cannot load imported SWF\n%url%\nThe file or URL does not exist.\nDo you want to select local file?
|
||||
message.imported.swf.manually = Cannot load imported SWF\n%url%\nThe file or URL does not exist.\nDo you want to select local file?
|
||||
|
||||
message.warning.hexViewNotUpToDate = Hex View is not up-to-date. Please save and reload the file to update Hex View.
|
||||
|
||||
Reference in New Issue
Block a user