public class MavenRuntimeManagerImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
static java.lang.String |
EMBEDDED |
static java.lang.String |
EXTERNAL |
private org.eclipse.core.runtime.preferences.IEclipsePreferences[] |
preferencesLookup |
private org.eclipse.core.runtime.preferences.IPreferencesService |
preferenceStore |
static java.lang.String |
WORKSPACE |
Constructor and Description |
---|
MavenRuntimeManagerImpl() |
Modifier and Type | Method and Description |
---|---|
private AbstractMavenRuntime |
createRuntime(java.lang.String name,
org.osgi.service.prefs.Preferences preferences) |
private java.util.List<ClasspathEntry> |
decodeClasspath(java.lang.String string) |
private java.lang.String |
encodeClasspath(java.util.List<ClasspathEntry> classpath) |
private void |
flush() |
private AbstractMavenRuntime |
getDefaultRuntime() |
java.util.List<AbstractMavenRuntime> |
getMavenRuntimes() |
java.util.List<AbstractMavenRuntime> |
getMavenRuntimes(boolean available) |
AbstractMavenRuntime |
getRuntime(java.lang.String name) |
private org.osgi.service.prefs.Preferences |
getRuntimePreferences(java.lang.String name,
boolean create) |
java.util.Map<java.lang.String,AbstractMavenRuntime> |
getRuntimes() |
private java.lang.String |
getRuntimeType(AbstractMavenRuntime runtime) |
private void |
removeRuntimePreferences() |
void |
reset() |
void |
setDefaultRuntime(AbstractMavenRuntime runtime) |
void |
setRuntimes(java.util.List<AbstractMavenRuntime> runtimes) |
public static final java.lang.String DEFAULT
public static final java.lang.String EMBEDDED
public static final java.lang.String WORKSPACE
public static final java.lang.String EXTERNAL
private final org.eclipse.core.runtime.preferences.IEclipsePreferences[] preferencesLookup
private final org.eclipse.core.runtime.preferences.IPreferencesService preferenceStore
public AbstractMavenRuntime getRuntime(java.lang.String name)
private AbstractMavenRuntime getDefaultRuntime()
public java.util.List<AbstractMavenRuntime> getMavenRuntimes()
public java.util.List<AbstractMavenRuntime> getMavenRuntimes(boolean available)
available
- is true
only available runtimes are returned, all runtimes are returned if false
public void reset()
public void setDefaultRuntime(AbstractMavenRuntime runtime)
private void flush()
public void setRuntimes(java.util.List<AbstractMavenRuntime> runtimes)
private void removeRuntimePreferences()
private java.lang.String getRuntimeType(AbstractMavenRuntime runtime)
private org.osgi.service.prefs.Preferences getRuntimePreferences(java.lang.String name, boolean create)
private java.lang.String encodeClasspath(java.util.List<ClasspathEntry> classpath)
private java.util.List<ClasspathEntry> decodeClasspath(java.lang.String string)
public java.util.Map<java.lang.String,AbstractMavenRuntime> getRuntimes()
private AbstractMavenRuntime createRuntime(java.lang.String name, org.osgi.service.prefs.Preferences preferences)