本文整理汇总了Java中org.eclipse.emf.examples.extlibrary.Periodical类的典型用法代码示例。如果您正苦于以下问题:Java Periodical类的具体用法?Java Periodical怎么用?Java Periodical使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Periodical类属于org.eclipse.emf.examples.extlibrary包,在下文中一共展示了Periodical类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getText
import org.eclipse.emf.examples.extlibrary.Periodical; //导入依赖的package包/类
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object)
{
String label = ((Periodical)object).getTitle();
return label == null || label.length() == 0 ?
getString("_UI_Periodical_type") : //$NON-NLS-1$
getString("_UI_Periodical_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
}
示例2: notifyChanged
import org.eclipse.emf.examples.extlibrary.Periodical; //导入依赖的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(Periodical.class)) {
case EXTLibraryPackage.PERIODICAL__TITLE:
case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}