Remove allocation code if cancel [message #613517] |
Tue, 11 July 2006 17:01 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03412 seconds