public void createEntityEditor(uint id, String name)
{
EntityEditorView tev = new EntityEditorView(this, getCurrentEditor().instance.getInstancePtr(), id, name, EntityEditTargetType.TARGET_ENTITY);
for (int i = 0; i < componentInfoManager.count(); ++i)
tev.addComponentClassNameToList(componentInfoManager.getComponentInfoByIndex(i));
dockPanel.Invoke((MethodInvoker)(() => tev.Show(dockPanel, DockState.Float)));
entityEditorInstanceList.Add(new EntityEditorInstance(getCurrentEditor().instance.getInstancePtr(), tev));
}