use of org.eclipse.wst.xsd.ui.internal.util.ModelReconcileAdapter in project webtools.sourceediting by eclipse.
the class ExtensionsSection method setInput.
public void setInput(IWorkbenchPart part, ISelection selection) {
super.setInput(part, selection);
if (adapter == null) {
if (selection instanceof StructuredSelection) {
Object obj = ((StructuredSelection) selection).getFirstElement();
if (obj instanceof XSDConcreteComponent) {
Element element = ((XSDConcreteComponent) obj).getElement();
if (element != null) {
adapter = XSDModelAdapter.lookupOrCreateModelAdapter(element.getOwnerDocument());
if (adapter != null) {
ModelReconcileAdapter modelReconcileAdapter = adapter.getModelReconcileAdapter();
if (modelReconcileAdapter != null) {
modelReconcileAdapter.addListener(internalNodeAdapter);
}
}
}
}
}
}
extensionTreeViewer.expandToLevel(2);
}
Aggregations