blob: 91e80c1f600929a9d4d20e55f08a48ba1b0cbbb0 (
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
|
/*******************************************************************************
* Copyright (c) 2010 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.util;
import java.util.Collection;
import org.eclipse.osee.coverage.model.CoverageImport;
import org.eclipse.osee.coverage.model.CoverageOptionManager;
import org.eclipse.osee.coverage.model.ICoverage;
import org.eclipse.osee.framework.core.model.Branch;
import org.eclipse.osee.framework.core.util.Result;
import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
/**
* @author Donald G. Dunne
*/
public class NotSaveable implements ISaveable {
@Override
public Result isEditable() {
return new Result("Not Editable");
}
@Override
public Result save(String saveName, CoverageOptionManager coverageOptionManager) {
return new Result("Not Saveable");
}
@Override
public Result save(Collection<ICoverage> coverages, String saveName) {
return new Result("Not Saveable");
}
@Override
public Result saveImportRecord(SkynetTransaction transaction, CoverageImport coverageImport) {
return new Result("Not Saveable");
}
@Override
public Branch getBranch() {
return null;
}
}
|