Package com.iizigo.java.prop
Interface IClassReferenceListener
- All Known Implementing Classes:
- EditorClassReference,- EditorFieldActor,- EditorMethodReference2
public interface IClassReferenceListener
Class reference listener for Java Class to reference implementor.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescriptionGets the back-reference string.Gets the back-reference property.Get the fully qualified annotation name that the Java Class should be annotated with.Gets the fully qualified interface name that the Java Class should implement.- booleanChecks if the Class Reference require an annotation back-reference.- void- onJavaChangedSWT- (JavaClass reference) Called when the source has changed and is recompiled on disk or in-memory reconcile.- void- onMethodRenamed- (JavaClass reference, String oldName, String newName, String signature) Called when a method has been renamed in the class.- voidInforms the listener that the fully qualified class name has been changed.- voidNotifies the Class Reference of resolve result.
- Method Details- getRequiredClassAnnotationString getRequiredClassAnnotation()Get the fully qualified annotation name that the Java Class should be annotated with.- Returns:
- Gets the required annotation name, null for none.
 
- onResolveNotifies the Class Reference of resolve result.- Parameters:
- reference- The Class Reference.
- isClassFound- Flag indicating class is found, but interface is not implemented (when true) or annotation is missing.
- errorMessage- The error message, or null to clear the error.
 
- isAnnotationBackReferenceRequiredboolean isAnnotationBackReferenceRequired()Checks if the Class Reference require an annotation back-reference.- Returns:
- true if the annotation is required to have a back-reference on the "ref" member value pair to the Class Reference owner.
 
- getAnnotationBackReferenceString getAnnotationBackReference()Gets the back-reference string.
- getBackReferencePropertyPropCnr getBackReferenceProperty()Gets the back-reference property.
- getRequiredInterfaceString getRequiredInterface()Gets the fully qualified interface name that the Java Class should implement.- Returns:
- Gets the required interface name, null for none.
 
- onJavaChangedSWTCalled when the source has changed and is recompiled on disk or in-memory reconcile. This method is called in the SWT thread only (in the Designer).
- onRenameInforms the listener that the fully qualified class name has been changed. This includes the class package as well as the name.- Parameters:
- reference- The Class Reference.
- newName- The new fully qualified class name.
 
- onMethodRenamedCalled when a method has been renamed in the class.- Parameters:
- reference- The Class Reference.
- oldName- Old name.
- newName- New name.
- signature- Signature of method as retrieved by JavaHelper.getSimpleSignature class in Designer.