blob: a6d9eff0abe9c6f3c9931f0b67ec3b7cfd31cf75 (
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
|
/*******************************************************************************
* Copyright (c) 2010 Sonatype, Inc.
* 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:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.m2e.core.internal.index.filter;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.m2e.core.embedder.ArtifactKey;
/**
* Experimental extension point interface that allows filtering of maven index artifacts from appearing from various
* places where m2e allows selection of artifacts.
*/
public interface IArtifactFilter {
/**
* @param project is the filtering context project. can be <code>null</code> if no project context.
* @param artifact is the artifact to filter
* @return <code>null</code> or OK status if the artifact should be allowed, INFO/WARNING status to allow with a
* message and ERROR status to block the artifact.
*/
public IStatus filter(IProject project, ArtifactKey artifact);
}
|