/** /** * Returns string identification of the presenter. * @return the string */ @Override public String toString () { return (contentComponent != null ? contentComponent.toString () : "<unassigned>") + "#" + getClass ().getSimpleName (); // NOI18N }
/** * Returns a property value of a specified property * @param propertyName the property name * @return the property value */ public PropertyValue readProperty(String propertyName) { assert document.getTransactionManager().isAccess(); PropertyValue value = properties.get(propertyName); assert properties.containsKey(propertyName) : toString () + "." + propertyName + " property is missing"; //NOI18N assert value != null; return value; }
public String getEditableName (DesignComponent component) { DesignComponent refComponent = component.readProperty(PROP_COMMAND).getComponent(); if (refComponent == null || refComponent.readProperty(ClassCD.PROP_INSTANCE_NAME) == null) { Debug.warning("EventSource referenced " + component.toString() + " is null "); //NOI18N return null; } String name = (String) refComponent.readProperty(ClassCD.PROP_INSTANCE_NAME).getPrimitiveValue (); return name; }