本文整理匯總了Java中org.eclipse.emf.examples.extlibrary.CirculatingItem類的典型用法代碼示例。如果您正苦於以下問題:Java CirculatingItem類的具體用法?Java CirculatingItem怎麽用?Java CirculatingItem使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CirculatingItem類屬於org.eclipse.emf.examples.extlibrary包,在下文中一共展示了CirculatingItem類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getText
import org.eclipse.emf.examples.extlibrary.CirculatingItem; //導入依賴的package包/類
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object)
{
Date labelValue = ((CirculatingItem)object).getPublicationDate();
String label = labelValue == null ? null : labelValue.toString();
return label == null || label.length() == 0 ?
getString("_UI_CirculatingItem_type") : //$NON-NLS-1$
getString("_UI_CirculatingItem_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
}
示例2: notifyChanged
import org.eclipse.emf.examples.extlibrary.CirculatingItem; //導入依賴的package包/類
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification)
{
updateChildren(notification);
switch (notification.getFeatureID(CirculatingItem.class)) {
case EXTLibraryPackage.CIRCULATING_ITEM__COPIES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}