private static void internalDestroy(IStructureCreator creator, ITypedElement te) { if (te != null && creator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) creator; sc2.destroy(te); } }
private IStructureComparator createStructure(IProgressMonitor monitor) { // Defend against concurrent disposal Object input = fInput; if (input == null) return null; if (fStructureCreator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) fStructureCreator; try { return sc2.createStructure(input, monitor); } catch (CoreException e) { CompareUIPlugin.log(e); } } return fStructureCreator.getStructure(input); }
private static ITypedElement createLocalEdition(IStructureCreator creator, ITypedElement input, Object element) { if (creator == null) return null; ITypedElement result = null; if (creator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) creator; try { result = sc2.createElement(element, input, null); } catch (CoreException e) { TeamUIPlugin.log(e); } } if (result == null) { result = createEdition(creator, element, input); } return result; }
private IStructureComparator createStructure(IProgressMonitor monitor) { // Defend against concurrent disposal Object input = fInput; if (input == null) return null; if (fStructureCreator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) fStructureCreator; try { return sc2.createStructure(input, monitor); } catch (CoreException e) { CompareUIPlugin.log(e); } } return fStructureCreator.getStructure(input); }
private static ITypedElement createLocalEdition(IStructureCreator creator, ITypedElement input, Object element) { if (creator == null) return null; ITypedElement result = null; if (creator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) creator; try { result = sc2.createElement(element, input, null); } catch (CoreException e) { TeamUIPlugin.log(e); } } if (result == null) { result = createEdition(creator, element, input); } return result; }
private static void internalDestroy(IStructureCreator creator, ITypedElement te) { if (te != null && creator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) creator; sc2.destroy(te); } }
public void dispose() { if (fStructureComparator != null && fStructureCreator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) fStructureCreator; sc2.destroy(fStructureComparator); } }
public void dispose() { if (fStructureComparator != null && fStructureCreator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) fStructureCreator; sc2.destroy(fStructureComparator); } }
private static void destroyLocalEdition( IStructureCreator structureCreator, LocalResourceTypedElement localFileElement, ITypedElement localEdition) { if (localFileElement != null) localFileElement.discardBuffer(); if (localEdition != null && structureCreator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) structureCreator; sc2.destroy(localEdition); } }
private static void destroyLocalEdition( IStructureCreator structureCreator, LocalResourceTypedElement localFileElement, ITypedElement localEdition) { if (localFileElement != null) localFileElement.discardBuffer(); if (localEdition != null && structureCreator instanceof IStructureCreator2) { IStructureCreator2 sc2 = (IStructureCreator2) structureCreator; sc2.destroy(localEdition); } }