-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmf: add capabilities data structure to IDataProviderDescriptor #198
Conversation
65e6287
to
bea09a6
Compare
* "canCreate" and "canDelete" capability. | ||
* | ||
* "canCreate" indicates that a given data provider can create a derived data | ||
* provider. "canDelete" indicates that a the data provider can be deleted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a the"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure, "canDelete" indicates that THIS data provider can be deleted, it is not related to deleting derived data providers that this data provider has created, correct? So it's the derived data providers that would have their own "canDelete" set to true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the derived data provide would set canDelete to true and not the parent data provider.
* Sets canDelete flag | ||
* | ||
* @param canDelete | ||
* true if data provider can create a derived data provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy/paste error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
With this a data provider factory instance can advertise special capabilities that can be applied for the given data provider. This commit adds code for that and implements the "canCreate" and "canDelete" capability. "canCreate" indicates that this instance can create a derived data provider. Use the IDataProviderFactory method getAdapter(ITmfDataProviderConfigurator.class) to obtains an instance of ITmfDataProviderConfigurator. This interface has methods to get List<ITmfConfigurationSourceType> describing the parameters needed to create a derived data provider using method ITmfDataProviderConfigurator#createDataProvider. "canDelete" indicates a the data provider can be deleted using method ITmfDataProviderConfigurator#deleteDataProviderDescriptor. [Added] capabilities data structure to IDataProviderDescriptor Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
bea09a6
to
636e79d
Compare
With this a data provider factory instance can advertise special capabilities that can be applied for the given data provider.
This commit adds code for that and implements the "canCreate" and "canDelete" capability. "canCreate" indicates that this instance can create a derived data provider. Use the IDataProviderFactory method getAdapter(ITmfDataProviderConfigurator) to obtains a ITmfDataProviderConfigurator. This interface has methods to get List describing the parameters needed to create a derived data provider using method createDataProvider.
"canDelete" indicates a the data provider can be deleted using the method ITmfDataProviderConfigurator#deleteDataProviderDescriptor.
[Added] capabilities data structure to IDataProviderDescriptor
see also eclipse-cdt-cloud/theia-trace-extension#1158
Signed-off-by: Bernd Hufmann bernd.hufmann@ericsson.com