setBorder(myborder);
addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent evt){
if(evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() == 2){
if(evt.getSource() instanceof VarDeclaration){
FBTypeDialog fbTypeDialog = new FBTypeDialog(getElement(), evt);
fbTypeDialog.create("Edit Variable");
}
else {
FBTypeDialog fbTypeDialog = new FBTypeDialog(getElement(), evt);
fbTypeDialog.create("Edit Event");
}
}
else if(evt.getButton() == MouseEvent.BUTTON3){
ContextMenu contextMenu = new ContextMenu(getElement(), evt);
contextMenu.create(getElement().getNodeName());