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>
|
||||
<groupId>org.apache.jena</groupId>
|
||||
<artifactId>jena-base</artifactId>
|
||||
<artifactId>apache-jena-libs</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.jena</groupId>
|
||||
<artifactId>jena-arq</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>xml-apis</groupId>
|
||||
<artifactId>xml-apis</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<version>2.12.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<repositories>
|
||||
|
|
|
|||
|
|
@ -179,5 +179,11 @@
|
|||
<version>2.0.6</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<version>2.12.2</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -886,28 +886,35 @@ public class Gui implements BioObserver, MouseListener, ActionListener, MouseMot
|
|||
if (Desktop.isDesktopSupported()) {
|
||||
Desktop desktop = Desktop.getDesktop();
|
||||
|
||||
// Set the "About" menu handler
|
||||
desktop.setAboutHandler(e -> {
|
||||
about();
|
||||
});
|
||||
if (desktop.isSupported(Desktop.Action.APP_ABOUT)) {
|
||||
// Set the "About" menu handler
|
||||
desktop.setAboutHandler(e -> {
|
||||
about();
|
||||
});
|
||||
}
|
||||
|
||||
// Set the "Preferences" menu handler
|
||||
desktop.setPreferencesHandler(e -> {
|
||||
PreferencesDialog.showPreferences(Gui.frame);
|
||||
getFileTree().setExpandibleIcons(!IBioSimPreferences.INSTANCE.isPlusMinusIconsEnabled());
|
||||
if (getSBOLDocument() != null) {
|
||||
getSBOLDocument().setDefaultURIprefix(SBOLEditorPreferences.INSTANCE.getUserInfo().getURI().toString());
|
||||
}
|
||||
});
|
||||
if (desktop.isSupported(Desktop.Action.APP_PREFERENCES)) {
|
||||
// Set the "Preferences" menu handler
|
||||
desktop.setPreferencesHandler(e -> {
|
||||
PreferencesDialog.showPreferences(Gui.frame);
|
||||
getFileTree().setExpandibleIcons(!IBioSimPreferences.INSTANCE.isPlusMinusIconsEnabled());
|
||||
if (getSBOLDocument() != null) {
|
||||
getSBOLDocument().setDefaultURIprefix(SBOLEditorPreferences.INSTANCE.getUserInfo().getURI().toString());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (desktop.isSupported(Desktop.Action.APP_QUIT_HANDLER)) {
|
||||
// Set the "Quit" menu handler
|
||||
desktop.setQuitHandler((e, response) -> {
|
||||
exit();
|
||||
// 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();
|
||||
});
|
||||
}
|
||||
|
||||
// Set the "Quit" menu handler
|
||||
desktop.setQuitHandler((e, response) -> {
|
||||
exit();
|
||||
// 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 {
|
||||
edit.addSeparator();
|
||||
edit.add(pref);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue