TreeItem newItem = addTreeItem();
Map newSavedAction = new HashMap();
newSavedAction.put( "type", "item" );
newItem.setData( newSavedAction );
MActionDialog dialog = new MActionDialog( shell, newSavedAction );
int result = dialog.open();
if( result == 0 )
{
drawItem( newItem );
TreeItem parentItem = newItem.getParentItem();