Skip to content
Snippets Groups Projects
Commit 529e9d60 authored by tjc's avatar tjc
Browse files

option to turn off hyperlinks

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@14599 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 6227f5d5
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,8 @@ public class QualifierTextArea extends JTextPane
private static StringVector dbsLinks;
public static Vector DATABASES = new Vector();
private boolean useHyperlinks = true;
/**
* Create a new QualifierTextArea containing no text.
**/
......@@ -227,6 +229,9 @@ public class QualifierTextArea extends JTextPane
private void setStyleForHyperLinks(final String s,
final String db)
{
if(!isUseHyperlinks())
return;
int ind = 0;
while((ind = indexOfIgnoreCase(s, db+":", ind)) > -1)
{
......@@ -438,4 +443,15 @@ public class QualifierTextArea extends JTextPane
}
return null;
}
private boolean isUseHyperlinks()
{
return useHyperlinks;
}
public void setUseHyperlinks(boolean useHyperlinks)
{
this.useHyperlinks = useHyperlinks;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment