@Override protected void editFile(String fileName) throws Exception { ProtegeManager.getInstance().getApplication().editURI(new File(fileName).toURI()); }
@Override protected void editFile(String fileName) throws Exception { ProtegeManager.getInstance().getApplication().editURI(new File(fileName).toURI()); }
@Override protected void editFile(String fileName) throws Exception { ProtegeManager.getInstance().getApplication().editURI(new File(fileName).toURI()); }
private void startApplication() throws Exception { createAndSetupDefaultEditorKit(); if (commandLineURIs != null && !commandLineURIs.isEmpty()) { // Open any command line URIs for (URI uri : commandLineURIs) { editURI(uri); } } checkForUpdates(); }
private void startApplication() throws Exception { showWelcomeFrame(); try { if (commandLineURIs != null && !commandLineURIs.isEmpty()) { // Open any command line URIs for (URI uri : commandLineURIs) { editURI(uri); } if (ProtegeManager.getInstance().getEditorKitManager().getEditorKitCount() != 0) { welcomeFrame.setVisible(false); } } } catch (Exception e) { logger.error("Exception caught loading ontology", e); } if (PluginManager.getInstance().isAutoUpdateEnabled()){ PluginManager.getInstance().performAutoUpdate(); context.addFrameworkListener(new FrameworkListener() { public void frameworkEvent(FrameworkEvent event) { if (event.getType() == FrameworkEvent.STARTED) { context.removeFrameworkListener(this); } } }); } }