[136942] improve the 'extensions' view - fix some problems
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 6cb60a3..00b4afb 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
@@ -349,13 +349,17 @@
protected abstract Command getRemoveExtensionCommand(Object o);
protected abstract ExtensionsSchemasRegistry getExtensionsSchemasRegistry();
-
+ protected AddExtensionsComponentDialog createAddExtensionsComponentDialog()
+ {
+ return new AddExtensionsComponentDialog(composite.getShell(), getExtensionsSchemasRegistry());
+ }
+
public void widgetSelected(SelectionEvent event)
{
if (event.widget == addButton)
{
ExtensionsSchemasRegistry registry = getExtensionsSchemasRegistry();
- AddExtensionsComponentDialog dialog = new AddExtensionsComponentDialog(composite.getShell(), registry);
+ AddExtensionsComponentDialog dialog = createAddExtensionsComponentDialog();
List properties = registry.getAllExtensionsSchemasContribution();