putValue(Action.SMALL_ICON, IconCache.getIcon("hermes.queue.truncate"));
setEnabled(false);
if (!HermesBrowser.getBrowser().isRestricted()) {
enableOnBrowserTreeSelection(new Class[] { DestinationConfigTreeNode.class, RepositoryTreeNode.class }, this, new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
if (getBrowserTree().hasSelection() && getBrowserTree().getLastSelectedPathComponent() instanceof DestinationConfigTreeNode) {
final DestinationConfigTreeNode treeNode = (DestinationConfigTreeNode) getBrowserTree().getSelectionPath().getLastPathComponent();
setEnabled(treeNode.isQueue() || (treeNode.getConfig().isDurable()));