Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE ExpressionVisitor not support ArrayAccess type
VE ExpressionVisitor not support ArrayAccess type [message #142890] Fri, 09 November 2007 04:49 Go to next message
Eclipse UserFriend
Originally posted by: caye5200.yahoo.com.cn

I wish to create a new component
(JRadioButtonGroup) that is coded in my particular style by VE

private JRadioButton[] jRBArray=null;
private void initialize() {
this.add(getJRadioButtonGroup(), null);
}
public JRadioButton[] getJRadioButtonGroup(){
if(jRBArray==null)
{
jRBArray=new JRadioButton[2];
jRBArray[0]== new JRadioButton();
jRBArray[0]=.setBounds(new Rectangle(264, 118, 21, 21));
jRBArray[1]== new JRadioButton();
jRBArray[1]=.setBounds(new Rectangle(264, 168, 21, 21));
}
return jRBArray;
}
I'm confusing in the following problems:
ExpressionVisitor ' visit() method support follwing Type
if (exp instanceof MethodInvocation)
SimpleName,
MethodInvocation,
FieldAcess,
ThisExpression
if (exp instanceof Assignment)
SimpleName,QuaufiedName
but my expression Type is ArrayAcess?
how can i do? Please help me ,or give me some other suggestions to this
subject!
zxc
Re: VE ExpressionVisitor not support ArrayAccess type [message #142932 is a reply to message #142890] Fri, 09 November 2007 11:44 Go to previous message
Eclipse UserFriend
Originally posted by: caye5200.yahoo.com.cn

helllo
I found this point="org.eclipse.ve.java.core.style" by debug
ve have default pattern style, its have many rule,eg:
InstacnceVariableRule, ifStatemetnRule
ReturnStatementRule, i wish to extent this point to parser code that my
particular style
this can do?
zxc


"zxc" <caye5200@yahoo.com.cn> wrote in message
news:fh0oto$qf5$1@build.eclipse.org...
>I wish to create a new component (JRadioButtonGroup) that is coded in my
>particular style by VE
> private JRadioButton[] jRBArray=null;
> private void initialize() {
> this.add(getJRadioButtonGroup(), null);
> }
> public JRadioButton[] getJRadioButtonGroup(){
> if(jRBArray==null)
> {
> jRBArray=new JRadioButton[2];
> jRBArray[0]== new JRadioButton();
> jRBArray[0]=.setBounds(new Rectangle(264, 118, 21, 21));
> jRBArray[1]== new JRadioButton();
> jRBArray[1]=.setBounds(new Rectangle(264, 168, 21, 21));
> }
> return jRBArray;
> }
> I'm confusing in the following problems:
> ExpressionVisitor ' visit() method support follwing Type
> if (exp instanceof MethodInvocation)
> SimpleName,
> MethodInvocation,
> FieldAcess,
> ThisExpression
> if (exp instanceof Assignment)
> SimpleName,QuaufiedName
> but my expression Type is ArrayAcess? how can i do? Please help me ,or
> give me some other suggestions to this subject! zxc
>
>
>
>
Re: VE ExpressionVisitor not support ArrayAccess type [message #616867 is a reply to message #142890] Fri, 09 November 2007 11:44 Go to previous message
Eclipse UserFriend
Originally posted by: caye5200.yahoo.com.cn

helllo
I found this point="org.eclipse.ve.java.core.style" by debug
ve have default pattern style, its have many rule,eg:
InstacnceVariableRule, ifStatemetnRule
ReturnStatementRule, i wish to extent this point to parser code that my
particular style
this can do?
zxc


"zxc" <caye5200@yahoo.com.cn> wrote in message
news:fh0oto$qf5$1@build.eclipse.org...
>I wish to create a new component (JRadioButtonGroup) that is coded in my
>particular style by VE
> private JRadioButton[] jRBArray=null;
> private void initialize() {
> this.add(getJRadioButtonGroup(), null);
> }
> public JRadioButton[] getJRadioButtonGroup(){
> if(jRBArray==null)
> {
> jRBArray=new JRadioButton[2];
> jRBArray[0]== new JRadioButton();
> jRBArray[0]=.setBounds(new Rectangle(264, 118, 21, 21));
> jRBArray[1]== new JRadioButton();
> jRBArray[1]=.setBounds(new Rectangle(264, 168, 21, 21));
> }
> return jRBArray;
> }
> I'm confusing in the following problems:
> ExpressionVisitor ' visit() method support follwing Type
> if (exp instanceof MethodInvocation)
> SimpleName,
> MethodInvocation,
> FieldAcess,
> ThisExpression
> if (exp instanceof Assignment)
> SimpleName,QuaufiedName
> but my expression Type is ArrayAcess? how can i do? Please help me ,or
> give me some other suggestions to this subject! zxc
>
>
>
>
Previous Topic:How to add an Item to a popmenu?
Next Topic:adaptable what does it mean in eclipse pugin.xml?
Goto Forum:
  


Current Time: Fri Mar 29 07:41:14 GMT 2024

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

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

Back to the top