Node deletionElement = (Element) treeSelection.getFirstElement(); Node deletionParent = deletionElement.getParentNode(); deletionParent.removeChild(deletionElement);
NewSiteElement elementCreation_ = new NewSiteElement( treeSelection, document); elementCreation_.init(PlatformUI.getWorkbench(), null);   WizardDialog dialog = new WizardDialog(treeViewer .getControl().getShell(), elementCreation_); dialog.open();
			public void run() {				if (treeSelection != null) {					//TODO: Code to remove Element does here.					Node deletionElement = (Element) treeSelection.getFirstElement();						Node deletionParent = deletionElement.getParentNode();					deletionParent.removeChild(deletionElement);					treeViewer.refresh();									}			}