下面列出了怎么用org.eclipse.jface.dialogs.TitleAreaDialog的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public int open() {
if (rn != null) {
if (Rechnung.isStorno(rn) || Rechnung.hasStornoBeforeDate(rn, new TimeTool())) {
SWTHelper.alert(Messages.RnActions_stornoAction,
Messages.RnActions_stornoActionNotPossibleText);
return TitleAreaDialog.CANCEL;
}
}
return super.open();
}
protected TitleAreaDialog getDialog( )
{
return dialog;
}