public void run() {
   String name = getInitialName();
   SchemaElement element;
   if (name.equals("extension")) // $NON-NLS-1$
   element = new SchemaRootElement(schema, name);
   else element = new SchemaElement(schema, name);
   element.setType(new SchemaSimpleType(schema, "string")); // $NON-NLS-1$
   schema.addElement(element);
   schema.updateReferencesFor(element, ISchema.REFRESH_ADD);
 }
 private String getInitialName() {
   return PDELabelUtility.generateName(
       schema.getElementNames(), MDEUIMessages.SchemaEditor_NewElement_initialName, false);
 }