[TASK] Generic commit
This commit is contained in:
1 parent
0ab6364465
commit
cad2ad2e8c
3 files changed
+53
-9
No files matched your search
@@ -363,6 +363,7 @@ public class FancyTextObserverWindow extends JFrame implements Observer {
|
||||
}
|
||||
} catch(Exception e) {
|
||||
// This is to prevent the whole stack from crashing.
|
||||
e.printStackTrace();
|
||||
FancyTextObserverWindow.logger.error(e.toString());
|
||||
FancyTextObserverWindow.logger.error(e.getMessage());
|
||||
}
|
||||
@@ -370,6 +371,8 @@ public class FancyTextObserverWindow extends JFrame implements Observer {
|
||||
|
||||
/**
|
||||
* Method to actually pretty-print the results of a Csparql query
|
||||
* TODO: Fix a bug that leads to printing in black when more tokens are encountered
|
||||
* than expected.
|
||||
* @param CsparqlQueryResultProxy result
|
||||
* @param RDFTable table
|
||||
*/
|
||||
@@ -389,7 +392,8 @@ public class FancyTextObserverWindow extends JFrame implements Observer {
|
||||
if(elementNamesIterator.hasNext()) {
|
||||
elementName += ", ";
|
||||
}
|
||||
this.showToken(elementName, palette[nameIndex]);
|
||||
Color c = (nameIndex < palette.length) ? palette[nameIndex] : Color.BLACK;
|
||||
this.showToken(elementName, c);
|
||||
nameIndex++;
|
||||
}
|
||||
this.showText("]", Color.BLACK);
|
||||
@@ -409,7 +413,8 @@ public class FancyTextObserverWindow extends JFrame implements Observer {
|
||||
} else {
|
||||
token += "\n";
|
||||
}
|
||||
this.showToken(token, palette[tokenIndex]);
|
||||
Color c = (tokenIndex < palette.length) ? palette[tokenIndex] : Color.BLACK;
|
||||
this.showToken(token, c);
|
||||
tokenIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user