Skip to main content



      Home
Home » Archived » Visual Editor (VE) » order of generated setters
order of generated setters [message #613550] Tue, 18 July 2006 08:38
Eclipse UserFriend
Hello,

My ContainmentHandler looks something like this,

public Object contributeToDropRequest(...)
{
if ( .... )
{
preCmds.append(new AddComponentRenderingCommand(....));
}
......
}

My AddComponentRenderingCommand looks something like this :

public class AddComponentRenderingCommand extends CommandWrapper
{
public void execute()
{
setStructuralFeature("property1","\"value1\"");
setStructuralFeature("property2","\"value2\"");
setStructuralFeature("property3","\"value3\"");
}
}

I notice that when dragging my custom composite from Palette, the property
setters are generated in different order, For example:

I expect to see :

setProperty1("value1");
setProperty2("value2");
setProperty3("value3");

However, sometime I see this :
setProperty2("value2");
setProperty3("value3");
setProperty1("value1");

And when VE preview this composite, the setters are executed in some other
orders too.

Can someone tell me what exactly determines the order of the generated
code, and the execution when previewing? Thanks.
Previous Topic:Configuration of palette and override files by fragments
Next Topic:order of generated setters
Goto Forum:
  


Current Time: Thu Jun 12 12:06:13 EDT 2025

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

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

Back to the top