use of org.eclipse.wst.sse.ui.internal.contentoutline.IJFaceNodeAdapter in project webtools.sourceediting by eclipse.
the class JFaceNodeContentProvider method getElements.
public Object[] getElements(Object object) {
// The root is usually an instance of an JSONStructuredModel in
// which case we want to extract the document.
Object topNode = object;
if (object instanceof IJSONModel) {
topNode = ((IJSONModel) object).getDocument();
}
IJFaceNodeAdapter adapter = getAdapter(topNode);
if (adapter != null) {
return adapter.getElements(topNode);
}
return new Object[0];
}
use of org.eclipse.wst.sse.ui.internal.contentoutline.IJFaceNodeAdapter in project webtools.sourceediting by eclipse.
the class JFaceNodeContentProvider method getElements.
public Object[] getElements(Object object) {
// The root is usually an instance of an XMLStructuredModel in
// which case we want to extract the document.
Object topNode = object;
if (object instanceof IDOMModel) {
topNode = ((IDOMModel) object).getDocument();
}
IJFaceNodeAdapter adapter = getAdapter(topNode);
if (adapter != null) {
return adapter.getElements(topNode);
}
return new Object[0];
}
Aggregations