Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0af09d3dca68bc5afee4837b900a0987f5d85027 (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
/*******************************************************************************
 * Copyright (c) 2013 IBM Corporation and others.
 * 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:
 *      IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.m2e.core.project.conversion;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IStatus;

/**
 * IProjectConversionEnabler
 *
 * @author Roberto Sanchez
 */
public interface IProjectConversionEnabler {
  
  /**
   * Test if this enabler is interested in analyzing this project
   * 
   * @return true if the analyzer wants to work on this project.
   */
  public boolean accept(IProject project);
  
  /**
   * Test if project should be converted to Maven. Enablers might have reasons for 
   * not allowing certain types of project to be converted to Maven
   * 
   * @return IStatus indicating if project can be converted or not. if the project should 
   * not be converted, the severity must be set to IStatus.ERROR. If the project should be converted, 
   * the severity must be set to IStatus.OK. This method should not return null.  
   */
  public IStatus canBeConverted(IProject project);
  
 
  /**
   * If project can be converted to Maven, the enabler should provide the suggested packaging types
   * for the project.
   * 
   * @return array of suggested packaging types. This should not return null.
   */
  public String[] getPackagingTypes(IProject project);
  
  

}

Back to the top