From: <hee...@us...> - 2009-11-05 09:06:23
|
Revision: 1909 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1909&view=rev Author: heeroyuy Date: 2009-11-05 09:06:10 +0000 (Thu, 05 Nov 2009) Log Message: ----------- -fixed bug in HyperLinkHandler Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java Modified: trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2009-11-05 08:51:04 UTC (rev 1908) +++ trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2009-11-05 09:06:10 UTC (rev 1909) @@ -155,7 +155,7 @@ + "The learning algorithm prefers short expressions. 'Currently searching class expressions with length between 4 and 7.' means that it has already evaluated all class expressions of length 1 to 3<br>" + "or excluded them as possible suggestions. All the expressions currently evaluated have length between 4 and 7. If you want to search for longer expressions, then you have to increase<br>" + "the maximum runtime setting (it is set to $defaultRuntime seconds by default).<br><br>" - + "See <a href=\"http://dl-learner.org/wiki/ProtegePlugin\">http://dl-learner.org/wiki/ProtegePlugin</a> for more details.</font></html>"; + + "See <a href=\"http://dl-learner.org/wiki/ProtegePlugin\">Protege Plugin Wiki</a> for more details.</font></html>"; help = new JTextPane(); help.setEditable(false); Modified: trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java 2009-11-05 08:51:04 UTC (rev 1908) +++ trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerView.java 2009-11-05 09:06:10 UTC (rev 1909) @@ -123,7 +123,7 @@ private int individualSize; private SuggestClassPanelHandler sugPanelHandler; private StatusBar stat; - private static final String WIKI_STRING = "<html><font size=\"3\">See <a href=\"http://dl-learner.org/wiki/ProtegePlugin\">http://dl-learner.org/wiki/ProtegePlugin</a> for an introduction.</font></html>"; + private static final String WIKI_STRING = "<html><font size=\"3\">See <a href=\"http://dl-learner.org/wiki/ProtegePlugin\">Protege Plugin Wiki</a> for an introduction.</font></html>"; /** * The constructor for the DL-Learner tab in the class description @@ -135,6 +135,7 @@ editorKit = editor; labels = ""; individualSize = 0; + hyperHandler = new HyperLinkHandler(); model = new DLLearnerModel(editorKit, this); sugPanel = new SuggestClassPanel(model, this); learnerPanel = new JPanel(); @@ -147,6 +148,7 @@ wikiPane.setBackground(learnerScroll.getBackground()); wikiPane.setEditable(false); wikiPane.setText(WIKI_STRING); + wikiPane.addHyperlinkListener(hyperHandler); URL iconUrl = this.getClass().getResource("arrow.gif"); icon = new ImageIcon(iconUrl); URL toggledIconUrl = this.getClass().getResource("arrow2.gif"); @@ -171,7 +173,6 @@ hint.setContentType("text/html"); hint.setEditable(false); hint.setText("<html><font size=\"3\">To get suggestions for class expression, please click the button above.</font></html>"); - hint.addHyperlinkListener(hyperHandler); learner = new JPanel(); advanced.setSize(20, 20); learner.setLayout(new GridBagLayout()); @@ -185,7 +186,6 @@ sugPanelHandler = new SuggestClassPanelHandler(this, model, action); sugPanel.addSuggestPanelMouseListener(sugPanelHandler); sugPanel.getSuggestList().addListSelectionListener(sugPanelHandler); - hyperHandler = new HyperLinkHandler(); this.addAcceptButtonListener(this.action); this.addRunButtonListener(this.action); this.addAdvancedButtonListener(this.action); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |