return node.getType() == TreeNode.RESOURCE_NODE;
}
public void actionPerformed( ActionEvent evt, AbstractTreeNode node ){
AbstractPolicyModel rtm = getResourceTreeModel();
if( rtm == null )
return;
ResourceTreeMergeDialog rtmd = new ResourceTreeMergeDialog( node.getParent() );
rtmd.setVisible( true );
String exp = rtmd.getRegularExpression();
if( exp == null )
return;
try {
TreeNode parent = node.getParent();
mergeResources( parent, exp );
rtm.notify( parent );
return;
} catch (Exception ex){
ex.printStackTrace();
}
}