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 16:51
Arthur Fücher is currently offline Arthur FücherFriend
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: Sat Dec 20 16:46:47 GMT 2014

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

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