blob: 7fb3cb2897c6e68b3802abb36b3cc702a66ce642 (
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
47
|
/*******************************************************************************
* 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.client.demo.internal;
import org.eclipse.osee.client.demo.DemoChoice;
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 AddClientDemoInitConfig implements IAddDbInitChoice {
@Override
public void addDbInitChoice(IGroupSelector groupSelection) {
DatabaseInitConfiguration config = new DatabaseInitConfiguration();
config.addTask(asLocalExtensionId("AddCommonBranchForClientDemo"));
config.addTask("org.eclipse.osee.framework.access.provider.FrameworkAccessConfig");
config.addTask(asLocalExtensionId("AddDemoUsers"));
config.addTask(DefaultDbInitTasks.SIMPLE_TEMPLATE_PROVIDER.getExtensionId());
config.addTask(asLocalExtensionId("AddSawBranch"));
config.addTask(asLocalExtensionId("AddCisBranch"));
config.addTask(asLocalExtensionId("AddRequirementData"));
config.addOseeType(DefaultOseeTypeDefinitions.OSEE_BASE_TYPES);
config.addOseeType(DefaultOseeTypeDefinitions.DEFINE_TYPES);
config.addOseeType(asLocalExtensionId("OseeTypes_ClientDemo"));
groupSelection.addChoice(DemoChoice.OSEE_CLIENT_DEMO.name(), config);
}
private String asLocalExtensionId(String contributionId) {
return String.format("org.eclipse.osee.client.demo.%s", contributionId);
}
}
|