blob: 440e222891ba889207641d361bccb6cd29345c6d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*******************************************************************************
* Copyright (c) 2012 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.coverage.demo.internal;
import org.eclipse.osee.coverage.demo.CoverageChoice;
import org.eclipse.osee.framework.database.init.DatabaseInitConfiguration;
import org.eclipse.osee.framework.database.init.DefaultDbInitTasks;
import org.eclipse.osee.framework.database.init.DefaultOseeTypeDefinitions;
import org.eclipse.osee.framework.database.init.IAddDbInitChoice;
import org.eclipse.osee.framework.database.init.IGroupSelector;
/**
* @author Roberto E. Escobar
*/
public class AddCoverageDemoInitConfig implements IAddDbInitChoice {
@Override
public void addDbInitChoice(IGroupSelector groupSelection) {
DatabaseInitConfiguration config = new DatabaseInitConfiguration();
config.addTask(asLocalExtensionId("AddCommonBranchForCoverageClientDemo"));
config.addTask("org.eclipse.osee.framework.access.provider.FrameworkAccessConfig");
config.addTask(asLocalExtensionId("AddCoverageDemoUsers"));
config.addTask(DefaultDbInitTasks.SIMPLE_TEMPLATE_PROVIDER.getExtensionId());
config.addTask(asLocalExtensionId("AddCoverageBranch"));
config.addOseeType(DefaultOseeTypeDefinitions.OSEE_BASE_TYPES);
config.addOseeType(DefaultOseeTypeDefinitions.DEFINE_TYPES);
config.addOseeType(DefaultOseeTypeDefinitions.ATS_TYPES);
config.addOseeType(DefaultOseeTypeDefinitions.COVERAGE_TYPES);
groupSelection.addChoice(CoverageChoice.OSEE_COVERAGE_DEMO, config);
}
private String asLocalExtensionId(String contributionId) {
return String.format("org.eclipse.osee.coverage.demo.%s", contributionId);
}
}
|