Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ve-dev] which code is parsed and executed on the VM


Hi Janak,

Basically only property settings and initialization statements are executed. If it is not a property or an initialization statement (i.e. XYX x = ...) then the _expression_ is ignored.

If a method doesn't have a initialization statement in it, then it is ignored.

There are other subtle things but that is basically it.

Rich


"Janak Mulani" <janak.mulani@xxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx

10/25/2005 01:29 PM

Please respond to
Discussions people developing code for the Visual Editor project

To
"ve-Dev@Eclipse. Org" <ve-dev@xxxxxxxxxxx>
cc
Subject
[ve-dev] which code is parsed and executed on the VM





Dear VE team,

Suppose I have a bean with generated code as follows:

class MyClass extends MyBean {

private Context context;

public void MyClass() {
                 super();
     initialize();
}

private void initailize() {
                 context = XXX.getContext()
                this.setBackgroundColor(Color.blue); // a method affecting visual attribute
     setForegroundColor(Color.red); // will this be executed?
     this.myBusinesMethod(); // will this be executed
}

private void myBusinessMethod() {
                 if (context == null)
        this.setFont(xyz);
     else
        this.setFont(uvw);
}

How does VE determine which methods will be executed on the target VM? Does
it execute all the methods in init?

Thanks and regards,

Janak

_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top