boolean canCopy = false;
boolean canCut = false;
boolean canDelete = false;
boolean canPaste = false;
VisiblePlugin target = PluginFocusMgr.getInstance().getFocusedPlugin();
if (target != null)
{
canCopy = target.canCopy();
canCut = target.canCut();
canDelete = target.canDelete();
Transferable transferable = ClipboardMgr.getInstance().getCurrentEntry();
if (transferable != null)
{
canPaste = target.canPaste(transferable);
}
}
ActionMgr am = ActionMgr.getInstance();