Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Re: How add restriction to delete a component
Re: How add restriction to delete a component [message #902628] Thu, 16 August 2012 12:51
Arthur Fücher is currently offline Arthur Fücher
Messages: 59
Registered: August 2012
Member
I implement this on *.wbp-component.xml
<parameter name="canDelete">isComponentType(object.getParent(),'com.test.fw.wb.mvc.core.VerticalBox')</parameter>

I saw that in the variable object, the script put the Info object, in org.eclipse.wb.internal.core.model.JavaInfoUtils.executeScript(JavaInfo, String)

Is wrong what I've done? Because always return false.

To understand, the object just can be deleted if it parent is a VerticalBox...
Previous Topic:Re: How add restriction to delete a component
Next Topic:Re: How add restriction to delete a component
Goto Forum:
  


Current Time: Fri Aug 29 12:29:27 EDT 2014

Powered by FUDForum. Page generated in 0.01908 seconds