Java 类org.eclipse.emf.ecore.xmi.impl.XMISaveImpl 实例源码

项目:fixflow    文件:Bpmn2XMIResourceImpl.java   
@Override
protected XMLSave createXMLSave() {
    return new XMISaveImpl(createXMLHelper()) {
        @Override
        protected boolean shouldSaveFeature(EObject o, EStructuralFeature f) {
            if (Bpmn2Package.eINSTANCE.getDocumentation_Mixed().equals(f))
                return false;
            if (Bpmn2Package.eINSTANCE.getFormalExpression_Mixed().equals(f))
                return false;
            return super.shouldSaveFeature(o, f);
        }
    };
}
项目:emf-fragments    文件:XMIFragmentImpl.java   
@Override
protected XMLSave createXMLSave() {
    return new XMISaveImpl(createXMLHelper()) {
        @Override
        protected void saveHref(EObject remote, EStructuralFeature f) {
            ((MyXMLHelper) helper).currentFeature = f;
            super.saveHref(remote, f);
        }
    };
}