it only shows question mark "proxy" pics
Logged In: YES user_id=797032
don't subclass GraphModelFactory anymore and move the relevant code to a CallGraphLabelProvider. so that the label provider returns the appropriate text.
String label = getLabelProvider().getText(data); if (data instanceof IJavaElement) { IJavaElement jElement = (IJavaElement) data; label = jElement.getParent().getElementName().concat("\n").concat(label); } GraphModelNode node = new GraphModelNode(model, label, labelProvider.getImage(data), data);
cannot easily subclass WorkbenchLabelProvider as its getText() method is final and cannot be overridden.
could just copy all of it, but uses one internal class. hm.
could use proxy pattern
Log in to post a comment.
Logged In: YES
user_id=797032
don't subclass GraphModelFactory anymore and move the
relevant code to a CallGraphLabelProvider. so that the label
provider returns the appropriate text.
String label = getLabelProvider().getText(data);
if (data instanceof IJavaElement) {
IJavaElement jElement = (IJavaElement) data;
label =
jElement.getParent().getElementName().concat("\n").concat(label);
}
GraphModelNode node = new GraphModelNode(model, label,
labelProvider.getImage(data), data);
Logged In: YES
user_id=797032
cannot easily subclass WorkbenchLabelProvider as its
getText() method is final and cannot be overridden.
could just copy all of it, but uses one internal class. hm.
could use proxy pattern