Skip to content

Commit

Permalink
Merge pull request #743 from eclipse-passage/559883_sections
Browse files Browse the repository at this point in the history
Bug 559883 - [Passage] PDE Integration : complete licensing scenario
  • Loading branch information
ruspl-afed authored Apr 19, 2021
2 parents 3021483 + fca75ba commit 8b40729
Show file tree
Hide file tree
Showing 22 changed files with 464 additions and 106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ Bundle-Version: 0.1.0.qualifier
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Bundle: org.eclipse.passage.lic.base;bundle-version="0.0.0"
Export-Package: org.eclipse.passage.ldc.internal.pde.core.templates;x-friends:="org.eclipse.passage.ldc.pde.ui.templates"
Require-Bundle: org.eclipse.osgi;bundle-version="0.0.0",
org.eclipse.passage.lic.base;bundle-version="0.0.0",
org.eclipse.pde.core;bundle-version="0.0.0"
Export-Package: org.eclipse.passage.ldc.internal.pde.core.templates;x-friends:="org.eclipse.passage.ldc.pde.ui.templates",
org.eclipse.passage.ldc.internal.pde.core.templates.dev;x-friends:="org.eclipse.passage.ldc.pde.ui.templates",
org.eclipse.passage.ldc.internal.pde.core.templates.features;x-friends:="org.eclipse.passage.ldc.pde.ui.templates",
org.eclipse.passage.ldc.internal.pde.core.templates.products;x-friends:="org.eclipse.passage.ldc.pde.ui.templates"
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();

}
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();

}
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();

}
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$
}

}
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$
}

}
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$
}

}
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$
}

}
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$
}

}
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$
}

}
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$
}

}
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$
}

}
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>
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>
Loading

0 comments on commit 8b40729

Please sign in to comment.