|
43 | 43 | import org.eclipse.tracecompass.tmf.core.model.DataProviderDescriptor; |
44 | 44 | import org.eclipse.tracecompass.tmf.core.model.tree.ITmfTreeDataModel; |
45 | 45 | import org.eclipse.tracecompass.tmf.core.model.tree.ITmfTreeDataProvider; |
46 | | -import org.eclipse.tracecompass.tmf.core.signal.TmfSignalManager; |
47 | 46 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; |
48 | 47 | import org.eclipse.tracecompass.tmf.core.trace.TmfTraceManager; |
49 | 48 | import org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment; |
@@ -96,13 +95,6 @@ public class InAndOutDataProviderFactory extends AbstractTmfDataProviderConfigur |
96 | 95 | .setCapabilities(new DataProviderCapabilities.Builder().setCanCreate(true).build()) |
97 | 96 | .build(); |
98 | 97 |
|
99 | | - /** |
100 | | - * Default constructor |
101 | | - */ |
102 | | - public InAndOutDataProviderFactory() { |
103 | | - TmfSignalManager.register(this); |
104 | | - } |
105 | | - |
106 | 98 | @Override |
107 | 99 | public @Nullable ITmfTreeDataProvider<? extends ITmfTreeDataModel> createProvider(ITmfTrace trace) { |
108 | 100 | return null; |
@@ -182,7 +174,7 @@ protected void removeConfiguration(ITmfTrace trace, ITmfConfiguration config) { |
182 | 174 | * the |
183 | 175 | * @throws TmfConfigurationException if an error occurs |
184 | 176 | */ |
185 | | - private void remove(ITmfConfiguration config, @NonNull ITmfTrace trace, String baseAnalysisId) throws TmfConfigurationException { |
| 177 | + private void remove(ITmfConfiguration config, ITmfTrace trace, String baseAnalysisId) throws TmfConfigurationException { |
186 | 178 | IPath traceConfig = getConfigurationRootFolder(trace); |
187 | 179 | traceConfig = traceConfig.append(File.separator).append(config.getId()).addFileExtension(JSON_EXTENSION); |
188 | 180 | File configFile = traceConfig.toFile(); |
@@ -211,11 +203,10 @@ private void remove(ITmfConfiguration config, @NonNull ITmfTrace trace, String b |
211 | 203 | * the trace to apply it to |
212 | 204 | * @param writeConfig |
213 | 205 | * write the config (do only once) |
214 | | - * @return InAndOutAnalysisModule |
215 | 206 | * @throws TmfConfigurationException |
216 | 207 | * if an error occurs |
217 | 208 | */ |
218 | | - private void create(@NonNull ITmfConfiguration config, @NonNull ITmfTrace trace, boolean writeConfig, IAnalysisModule module) throws TmfConfigurationException { |
| 209 | + private void create(ITmfConfiguration config, ITmfTrace trace, boolean writeConfig, IAnalysisModule module) throws TmfConfigurationException { |
219 | 210 | /* |
220 | 211 | * Apply configuration to each trace (no need to check trace type here) |
221 | 212 | */ |
@@ -249,4 +240,9 @@ protected IPath getConfigurationRootFolder(ITmfTrace trace) { |
249 | 240 | return supplPath; |
250 | 241 | } |
251 | 242 |
|
| 243 | + @Override |
| 244 | + public void dispose() { |
| 245 | + super.dispose(); |
| 246 | + } |
| 247 | + |
252 | 248 | } |
0 commit comments