Interface TransientProjectFeatureDescriptor
-
- All Known Implementing Classes:
SpaceTemporaryConnection
public interface TransientProjectFeatureDescriptorA plugin can provide addinital features to a project with aProjectFeaturesProviderimplementation. If provided feature implementsTransientProjectFeatureDescriptorthenremove(SProject)andupdateFeature(String, String, Map)methods will be called onSProject.removeFeature(String)andSProject.updateFeature(String, String, Map)will be called for it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransientProjectFeatureDescriptor.Update
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SProjectFeatureDescriptorremove(SProject project)A callback invoked whenSProject.removeFeature(String)method is called for this featuredefault TransientProjectFeatureDescriptor.UpdateupdateFeature(String featureId, String newType, Map<String,String> newParams)Callback invoked whenSProject.updateFeature(String, String, Map)method is called for this feature
-
-
-
Method Detail
-
remove
@Nullable default SProjectFeatureDescriptor remove(@NotNull SProject project)
A callback invoked whenSProject.removeFeature(String)method is called for this feature- Parameters:
project- Reference to the project where removeFeature was called- Returns:
- null if nothing has changed, the feature itself if it was removed
-
updateFeature
@Nullable default TransientProjectFeatureDescriptor.Update updateFeature(@NotNull String featureId, @NotNull String newType, @NotNull Map<String,String> newParams)
Callback invoked whenSProject.updateFeature(String, String, Map)method is called for this feature- Parameters:
featureId- id for the updated featurenewType- type for the updated featurenewParams- parameters for the updated feature- Returns:
- null if nothing has changed, Update object if feature was updated
-
-