List of usage examples for org.eclipse.jdt.core.dom VariableDeclarationFragment getProperty
public final Object getProperty(String propertyName)
null
if none. From source file:org.eclipse.wb.internal.core.databinding.utils.CoreUtils.java
License:Open Source License
/** * XXX/*from ww w .j a v a 2 s .c o m*/ * * @param <T> * @param fragment * @param clearProperty * @return */ @SuppressWarnings("unchecked") public static <T> T getType(VariableDeclarationFragment fragment, boolean clearProperty) { T type = (T) fragment.getProperty(TYPE_PROPERTY); Assert.isNotNull(type); if (clearProperty) { fragment.setProperty(TYPE_PROPERTY, null); } return type; }