Skip to content

Commit

Permalink
Bug 572650 upgrade licenses domain model
Browse files Browse the repository at this point in the history
fix other implementations of the descriptors

Signed-off-by: eparovyshnaya <[email protected]>
  • Loading branch information
eparovyshnaya committed May 12, 2021
1 parent 680c5bf commit 3cc3bcb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,47 @@
*******************************************************************************/
package org.eclipse.passage.lic.licenses.model.util;

import org.eclipse.emf.common.util.URI;
import java.util.Map;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
import org.eclipse.passage.lic.internal.licenses.model.migration.LicensesResourceHandler;

/**
* <!-- begin-user-doc -->
* The <b>Resource </b> associated with the package.
* <!-- begin-user-doc --> The <b>Resource </b> associated with the package.
* <!-- end-user-doc -->
*
* @see org.eclipse.passage.lic.licenses.model.util.LicensesResourceFactoryImpl
* @generated
*/
public class LicensesResourceImpl extends XMIResourceImpl {
/**
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* Creates an instance of the resource. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @param uri the URI of the new resource.
* @generated
*/
public LicensesResourceImpl(URI uri) {
super(uri);
}

} //LicensesResourceImpl
/**
* Creates an instance of the resource. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated NOT
*/
public LicensesResourceImpl() {
super();
}

@Override
protected void init() {
super.init();
Map<Object, Object> options = getDefaultLoadOptions();
options.put(OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
options.put(OPTION_RESOURCE_HANDLER, new LicensesResourceHandler());
}

} // LicensesResourceImpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
*******************************************************************************/
package org.eclipse.passage.loc.report.internal.core;

import java.util.List;

import org.eclipse.passage.lic.licenses.FloatingLicensePackDescriptor;
import org.eclipse.passage.lic.licenses.LicensePackDescriptor;
import org.eclipse.passage.lic.licenses.LicensePlanDescriptor;
import org.eclipse.passage.lic.licenses.LicensePlanFeatureDescriptor;

Expand Down Expand Up @@ -41,8 +45,18 @@ public String getDescription() {
}

@Override
public Iterable<? extends LicensePlanFeatureDescriptor> getLicensePlanFeatures() {
public List<? extends LicensePlanFeatureDescriptor> getLicensePlanFeatures() {
throw new UnsupportedOperationException();
}

@Override
public List<? extends LicensePackDescriptor> getPersonal() {
throw new UnsupportedOperationException("MUST be implemented for test purposes"); //$NON-NLS-1$
}

@Override
public List<? extends FloatingLicensePackDescriptor> getFloating() {
throw new UnsupportedOperationException("MUST be implemented for test purposes"); //$NON-NLS-1$
}

}

0 comments on commit 3cc3bcb

Please sign in to comment.