blob: bb2353d45968bea29ebfc1bef2779d327b996e2d (
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
48
49
50
51
52
53
|
/*******************************************************************************
* Copyright (c) 2009 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.framework.ui.skynet.blam.operation;
import java.util.Arrays;
import java.util.Collection;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.osee.framework.core.operation.IOperation;
import org.eclipse.osee.framework.core.operation.Operations;
import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
/**
* @author Ryan D. Brooks
*/
public class ConsolidateRelations extends AbstractBlam {
@Override
public String getName() {
return "Consolidate Relations";
}
@Override
public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
IOperation operation =
new ConsolidateRelationsTxOperation(SkynetGuiPlugin.getInstance().getOseeDatabaseService());
Operations.executeWorkAndCheckStatus(operation, monitor);
}
@Override
public String getDescriptionUsage() {
return "Consolidate Relations to use a single relation version where possible.";
}
@Override
public Collection<String> getCategories() {
return Arrays.asList("Admin");
}
@Override
public String getXWidgetsXml() {
return AbstractBlam.emptyXWidgetsXml;
}
}
|