1 12 package org.hibernate.eclipse.mapper.views.contentoutline; 13 14 15 16 import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter; 17 import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; 18 import org.eclipse.wst.sse.ui.internal.contentoutline.IJFaceNodeAdapter; 19 import org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapterFactory; 20 21 22 30 public class JFaceNodeAdapterFactoryForXML extends JFaceNodeAdapterFactory { 31 32 public JFaceNodeAdapterFactoryForXML() { 33 this(IJFaceNodeAdapter.class, true); 34 } 35 36 public JFaceNodeAdapterFactoryForXML(Object adapterKey, boolean registerAdapters) { 37 super(adapterKey, registerAdapters); 38 } 39 40 43 protected INodeAdapter createAdapter(INodeNotifier node) { 44 if (singletonAdapter == null) { 45 singletonAdapter = new JFaceNodeAdapterForXML(this); 47 initAdapter(singletonAdapter, node); 48 } 49 return singletonAdapter; 50 } 51 52 } 53 | Popular Tags |