示例
public
boolean
isInterface(
SourceType
o ) {
if
( o
instanceof
SourceType
){
try
{
ISourceType
type = (
ISourceType
)o.getElementInfo();
if
( type.isInterface() ){
return
true
;
}
}
catch
(
Exception
e){
e.printStackTrace();
}
}
return
false
;
}
解决方案
要了解可以使用的替代方法,请参阅“帮助”或 Eclipse 讨论区,或者与为建议提供代码的开发小组联系。