/** * Checks whether the XMLHelper used by the {@link EMFStoreResource} is an {@link EMFStoreResourceHelper}. * * @throws IOException */ @Test public void testIsEMFStoreResourceHelperInUse() throws IOException { final XMLHelper[] helper = new XMLHelper[1]; final EMFStoreResource resource = new EMFStoreResource(URI.createURI("foo")) { /** * {@inheritDoc} * * @see org.eclipse.emf.emfstore.internal.common.EMFStoreResource#createXMLHelper() */ @Override protected XMLHelper createXMLHelper() { final XMLHelper xmlHelper = super.createXMLHelper(); helper[0] = xmlHelper; return xmlHelper; } }; resource.save(null); assertTrue(EMFStoreResourceHelper.class.isInstance(helper[0])); }
@Override protected XMLHelper createXMLHelper() { // TODO Auto-generated method stub XMLHelper helper = new XMIHelperImpl(this){ @Override public URI deresolve(URI uri) { // TODO Auto-generated method stub return uri; } }; return helper; }
@Override protected XMLHelper createXMLHelper() { return new ModelXMLHelperImpl(this); }
public ProgressMonitorXMLLoadImpl(XMLHelper helper) { super(helper); }
private PlanResourceSaveImpl(XMLHelper helper, boolean saveDefaults) { super(helper); this.saveDefaults = saveDefaults; }
private PlanXMLLoadImpl(XMLHelper helper, XMLResource planResource) { super(helper); this.planResource = planResource; }
@Override protected XMLHelper createXMLHelper() { return new DictionaryXMLHelper(this); }
@Override protected XMLHelper createXMLHelper() { return this.xmlHelper; }
public BpmnXmlHandler(XMLResource xmiResource, XMLHelper helper, Map<?, ?> options) { super(xmiResource, helper, options); }
public JBPMXMLSaveImpl(XMLHelper helper) { super(helper); }
@Override protected XMLHelper createXMLHelper() { return new MyXMLHelper(this); }
/** * {@inheritDoc} * * @see org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl#createXMLHelper() */ @Override protected XMLHelper createXMLHelper() { return new EMFStoreResourceHelper(this); }