Skip to content

Commit

Permalink
Release 0.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
hajdam committed Apr 8, 2024
1 parent 7ad8906 commit f53a042
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion changes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.2.10
0.2.10 (2024-04-08)
- Added support for language switching (zh, jp, ko)
- Added support for basic macro
- Reworked search toolbar UI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class BinEdFileSystem extends VirtualFileSystem implements DumbAware {
private List<VirtualFileListener> fileListeners = new ArrayList<>();

private static class SingletonHelper {
private static final BinEdFileSystem INSTANCE = new BinEdFileSystem();
static final BinEdFileSystem INSTANCE = new BinEdFileSystem();
}

@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public class DebugViewPanel extends javax.swing.JPanel {

public DebugViewPanel() {
binEdEditorComponent = new BinEdEditorComponent();
BinEdManager binEdManager = BinEdManager.getInstance();
BinEdFileManager fileManager = binEdManager.getFileManager();
fileManager.initComponentPanel(binEdEditorComponent.getComponentPanel());
binEdManager.initEditorComponent(binEdEditorComponent);

initComponents();
init();
Expand Down
53 changes: 29 additions & 24 deletions src/main/java/org/exbin/bined/intellij/main/BinEdManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -654,47 +654,52 @@ public void createContextMenu(BinEdEditorComponent editorComponent, @Nullable Fi

menu.add(ActionUtils.actionToMenuItem(createEditSelectionAction(codeArea)));

menu.add(ActionUtils.actionToMenuItem(createInsertDataAction(editorComponent)));
menu.add(ActionUtils.actionToMenuItem(createConvertDataAction(editorComponent)));
if (fileHandler != null) {
menu.add(ActionUtils.actionToMenuItem(createInsertDataAction(editorComponent)));
menu.add(ActionUtils.actionToMenuItem(createConvertDataAction(editorComponent)));
}

menu.addSeparator();

menu.add(ActionUtils.actionToMenuItem(createGoToAction(codeArea)));

findReplaceActions.resetActions();
menu.add(ActionUtils.actionToMenuItem(findReplaceActions.getEditFindAction()));
menu.add(ActionUtils.actionToMenuItem(findReplaceActions.getEditReplaceAction()));

bookmarksManager.resetBookmarksMenu();
JMenu bookmarksMenu = bookmarksManager.getBookmarksMenu();
bookmarksManager.updateBookmarksMenu();
menu.add(bookmarksMenu);

macroManager.resetMacrosMenu();
macroManager.setEditorProvider(editorProvider);
JMenu macrosMenu = macroManager.getMacrosMenu();
macroManager.updateMacrosMenu();
macroManager.notifyMacroRecordingChange(codeArea);
menu.add(macrosMenu);
if (fileHandler != null) {
// TODO Make available in next version
findReplaceActions.resetActions();
menu.add(ActionUtils.actionToMenuItem(findReplaceActions.getEditFindAction()));
menu.add(ActionUtils.actionToMenuItem(findReplaceActions.getEditReplaceAction()));

bookmarksManager.resetBookmarksMenu();
JMenu bookmarksMenu = bookmarksManager.getBookmarksMenu();
bookmarksManager.updateBookmarksMenu();
menu.add(bookmarksMenu);

macroManager.resetMacrosMenu();
macroManager.setEditorProvider(editorProvider);
JMenu macrosMenu = macroManager.getMacrosMenu();
macroManager.updateMacrosMenu();
macroManager.notifyMacroRecordingChange(codeArea);
menu.add(macrosMenu);
}
}
}

menu.addSeparator();

JMenu toolsMenu = new JMenu(frameResourceBundle.getString("toolsMenu.text"));
toolsMenu.add(ActionUtils.actionToMenuItem(createCompareFilesAction(codeArea)));
if (fileHandler != null) {
toolsMenu.add(ActionUtils.actionToMenuItem(createCompareFilesAction(codeArea)));
}
toolsMenu.add(ActionUtils.actionToMenuItem(createClipboardContentAction()));
toolsMenu.add(ActionUtils.actionToMenuItem(createDragDropContentAction()));
menu.add(toolsMenu);

if (editorComponent != null) {
if (fileHandler instanceof BinEdFileHandler || fileHandler instanceof BinEdNativeFile) {
JMenuItem reloadFileMenuItem = createReloadFileMenuItem(fileHandler);
menu.add(reloadFileMenuItem);
}
if (fileHandler instanceof BinEdFileHandler || fileHandler instanceof BinEdNativeFile) {
JMenuItem reloadFileMenuItem = createReloadFileMenuItem(fileHandler);
menu.add(reloadFileMenuItem);
}

if (editorComponent != null) {
if (fileHandler != null) {
final JMenuItem optionsMenuItem = new JMenuItem(optionsResourceBundle.getString("optionsAction.text") + "...");
optionsMenuItem.setToolTipText(optionsResourceBundle.getString("optionsAction.shortDescription"));
optionsMenuItem.setIcon(new ImageIcon(getClass().getResource(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public void updateMatchStatus(boolean hasMatches, boolean prevMatchAvailable, bo
prevMatchAction.setEnabled(prevMatchAvailable);
nextMatchAction.setEnabled(nextMatchAvailable);
replaceButton.setEnabled(hasMatches);
replaceAllButton.setEnabled(hasMatches);
// replaceAllButton.setEnabled(hasMatches);
}

public void setSearchHistory(List<SearchCondition> history) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void initComponentPanel(BinEdComponentPanel componentPanel) {

for (BinEdFileExtension fileExtension : binEdComponentExtensions) {
Optional<BinEdComponentPanel.BinEdComponentExtension> componentExtension = fileExtension.createComponentExtension(componentPanel);
componentExtension.ifPresent((extension) -> {
componentExtension.ifPresent(extension -> {
extension.setApplication(application);
extension.onCreate(componentPanel);
componentPanel.addComponentExtension(extension);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- Public plugin name should be written in Title Case.
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-name -->
<name>BinEd - Binary/Hex Editor</name>
<version>0.2.10.snapshot</version>
<version>0.2.10</version>
<!-- A displayed Vendor name or Organization ID displayed on the Plugins Page. -->
<vendor email="[email protected]" url="https://exbin.org">ExBin Project</vendor>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Application.name = BinEd
Application.title = BinEd Binary/Hex Editor
Application.release = 0.2.10
Application.mode = DEV
Application.version = 0.2.10 DEV
Application.product= BinEd Binary/Hex Editor 0.2.10 DEV
Application.mode =
Application.version = 0.2.10
Application.product= BinEd Binary/Hex Editor 0.2.10
Application.vendor = ExBin Project
Application.homepage = https://bined.exbin.org/intellij-plugin/
Application.vendorId = ExBin Project
Expand Down

0 comments on commit f53a042

Please sign in to comment.