public abstract class AbstractProjectConversionParticipant extends Object implements org.eclipse.core.runtime.IExecutableExtension
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_AFTER |
static String |
ATTR_BEFORE |
static String |
ATTR_ID |
static String |
ATTR_NAME |
protected Set<String> |
restrictedPackagings |
Constructor and Description |
---|
AbstractProjectConversionParticipant() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(org.eclipse.core.resources.IProject project)
Checks if this participant can change the Maven Model from this Eclipse project configuration
|
void |
addRestrictedPackaging(String packaging)
Adds a Maven packaging to the set of restricted, compatible packagings for this converter.
|
abstract void |
convert(org.eclipse.core.resources.IProject project,
org.apache.maven.model.Model model,
org.eclipse.core.runtime.IProgressMonitor monitor)
Converts existing Eclipse project configuration to Maven model
|
String |
getId() |
String |
getName() |
String[] |
getPrecedingConverterIds()
Returns the ids of all
AbstractProjectConversionParticipant s this instance must run after. |
Set<String> |
getRestrictedPackagings()
Returns all the Maven packagings this conversion participant is restricted to.
|
String[] |
getSucceedingConverterIds()
Returns the ids of all
AbstractProjectConversionParticipant s this instance must run before. |
boolean |
isPackagingCompatible(String packaging)
Checks if this conversion participant allows the given Maven packaging to be converted :
If there are no packaging restrictions or the packaging restrictions contain this packaging, then it's considered compatible. |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
String propertyName,
Object data) |
protected String[] |
split(String str)
Split a String using the comma delimiter, ignore whitespace.
|
String |
toString() |
public static final String ATTR_ID
public static final String ATTR_NAME
public static final String ATTR_AFTER
public static final String ATTR_BEFORE
public AbstractProjectConversionParticipant()
public String getName()
public String getId()
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config, String propertyName, Object data)
setInitializationData
in interface org.eclipse.core.runtime.IExecutableExtension
protected String[] split(String str)
public abstract boolean accept(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public abstract void convert(org.eclipse.core.resources.IProject project, org.apache.maven.model.Model model, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public Set<String> getRestrictedPackagings()
Set
copy of Maven packagings, can be null
.public boolean isPackagingCompatible(String packaging)
packaging
- the Maven packaging to checktrue
if the packaging is compatible with this conversion participant.public void addRestrictedPackaging(String packaging)
packaging
- the compatible Maven packaging to addpublic String[] getPrecedingConverterIds()
AbstractProjectConversionParticipant
s this instance must run after.public String[] getSucceedingConverterIds()
AbstractProjectConversionParticipant
s this instance must run before.Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.