private void addRuleListenerToComponent(final int pos){
this.getVisualGraphs().get(0).getComponent(pos).addMouseListener(new MouseAdapter(){
@Override
public void mouseClicked(final MouseEvent e){
if (e.getClickCount() == 2){
final RuleOperatorPanel rop = (RuleOperatorPanel) e.getComponent();
final String ruleName = rop.getRuleName();
GroupEditorPane.this.visualRifEditor.getTreePane().getTree_documents().setSelectionPath( GroupEditorPane.this.visualRifEditor.getRuleContainer().getRuleByName(ruleName).getRulePath());
GroupEditorPane.this.visualRifEditor.getRuleContainer().showRule(ruleName);
}
}
} );