本文整理汇总了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);
}