private static IStructureCreator getStructureCreator(ITypedElement element) { StructureCreatorDescriptor scd= CompareUIPlugin.getDefault().getStructureCreator(element.getType()); if (scd != null) { return scd.createStructureCreator(); } return null; }
/** * Create and return a structure creator for the given typed element. * Return <code>null</code> if an appropriate structure creator could * not be obtained. * @param element the typed element * @return structure creator for the given typed element or <code>null</code> * @since 3.4 */ public static IStructureCreator createStructureCreator(ITypedElement element) { StructureCreatorDescriptor scd= CompareUIPlugin.getDefault().getStructureCreator(element.getType()); if (scd != null) { return scd.createStructureCreator(); } return null; }
if (ppath != null) { String type= target.getType(); StructureCreatorDescriptor scd= CompareUIPlugin.getDefault().getStructureCreator(type); if (scd != null) structureCreator= scd.createStructureCreator();
if (ppath != null) { String type= target.getType(); StructureCreatorDescriptor scd= CompareUIPlugin.getDefault().getStructureCreator(type); if (scd != null) structureCreator= scd.createStructureCreator();
if (ppath != null) { String type= target.getType(); StructureCreatorDescriptor scd= CompareUIPlugin.getDefault().getStructureCreator(type); if (scd != null) structureCreator= scd.createStructureCreator();
if (ppath != null) { String type= target.getType(); StructureCreatorDescriptor scd= CompareUIPlugin.getDefault().getStructureCreator(type); if (scd != null) structureCreator= scd.createStructureCreator();
scc= getStructureCreator(type); // search for old-style type scheme if (scc != null) { IStructureCreator sc= scc.createStructureCreator();
scc= (StructureCreatorDescriptor) desc; if (scc == null && type != null) scc= getStructureCreator(type); // search for old-style type scheme if (scc != null) { IStructureCreator sc= scc.createStructureCreator();