Skip to content

Commit

Permalink
But we still want to use fixed versions of ANNIE and OpenNLP plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ianroberts committed Jan 17, 2020
1 parent 7c436c9 commit 0d4c9e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/gate/gui/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ public void actionPerformed(ActionEvent e) {
JButton annieMenu =
new JButton(new LoadApplicationAction("ANNIE", "annie-application",
new ResourceReference(new URI(
"creole://uk.ac.gate.plugins;annie;" + gate.Main.version + "/resources/"
"creole://uk.ac.gate.plugins;annie;8.6/resources/"
+ ANNIEConstants.DEFAULT_FILE))));
annieMenu.setText("");
annieMenu.setToolTipText("Load ANNIE");
Expand Down Expand Up @@ -4341,7 +4341,7 @@ private void rebuildMenu() {
@Override
public void actionPerformed(ActionEvent e) {
try {
Plugin anniePlugin = new Plugin.Maven("uk.ac.gate.plugins", "annie", Main.version);
Plugin anniePlugin = new Plugin.Maven("uk.ac.gate.plugins", "annie", "8.6");
Gate.getCreoleRegister().registerPlugin(anniePlugin);
} catch(Exception ex) {
log.error("Unable to load ANNIE plugin.", ex);
Expand Down Expand Up @@ -5322,14 +5322,14 @@ public ReadyMadeMenu() {
annie = new XJMenuItem(
new LoadApplicationAction("ANNIE", "annie-application",
new ResourceReference(
new URI("creole://uk.ac.gate.plugins;annie;" + gate.Main.version + "/resources/"
new URI("creole://uk.ac.gate.plugins;annie;8.6/resources/"
+ ANNIEConstants.DEFAULT_FILE))),
MainFrame.this);

openNLP = new XJMenuItem(
new LoadApplicationAction("OpenNLP (English)", "application",
new ResourceReference(
new URI("creole://uk.ac.gate.plugins;opennlp;" + gate.Main.version + "/resources/opennlp.gapp"))),
new URI("creole://uk.ac.gate.plugins;opennlp;8.5/resources/opennlp.gapp"))),
MainFrame.this);

addMenuListener(new MenuListener() {
Expand Down

0 comments on commit 0d4c9e0

Please sign in to comment.