protected String toDisplayString(JavaClass javaClass) { String className = javaClass.getQualifiedNameForReflection(); return (className != null) ? className : ""; //$NON-NLS-1$ }
protected String toDisplayString(JavaClass javaClass) { String className = javaClass.getQualifiedNameForReflection(); return (className != null) ? className : ""; //$NON-NLS-1$ }
protected String toDisplayString(JavaClass javaClass) { String className = javaClass.getQualifiedNameForReflection(); return (className != null) ? className : ""; //$NON-NLS-1$ }
protected boolean syncTextAndModel() { if (eObject_ != null) { String modelValue = eObject_.getHandlerClass().getQualifiedNameForReflection(); String textValue = text_.getText(); if (modelValue == null || modelValue.length() <= 0) return !(textValue == null || textValue.length() <= 0); return !(modelValue.equals(textValue)); } return false; }
protected boolean syncTextAndModel() { if (eObject_ != null) { String modelValue = null; if (eObject_.getServiceInterface() != null) modelValue = eObject_.getServiceInterface().getQualifiedNameForReflection(); String textValue = text_.getText(); if (modelValue == null || modelValue.length() <= 0) return !(textValue == null || textValue.length() <= 0); return !(modelValue.equals(textValue)); } return false; }
protected boolean syncTextAndModel() { if (eObject_ != null) { String modelValue; //Handle PortComponentRef_ServiceEndpointInterface feature in a special way. String SEIFeatureName = Webservice_clientPackage.eINSTANCE.getPortComponentRef_ServiceEndpointInterface().getName(); if ((eObject_ instanceof PortComponentRef) && (feature_.getName().equals(SEIFeatureName))) { modelValue = ((PortComponentRef) eObject_).getServiceEndpointInterface().getQualifiedNameForReflection(); } else { modelValue = (String) eObject_.eGet(feature_); } String textValue = text_.getText(); if (modelValue == null || modelValue.length() <= 0) return !(textValue == null || textValue.length() <= 0); return !(modelValue.equals(textValue)); } return false; }
public void adapt(Handler eObject) { if (eObject_ != null) eObject_.eAdapters().remove(this); eObject_ = eObject; if (eObject_ != null) { eObject_.eAdapters().add(this); String newClassName = eObject_.getHandlerClass().getQualifiedNameForReflection(); setText(newClassName); } else setText(null); }
public Class getType(JavaHelpers modelClass) { Class result = null; if (modelClass.isArray()) { ArrayType arrayType = (ArrayType) modelClass; Class componentClass = getType(arrayType.getFinalComponentType()); result = (Array.newInstance(componentClass, new int[arrayType.getArrayDimensions()])).getClass(); } else if (modelClass.isPrimitive()) { result = getType(modelClass.getQualifiedName()); } else { result = getType(((JavaClass) modelClass).getQualifiedNameForReflection()); } return result; } public Class getType(String qualifiedName) {
public void notifyChanged(Notification msg) { int type = msg.getEventType(); if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_) { String newClassName = eObject_.getServiceInterface().getQualifiedNameForReflection(); setText(newClassName); } }
public void notifyChanged(Notification msg) { int type = msg.getEventType(); if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_) { String newClassName = eObject_.getHandlerClass().getQualifiedNameForReflection(); setText(newClassName); } }
public void adapt(EObject eObject) { if (eObject_ != null) eObject_.eAdapters().remove(this); eObject_ = eObject; if (eObject_ != null) { eObject_.eAdapters().add(this); Object obj = eObject_.eGet(feature_); String objStringValue = ""; //$NON-NLS-1$ if (obj instanceof String) { objStringValue = (String) obj; } else if (obj instanceof JavaClass) { JavaClass javaClass = (JavaClass) obj; objStringValue = javaClass.getQualifiedNameForReflection(); } setText(objStringValue); } else setText(null); }
public void notifyChanged(Notification msg) { int type = msg.getEventType(); if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_) { Object obj = eObject_.eGet(feature_); String objStringValue = ""; //$NON-NLS-1$ if (obj instanceof String) { objStringValue = (String) obj; } else if (obj instanceof JavaClass) { JavaClass javaClass = (JavaClass) obj; objStringValue = javaClass.getQualifiedNameForReflection(); } setText(objStringValue); } }
w.write(exception.getQualifiedNameForReflection()); if (it.hasNext()) w.write(", ");
public void adapt(ServiceRef eObject) { if (eObject_ != null) eObject_.eAdapters().remove(this); eObject_ = eObject; if (eObject_ != null) { eObject_.eAdapters().add(this); if (eObject_.getServiceInterface() != null) { String newClassName = eObject_.getServiceInterface().getQualifiedNameForReflection(); setText(newClassName); } else { setText(null); } } else setText(null); }