-
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.
Merge pull request #743 from eclipse-passage/559883_sections
Bug 559883 - [Passage] PDE Integration : complete licensing scenario
- Loading branch information
Showing
22 changed files
with
464 additions
and
106 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
27 changes: 27 additions & 0 deletions
27
...e.templates/src/org/eclipse/passage/ldc/internal/pde/core/templates/OptionDefinition.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates; | ||
|
||
import java.util.Optional; | ||
|
||
public interface OptionDefinition<V> { | ||
|
||
String id(); | ||
|
||
String label(); | ||
|
||
Optional<V> initial(); | ||
|
||
Class<V> type(); | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
....pde.core.templates/src/org/eclipse/passage/ldc/internal/pde/core/templates/OptionId.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates; | ||
|
||
@FunctionalInterface | ||
public interface OptionId { | ||
|
||
String id(); | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...de.core.templates/src/org/eclipse/passage/ldc/internal/pde/core/templates/TemplateId.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates; | ||
|
||
@FunctionalInterface | ||
public interface TemplateId { | ||
|
||
String id(); | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...tes/src/org/eclipse/passage/ldc/internal/pde/core/templates/dev/DevMinimalTemplateId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.dev; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.TemplateId; | ||
|
||
public final class DevMinimalTemplateId implements TemplateId { | ||
|
||
@Override | ||
public String id() { | ||
return "dev_minimal"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...g/eclipse/passage/ldc/internal/pde/core/templates/features/FeatureIdentifierOptionId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.features; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.OptionId; | ||
|
||
public final class FeatureIdentifierOptionId implements OptionId { | ||
|
||
@Override | ||
public String id() { | ||
return "featureIdentifier"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...src/org/eclipse/passage/ldc/internal/pde/core/templates/features/FeatureNameOptionId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.features; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.OptionId; | ||
|
||
public final class FeatureNameOptionId implements OptionId { | ||
|
||
@Override | ||
public String id() { | ||
return "featureName"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...org/eclipse/passage/ldc/internal/pde/core/templates/features/FeatureProviderOptionId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.features; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.OptionId; | ||
|
||
public final class FeatureProviderOptionId implements OptionId { | ||
|
||
@Override | ||
public String id() { | ||
return "featureProvider"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...lipse/passage/ldc/internal/pde/core/templates/features/FeatureVersionVersionOptionId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.features; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.OptionId; | ||
|
||
public final class FeatureVersionVersionOptionId implements OptionId { | ||
|
||
@Override | ||
public String id() { | ||
return "featureVersionVersion"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...g/eclipse/passage/ldc/internal/pde/core/templates/products/ProductIdentifierOptionId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.products; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.OptionId; | ||
|
||
public final class ProductIdentifierOptionId implements OptionId { | ||
|
||
@Override | ||
public String id() { | ||
return "productIdentifier"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...src/org/eclipse/passage/ldc/internal/pde/core/templates/products/ProductNameOptionId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.products; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.OptionId; | ||
|
||
public final class ProductNameOptionId implements OptionId { | ||
|
||
@Override | ||
public String id() { | ||
return "productName"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...lipse/passage/ldc/internal/pde/core/templates/products/ProductVersionVersionOptionId.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.ldc.internal.pde.core.templates.products; | ||
|
||
import org.eclipse.passage.ldc.internal.pde.core.templates.OptionId; | ||
|
||
public final class ProductVersionVersionOptionId implements OptionId { | ||
|
||
@Override | ||
public String id() { | ||
return "productVersionVersion"; //$NON-NLS-1$ | ||
} | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
...ge.ldc.pde.core.templates/templates/dev_minimal/features/$featureIdentifier$.features_xmi
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="ASCII"?> | ||
<features:FeatureSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:features="http://www.eclipse.org/passage/lic/features/0.5.0" identifier="$featureIdentifier$" name="$featureName$"> | ||
<features identifier="$featureIdentifier$" provider="$featureProvider$" name="$featureName$"> | ||
<featureVersions version="$featureVersionVersion$"/> | ||
</features> | ||
</features:FeatureSet> |
8 changes: 8 additions & 0 deletions
8
...ge.ldc.pde.core.templates/templates/dev_minimal/products/$productIdentifier$.products_xmi
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="ASCII"?> | ||
<org.eclipse.passage.lic:ProductLine xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:org.eclipse.passage.lic="http://www.eclipse.org/passage/lic/products/0.5.0" identifier="$productIdentifier$" name="$productName$"> | ||
<products identifier="$productIdentifier$" name="$productName$"> | ||
<productVersions version="$productVersionVersion$"> | ||
<productVersionFeatures featureIdentifier="$featureIdentifier$" featureVersion="$featureVersionVersion$"/> | ||
</productVersions> | ||
</products> | ||
</org.eclipse.passage.lic:ProductLine> |
Oops, something went wrong.