This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132748

Summary: Implement TreeUtilities.parseExpression
Product: javafx Reporter: David Strupl <dstrupl>
Component: EditorAssignee: David Strupl <dstrupl>
Status: VERIFIED FIXED    
Severity: blocker CC: alexeybutenko
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://wiki.netbeans.org/JavaFXEditorFeatureListM2
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 130138, 132628, 143411    

Description David Strupl 2008-04-14 13:10:29 UTC
alexeybutenko needs following methods to be implemented in JavaFX Source, it is needed for parsing Expressions during
debug session:
in TreeUtilities:
    public ExpressionTree parseExpression(String expr, SourcePositions[] sourcePositions)
    public TypeMirror attributeTree(Tree tree, Scope scope)
in CompilatioInfo:
    public Document getDocument()
in ClassPathInfo:
    public static ClasspathInfo create(ClassPath bootPath, ClassPath classPath, ClassPath sourcePath)
Comment 1 David Strupl 2008-04-14 15:25:19 UTC
This is quite hard to implement. I suggest to leave out this feature for the next milestone ...

As javafxc does not have such a method (similar to javac) it would have to be implemented by e.g. inserting the text
into the document and reparsing the whole document and finding out the expression tree there. I am not sure we want to
to it (in the current hurry before J1).

If there is some easier road please suggest how could this be achieved ... otherwise I will not do it now (since I don't
know how).
Comment 2 Alexey Butenko 2008-07-25 09:55:13 UTC
This issue still needed for debugger: without some parser it is not possible to get Watches and Hints work.
Comment 3 David Strupl 2008-09-08 13:06:59 UTC
Marking as fixed.
Comment 4 Alexandr Scherbatiy 2008-11-10 13:29:29 UTC
Watches work now.