Object obj = selection.getFirstElement();
if(obj != null){
if(obj instanceof IDOMElement){
IAttributeEditor editor = getAttributeEditor(((IDOMElement)obj).getNodeName());
if(editor != null){
currentEditor = editor.createForm(toolkit, right, (IDOMElement)obj);
}
}
}
right.layout();
}