Esempio
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
;
}
Soluzione
Per trovare un alternativo da utilizzare, consultare la Guida, i forum di discussione di Eclipse o rivolgersi al team che ha fornito il codice.