How to clear the Output panel(s)
I'm trying to clear the Output panel. The IOProvider apparently is not a
way to do this, but I am not sure how to go about it another way. I can
get a hold of the Output panel through a very naive way:
WindowManager manager= WindowManager.getDefault();
Set<TopComponent> topComponents = manager.getRegistry().getOpened();
for(TopComponent tc : topComponents)
if(tc.getDisplayName() != null &&
tc.getDisplayName().equalsIgnoreCase("Output"))
...but even then I have trouble locating the actual text component which
would let me issue a .clear() or setText("").
Any help greatly appreciated,
/Casper