Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Remove allocation code if cancel
Remove allocation code if cancel [message #613517] Tue, 11 July 2006 17:01
Eclipse UserFriend
Hello,
I have code to bring up our dialog when dropping our component to the VE
from Palette. If cancel is pressed, it will not generate any code.
However, VE continues generating code to allocate the object. Is there a
way to tell VE to not generate the allocation code? For example:

private void initialize()
{
GridLayout layout = new GridLayout(1,false);
setLayout(layout);
createComponentRendering(); // need to remove this if cancel
}


// need to remove this if cancel
private void createComponentRendering()
{
componentRendering = new ComponentRendering(this,SWT.NONE);
}

Hope this makes sense. Thank you.
Previous Topic:Incorrect class name created in EMF
Next Topic:Problem with beans
Goto Forum:
  


Current Time: Tue Jun 17 06:25:26 EDT 2025

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

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

Back to the top