Examples of IFXEventHandlerProperty


Examples of at.bestsolution.efxclipse.tooling.model.IFXEventHandlerProperty

                IType ownerType = javaProject.findType(element.getType().getQualifiedName());
                IFXClass fxOwnerClazz = FXPlugin.getClassmodel().findClass(javaProject, ownerType);
                IFXProperty ownerProperty = fxOwnerClazz.getProperty(property.getName());
               
                if( ownerProperty instanceof IFXEventHandlerProperty ) {
                  IFXEventHandlerProperty p = (IFXEventHandlerProperty) ownerProperty;
                  IType ctrlType = javaProject.findType(m.getComponentDef().getController().getQualifiedName());
                  IFXCtrlClass ctrlClass = FXPlugin.getClassmodel().findCtrlClass(javaProject, ctrlType);
                  for( IFXCtrlEventMethod ctrlMethod : ctrlClass.getAllEventMethods().values() ) {
                    StyledString s = null;
                    if( ! ctrlMethod.hasArgument() ) {
                      s = new StyledString(ctrlMethod.getName()+"()");
                    } else {
                      if( Util.assignable(p.getEventType(), ctrlMethod.getArgumentType()) ) {
                        s = new StyledString(ctrlMethod.getName() + "("+p.getEventTypeAsString(false)+")");
                      }
                    }
                   
                    if( s != null ) {
                      s.append(" - " + ctrlClass.getSimpleName(), StyledString.QUALIFIER_STYLER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.