From: <hee...@us...> - 2009-11-05 08:33:03
|
Revision: 1907 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1907&view=rev Author: heeroyuy Date: 2009-11-05 08:32:54 +0000 (Thu, 05 Nov 2009) Log Message: ----------- -fixed bug -make errors red on panel -some javadoc Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java trunk/src/dl-learner/org/dllearner/tools/protege/HyperLinkHandler.java trunk/src/dl-learner/org/dllearner/tools/protege/ReadingOntologyThread.java Modified: trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2009-11-04 16:20:27 UTC (rev 1906) +++ trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2009-11-05 08:32:54 UTC (rev 1907) @@ -265,7 +265,7 @@ try { currentConceptURL = new URL(currentConcept.toString()); } catch (MalformedURLException e1) { - String error = "<html>Cannot convert to URL.</html>"; + String error = "<html><font size=\"3\" color=\"red\">Cannot convert to URL.</font></html>"; view.setHintMessage(error); e1.printStackTrace(); } Modified: trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java 2009-11-04 16:20:27 UTC (rev 1906) +++ trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java 2009-11-05 08:32:54 UTC (rev 1907) @@ -145,6 +145,7 @@ wikiPane = new JTextPane(); wikiPane.setContentType("text/html"); wikiPane.setBackground(learnerScroll.getBackground()); + wikiPane.setEditable(false); wikiPane.setText(WIKI_STRING); URL iconUrl = this.getClass().getResource("arrow.gif"); icon = new ImageIcon(iconUrl); @@ -512,10 +513,10 @@ */ public void algorithmTerminated() { CELOE celoe = (CELOE) model.getLearningAlgorithm(); - String message = "<html><font size=\"3\">Learning successful. All expressions up to length " + (celoe.getMinimumHorizontalExpansion()-1) + " and some expressions up to <br>length " + celoe.getMaximumHorizontalExpansion() + " searched."; + String message = "<html><font size=\"3\" color=\"black\">Learning successful. All expressions up to length " + (celoe.getMinimumHorizontalExpansion()-1) + " and some expressions up to <br>length " + celoe.getMaximumHorizontalExpansion() + " searched."; hint.setForeground(Color.RED); if(isInconsistent) { - message +="<br>Class expressions marked red will lead to an inconsistent ontology. <br>Please double click on them to view detail information.</font></html>"; + message +="<font size=\"3\" color=\"red\"><br>Class expressions marked red will lead to an inconsistent ontology. <br>Please double click on them to view detail information.</font></html>"; } else { message +="<br>To view details about why a class expression was suggested, please click on it.</font><html>"; } Modified: trunk/src/dl-learner/org/dllearner/tools/protege/HyperLinkHandler.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/HyperLinkHandler.java 2009-11-04 16:20:27 UTC (rev 1906) +++ trunk/src/dl-learner/org/dllearner/tools/protege/HyperLinkHandler.java 2009-11-05 08:32:54 UTC (rev 1907) @@ -1,3 +1,22 @@ +/** + * Copyright (C) 2007-2009, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package org.dllearner.tools.protege; import java.awt.Cursor; @@ -12,10 +31,20 @@ import edu.stanford.ejalbert.exception.BrowserLaunchingInitializingException; import edu.stanford.ejalbert.exception.UnsupportedOperatingSystemException; +/** + * This is the Hyperlink Handler that handles what happens when a + * hyperlink is clicked. + * @author Christian Koetteritzsch + * + */ public class HyperLinkHandler implements HyperlinkListener { private BrowserLauncher launcher; + /** + * This is the constructor that instantiate the + * BrowserLauncher. + */ public HyperLinkHandler() { try { launcher = new BrowserLauncher(); @@ -29,6 +58,9 @@ } @Override + /** + * This methode handles what happens when a hyperlink is clicked. + */ public void hyperlinkUpdate(HyperlinkEvent event) { if (event.getEventType() == HyperlinkEvent.EventType.ENTERED) { ((JEditorPane) event.getSource()).setCursor(Cursor Modified: trunk/src/dl-learner/org/dllearner/tools/protege/ReadingOntologyThread.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/ReadingOntologyThread.java 2009-11-04 16:20:27 UTC (rev 1906) +++ trunk/src/dl-learner/org/dllearner/tools/protege/ReadingOntologyThread.java 2009-11-05 08:32:54 UTC (rev 1907) @@ -186,7 +186,7 @@ } else { view.getRunButton().setEnabled(false); view.getHintPanel().setVisible(true); - String message ="<html><font size=\"3\">There are no Instances for " + current + " available. Please insert some Instances.</font></html>"; + String message ="<html><font size=\"3\" color=\"red\">There are no Instances for " + current + " available. Please insert some Instances.</font></html>"; view.getHintPanel().setForeground(Color.RED); view.setHintMessage(message); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |