[154915] When using extensions tab I add a child element but it's not 'revealed' in the tree.
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/AbstractExtensionsSection.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/AbstractExtensionsSection.java
index c206754..df3d345 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/AbstractExtensionsSection.java
+++ b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/AbstractExtensionsSection.java
@@ -102,8 +102,12 @@
       if (!isRoot)
       {  
         extensionTreeViewer.refresh(notifier);
+        if ( newValue instanceof Element)
+        {
+          extensionTreeViewer.expandToLevel(notifier, 1);
+          extensionTreeViewer.setSelection(new StructuredSelection(newValue));
+        }
       }  
-      extensionDetailsViewer.refresh();
     }    
   }
   
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/AddExtensionsComponentDialog.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/AddExtensionsComponentDialog.java
index 229faf2..8a4175b 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/AddExtensionsComponentDialog.java
+++ b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/AddExtensionsComponentDialog.java
@@ -310,11 +310,9 @@
     		fInput.add(schemaSpec);
     		existingNames.add(schemaSpec.getDisplayName());
 
-    		storeSpecInPref(schemaSpec);
-    		//prefStore.setValue(ExtensionsSchemasRegistry.USER_ADDED_EXT_SCHEMAS, "");
-
     		// refresh without updating labels of existing TableItems    		
     		categoryTableViewer.refresh(false);
+    		storeSpecInPref(schemaSpec);  // must store after calling refresh() (trung)
 
     		categoryTableViewer.setSelection(new StructuredSelection(schemaSpec));
     		getButton(IDialogConstants.OK_ID).setEnabled(false);