blob: 70c3b153a0cf4d8d5b79cccaee4ec473d4611126 (
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
|
/*******************************************************************************
* Copyright (c) 2004, 2007 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.skynet.core.artifact;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.osee.framework.plugin.core.util.ExtensionDefinedObjects;
import org.eclipse.osee.framework.skynet.core.internal.Activator;
/**
* @author Donald G. Dunne
*/
public class ArtifactChecks {
private static String ELEMENT_ID = "ArtifactCheck";
private static String EXTENSION_ID = Activator.PLUGIN_ID + "." + ELEMENT_ID;
private static String CLASS_NAME_ATTRIBUTE = "classname";
private static List<IArtifactCheck> checks = null;
private static final ExtensionDefinedObjects<IArtifactCheck> artifactCheckObjects =
new ExtensionDefinedObjects<IArtifactCheck>(EXTENSION_ID, ELEMENT_ID, CLASS_NAME_ATTRIBUTE, true);
public static List<IArtifactCheck> getArtifactChecks() {
if (checks == null) {
checks = new ArrayList<IArtifactCheck>();
checks.addAll(artifactCheckObjects.getObjects());
checks.add(new UserArtifactCheck());
}
return checks;
}
}
|