diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b2fc7a..e2c9378 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ## [Unreleased] +## [0.4.1] +### Changed +- Temporarily disabled the Create index menu option. + ## [0.4.0] ### Changed - New supported IDE version range: 2024.2 - 2024.3.*. diff --git a/src/main/java/com/picimako/org/apache/lucene/luke/app/desktop/components/MenuBarProvider.java b/src/main/java/com/picimako/org/apache/lucene/luke/app/desktop/components/MenuBarProvider.java index 5dbebe0..2e32f74 100644 --- a/src/main/java/com/picimako/org/apache/lucene/luke/app/desktop/components/MenuBarProvider.java +++ b/src/main/java/com/picimako/org/apache/lucene/luke/app/desktop/components/MenuBarProvider.java @@ -23,7 +23,7 @@ import com.picimako.org.apache.lucene.luke.app.DirectoryHandler; import com.picimako.org.apache.lucene.luke.app.IndexHandler; import com.picimako.org.apache.lucene.luke.app.desktop.components.dialog.menubar.CheckIndexDialogFactory; -import com.picimako.org.apache.lucene.luke.app.desktop.components.dialog.menubar.CreateIndexDialogFactory; +//import com.picimako.org.apache.lucene.luke.app.desktop.components.dialog.menubar.CreateIndexDialogFactory; import com.picimako.org.apache.lucene.luke.app.desktop.components.dialog.menubar.ExportTermsDialogFactory; import com.picimako.org.apache.lucene.luke.app.desktop.components.dialog.menubar.OpenIndexDialogFactory; import com.picimako.org.apache.lucene.luke.app.desktop.components.dialog.menubar.OptimizeIndexDialogFactory; @@ -58,7 +58,7 @@ public final class MenuBarProvider { private final JMenuItem reopenIndexMItem = new JBMenuItem(MessageUtils.getLocalizedMessage("menu.item.reopen_index")); - private final JMenuItem createIndexMItem = new JBMenuItem(MessageUtils.getLocalizedMessage("menu.item.create_index")); +// private final JMenuItem createIndexMItem = new JBMenuItem(MessageUtils.getLocalizedMessage("menu.item.create_index")); private final JMenuItem closeIndexMItem = new JBMenuItem(MessageUtils.getLocalizedMessage("menu.item.close_index")); @@ -104,8 +104,8 @@ private JMenu createFileMenu() { reopenIndexMItem.addActionListener(listeners::reopenIndex); fileMenu.add(reopenIndexMItem); - createIndexMItem.addActionListener(listeners::showCreateIndexDialog); - fileMenu.add(createIndexMItem); +// createIndexMItem.addActionListener(listeners::showCreateIndexDialog); +// fileMenu.add(createIndexMItem); closeIndexMItem.setEnabled(false); closeIndexMItem.addActionListener(listeners::closeIndex); @@ -139,13 +139,13 @@ void showOpenIndexDialog(ActionEvent e) { } } - void showCreateIndexDialog(ActionEvent e) { - try { - new CreateIndexDialogFactory(project).show(); - } catch (IOException ex) { - throw new LukeException(ex); - } - } +// void showCreateIndexDialog(ActionEvent e) { +// try { +// new CreateIndexDialogFactory(project).show(); +// } catch (IOException ex) { +// throw new LukeException(ex); +// } +// } void reopenIndex(ActionEvent e) { indexHandler.reOpen();