Fixes in parsing/highlighting.
- fix in cacheing parsed trees for classes.
- do a diet parsing only in JavaSourceDocument to speed up things.
--- a/tools/JavaSourceDocument.st Mon Oct 07 19:16:50 2013 +0100
+++ b/tools/JavaSourceDocument.st Tue Oct 08 07:05:59 2013 +0100
@@ -363,7 +363,7 @@
parser := (Java classForName: 'stx.libjava.tools.parser.Parser')
new.
].
- sourceTree := parser parse: unit diet: "true"JavaMethod showFullSource not resolve: false.
+ sourceTree := parser parse: unit diet: true"JavaMethod showFullSource not" resolve: false.
sourceLineEnds := parser scanner getLineEnds.
self initializeSourceRefsInMethods.
].
@@ -376,7 +376,7 @@
task resume.
"Created: / 06-09-2013 / 17:50:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 26-09-2013 / 00:30:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 08-10-2013 / 06:40:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!JavaSourceDocument methodsFor:'printing & storing'!
--- a/tools/JavaSourceHighlighter.st Mon Oct 07 19:16:50 2013 +0100
+++ b/tools/JavaSourceHighlighter.st Tue Oct 08 07:05:59 2013 +0100
@@ -221,7 +221,7 @@
preferences isNil ifTrue:[
preferences := UserPreferences current.
].
- cacheIt := class notNil and:[class isJavaClass].
+ cacheIt := class notNil and:[class theNonMetaclass isJavaClass].
cacheIt ifTrue:[
document := JavaSourceDocument cachedDocumentFor: class theNonMetaclass.
document notNil ifTrue:[
@@ -278,7 +278,7 @@
]
"Created: / 04-08-2011 / 23:44:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 04-10-2013 / 11:41:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 08-10-2013 / 06:46:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
formatClassDefinition:source in:class elementsInto: els