public interface ProjectPlatformProvider
JavaPlatform
.
Allows client to obtain and set the active project platformModifier and Type | Field and Description |
---|---|
static String |
PROP_PROJECT_PLATFORM
Name of the "projectPlatform" property.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds
PropertyChangeListener for listening on project platform changes. |
JavaPlatform |
getProjectPlatform()
Return the active project platform.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes
PropertyChangeListener for listening on project platform changes. |
void |
setProjectPlatform(JavaPlatform platform)
Sets active project platform.
|
static final String PROP_PROJECT_PLATFORM
@CheckForNull JavaPlatform getProjectPlatform()
JavaPlatform
or null if the
active platform cannot be resolved (it's broken)void setProjectPlatform(@NonNull JavaPlatform platform) throws IOException
platform
- the platform to become active project active platformIOException
- in case of IO error.IllegalArgumentException
- if the platform is not a valid platform supported by the project type.void addPropertyChangeListener(@NonNull PropertyChangeListener listener)
PropertyChangeListener
for listening on project platform changes.listener
- the listener to be addedvoid removePropertyChangeListener(@NonNull PropertyChangeListener listener)
PropertyChangeListener
for listening on project platform changes.listener
- the listener to be removed