Fix issues with model generation libraries
This commit is contained in:
parent
d4d40a9084
commit
9de95ab6eb
3 changed files with 40 additions and 35 deletions
|
|
@ -62,23 +62,15 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.jena</groupId>
|
<groupId>org.apache.jena</groupId>
|
||||||
<artifactId>jena-base</artifactId>
|
<artifactId>apache-jena-libs</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.jena</groupId>
|
<groupId>xerces</groupId>
|
||||||
<artifactId>jena-arq</artifactId>
|
<artifactId>xercesImpl</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>2.12.2</version>
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>xml-apis</groupId>
|
|
||||||
<artifactId>xml-apis</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>xerces</groupId>
|
|
||||||
<artifactId>xercesImpl</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
|
||||||
|
|
@ -178,6 +178,12 @@
|
||||||
<artifactId>jdom2</artifactId>
|
<artifactId>jdom2</artifactId>
|
||||||
<version>2.0.6</version>
|
<version>2.0.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>xerces</groupId>
|
||||||
|
<artifactId>xercesImpl</artifactId>
|
||||||
|
<version>2.12.2</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -886,28 +886,35 @@ public class Gui implements BioObserver, MouseListener, ActionListener, MouseMot
|
||||||
if (Desktop.isDesktopSupported()) {
|
if (Desktop.isDesktopSupported()) {
|
||||||
Desktop desktop = Desktop.getDesktop();
|
Desktop desktop = Desktop.getDesktop();
|
||||||
|
|
||||||
// Set the "About" menu handler
|
if (desktop.isSupported(Desktop.Action.APP_ABOUT)) {
|
||||||
desktop.setAboutHandler(e -> {
|
// Set the "About" menu handler
|
||||||
about();
|
desktop.setAboutHandler(e -> {
|
||||||
});
|
about();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Set the "Preferences" menu handler
|
if (desktop.isSupported(Desktop.Action.APP_PREFERENCES)) {
|
||||||
desktop.setPreferencesHandler(e -> {
|
// Set the "Preferences" menu handler
|
||||||
PreferencesDialog.showPreferences(Gui.frame);
|
desktop.setPreferencesHandler(e -> {
|
||||||
getFileTree().setExpandibleIcons(!IBioSimPreferences.INSTANCE.isPlusMinusIconsEnabled());
|
PreferencesDialog.showPreferences(Gui.frame);
|
||||||
if (getSBOLDocument() != null) {
|
getFileTree().setExpandibleIcons(!IBioSimPreferences.INSTANCE.isPlusMinusIconsEnabled());
|
||||||
getSBOLDocument().setDefaultURIprefix(SBOLEditorPreferences.INSTANCE.getUserInfo().getURI().toString());
|
if (getSBOLDocument() != null) {
|
||||||
}
|
getSBOLDocument().setDefaultURIprefix(SBOLEditorPreferences.INSTANCE.getUserInfo().getURI().toString());
|
||||||
});
|
}
|
||||||
|
});
|
||||||
// Set the "Quit" menu handler
|
}
|
||||||
desktop.setQuitHandler((e, response) -> {
|
|
||||||
exit();
|
if (desktop.isSupported(Desktop.Action.APP_QUIT_HANDLER)) {
|
||||||
// If we have returned from the above call the user has decided not to quit
|
// Set the "Quit" menu handler
|
||||||
response.cancelQuit();
|
desktop.setQuitHandler((e, response) -> {
|
||||||
// Perform cleanup before exiting
|
exit();
|
||||||
//response.performQuit(); // or response.cancelQuit();
|
// If we have returned from the above call the user has decided not to quit
|
||||||
});
|
response.cancelQuit();
|
||||||
|
// Perform cleanup before exiting
|
||||||
|
//response.performQuit(); // or response.cancelQuit();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
edit.addSeparator();
|
edit.addSeparator();
|
||||||
edit.add(pref);
|
edit.add(pref);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue