Defines a commenting strategy defined by the org.eclipse.wst.sse.ui.commentinStrategy
extension point and tracked by the {@link CommentingStrategyRegistry}. Though it is important to note it is not a one to one relationship of {@link CommentingStrategy}s to extensions, there is actually one {@link CommentingStrategy} for each content type defined for each org.eclipse.wst.sse.ui.commentinStrategy
extension.
The expected use case is that a {@link CommentingStrategy} is created off the basic configurationof the extension point and then cloned for each associated content type and then each clone has its partition information set using {@link #setPartitionInformation}. Then the {@link CommentingStrategyRegistry} can be used to retrieve applicable {@link CommentingStrategy}s and apply them to documents.
It is important to note that any instance of a {@link CommentingStrategy} is only valid for a specificcontent type ID but this relationship is tracked by the {@link CommentingStrategyRegistry} and not bythe strategy itself. Thus any reference to the strategy being valid for specific or general partition types is implying it is already only valid for a specific content type
|
|
|
|
|
|