Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Custom ASTNodes, OOP broken?
Custom ASTNodes, OOP broken? [message #147402] Thu, 04 March 2004 20:48 Go to next message
Eclipse UserFriend
Hi,
I'm trying to add custom ASTNode for my plug-in.
Unfortunately I have problem with the getNodeType() method.

How can I make sure that the custom node type constants are unique and
don't clash with existing declarations on ASTNode class.

I would have a class
public class CustomASTNode extends ASTNode {
public static final int MY_CUSTOM_STATEMENT = ?????????????

}

public class CustomStatement extends CustomASTNode {
public int getNodeType() {
return MY_CUSTOM_STATEMENT;
}
}

That raises a question: are we supposed to be able to modify the Model?

Cheers
Re: Custom ASTNodes, OOP broken? [message #147462 is a reply to message #147402] Fri, 05 March 2004 09:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akiezun.cuthis.mit.edu.andthis

> That raises a question: are we supposed to be able to modify the Model?

not supported,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=36891
a.
Re: Custom ASTNodes, OOP broken? [message #148081 is a reply to message #147462] Wed, 10 March 2004 13:53 Go to previous messageGo to next message
Eclipse UserFriend
hmmm working on something that should enable it, i hope

adam kiezun wrote:

>>That raises a question: are we supposed to be able to modify the Model?
>
>
> not supported,
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=36891
> a.
>
>
Re: Custom ASTNodes, OOP broken? [message #148155 is a reply to message #148081] Thu, 11 March 2004 09:26 Go to previous message
Eclipse UserFriend
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM

Le Wed, 10 Mar 2004 19:53:08 +0100, Charles-Philip Bentley
<mordan9@hotmail.com> a écrit :
>hmmm working on something that should enable it, i hope
>
>adam kiezun wrote:
>
>>>That raises a question: are we supposed to be able to modify the Model?
>>
>>
>> not supported,
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=36891
I think the reason why extension are not supported is that there is no
need to add new nodes. The existing nodes must reflect the source code
and I believe they do.
We are adding more nodes to support the new 1.5 constructs. Could you
please give me an example or a reason why you would add new nodes?
--
Olivier
Previous Topic:source attachment with variable path
Next Topic:Code generation in Eclipse
Goto Forum:
  


Current Time: Sat May 10 11:52:23 EDT 2025

Powered by FUDForum. Page generated in 0.03704 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top