-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move ProductsResource and Factory to internal package
- Loading branch information
1 parent
3c12948
commit 4227443
Showing
7 changed files
with
324 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 36 additions & 36 deletions
72
bundles/org.eclipse.passage.lic.products.model/plugin.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.0"?> | ||
<!-- | ||
Copyright (c) 2018, 2024 ArSysOp and others | ||
This program and the accompanying materials are made available under the | ||
terms of the Eclipse Public License 2.0 which is available at | ||
https://www.eclipse.org/legal/epl-2.0/. | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
ArSysOp - initial API and implementation | ||
ArSysOp - further support | ||
--> | ||
<plugin> | ||
|
||
<extension point="org.eclipse.emf.ecore.generated_package"> | ||
<!-- @generated products --> | ||
<package | ||
uri="http://www.eclipse.org/passage/lic/products/3.0.0" | ||
class="org.eclipse.passage.lic.products.model.meta.ProductsPackage" | ||
genModel="model/products.genmodel"/> | ||
</extension> | ||
|
||
<extension point="org.eclipse.emf.ecore.extension_parser"> | ||
<!-- @generated products --> | ||
<parser | ||
type="products" | ||
class="org.eclipse.passage.lic.products.model.util.ProductsResourceFactoryImpl"/> | ||
<parser | ||
type="lic_products" | ||
class="org.eclipse.passage.lic.products.model.util.ProductsResourceFactoryImpl"/> | ||
</extension> | ||
|
||
</plugin> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.0"?> | ||
<!-- | ||
Copyright (c) 2018, 2024 ArSysOp and others | ||
This program and the accompanying materials are made available under the | ||
terms of the Eclipse Public License 2.0 which is available at | ||
https://www.eclipse.org/legal/epl-2.0/. | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
ArSysOp - initial API and implementation | ||
ArSysOp - further support | ||
--> | ||
<plugin> | ||
|
||
<extension point="org.eclipse.emf.ecore.generated_package"> | ||
<!-- @generated products --> | ||
<package | ||
uri="http://www.eclipse.org/passage/lic/products/3.0.0" | ||
class="org.eclipse.passage.lic.products.model.meta.ProductsPackage" | ||
genModel="model/products.genmodel"/> | ||
</extension> | ||
|
||
<extension point="org.eclipse.emf.ecore.extension_parser"> | ||
<!-- @generated products --> | ||
<parser | ||
type="products" | ||
class="org.eclipse.passage.lic.internal.products.model.util.ProductsResourceFactoryImpl"/> | ||
<parser | ||
type="lic_products" | ||
class="org.eclipse.passage.lic.internal.products.model.util.ProductsResourceFactoryImpl"/> | ||
</extension> | ||
|
||
</plugin> |
75 changes: 27 additions & 48 deletions
75
...del/util/ProductsResourceFactoryImpl.java → ...del/util/ProductsResourceFactoryImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018, 2024 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.products.model.util; | ||
|
||
import org.eclipse.emf.common.util.URI; | ||
import org.eclipse.emf.ecore.resource.Resource; | ||
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; | ||
|
||
/** | ||
* <!-- begin-user-doc --> The <b>Resource Factory</b> associated with the | ||
* package. <!-- end-user-doc --> | ||
* @see org.eclipse.passage.lic.products.model.util.ProductsResourceImpl | ||
* @generated | ||
*/ | ||
public class ProductsResourceFactoryImpl extends ResourceFactoryImpl { | ||
/** | ||
* Creates an instance of the resource factory. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public ProductsResourceFactoryImpl() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Creates an instance of the resource. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public Resource createResource(URI uri) { | ||
Resource result = new ProductsResourceImpl(uri); | ||
return result; | ||
} | ||
|
||
} // ProductsResourceFactoryImpl | ||
/******************************************************************************* | ||
* Copyright (c) 2018, 2024 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.products.model.util; | ||
|
||
import org.eclipse.emf.common.util.URI; | ||
import org.eclipse.emf.ecore.resource.Resource; | ||
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; | ||
|
||
public class ProductsResourceFactoryImpl extends ResourceFactoryImpl { | ||
|
||
@Override | ||
public Resource createResource(URI uri) { | ||
Resource result = new ProductsResourceImpl(uri); | ||
return result; | ||
} | ||
|
||
} |
82 changes: 35 additions & 47 deletions
82
...ucts/model/util/ProductsResourceImpl.java → ...ucts/model/util/ProductsResourceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018, 2024 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.products.model.util; | ||
|
||
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.products.model.migration.ProductsResourceHandler; | ||
|
||
/** | ||
* <!-- begin-user-doc --> The <b>Resource </b> associated with the package. | ||
* <!-- end-user-doc --> | ||
* @see org.eclipse.passage.lic.products.model.util.ProductsResourceFactoryImpl | ||
* @generated | ||
*/ | ||
public class ProductsResourceImpl extends XMIResourceImpl { | ||
/** | ||
* Creates an instance of the resource. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @param uri the URI of the new resource. | ||
* @generated | ||
*/ | ||
public ProductsResourceImpl(URI uri) { | ||
super(uri); | ||
} | ||
|
||
@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 ProductsResourceHandler()); | ||
} | ||
|
||
} // ProductsResourceImpl | ||
/******************************************************************************* | ||
* Copyright (c) 2018, 2024 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.products.model.util; | ||
|
||
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.products.model.migration.ProductsResourceHandler; | ||
|
||
public class ProductsResourceImpl extends XMIResourceImpl { | ||
|
||
public ProductsResourceImpl(URI uri) { | ||
super(uri); | ||
} | ||
|
||
@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 ProductsResourceHandler()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.