@@ -151,8 +151,7 @@ protected void applyConfiguration(ITmfTrace trace, ITmfConfiguration config, boo
151151 try {
152152 create (config , trace , writeConfig , new InAndOutAnalysisModule ());
153153 } catch (TmfConfigurationException e ) {
154- // TODO Auto-generated catch block
155- e .printStackTrace ();
154+ Activator .getInstance ().logError (e .getMessage (), e );
156155 }
157156 }
158157
@@ -168,8 +167,7 @@ protected void removeConfiguration(ITmfTrace trace, ITmfConfiguration config) {
168167 try {
169168 remove (config , trace , InAndOutAnalysisModule .ID );
170169 } catch (TmfConfigurationException e ) {
171- // TODO Auto-generated catch block
172- e .printStackTrace ();
170+ Activator .getInstance ().logError (e .getMessage (), e );
173171 }
174172 }
175173
@@ -185,7 +183,6 @@ protected void removeConfiguration(ITmfTrace trace, ITmfConfiguration config) {
185183 * @throws TmfConfigurationException if an error occurs
186184 */
187185 private void remove (ITmfConfiguration config , @ NonNull ITmfTrace trace , String baseAnalysisId ) throws TmfConfigurationException {
188- // IPath traceConfig = getConfigurationRootFolder(trace, config.getSourceTypeId());
189186 IPath traceConfig = getConfigurationRootFolder (trace );
190187 traceConfig = traceConfig .append (File .separator ).append (config .getId ()).addFileExtension (JSON_EXTENSION );
191188 File configFile = traceConfig .toFile ();
@@ -224,7 +221,6 @@ public void create(@NonNull ITmfConfiguration config, @NonNull ITmfTrace trace,
224221 */
225222 module .setConfiguration (config );
226223 if (writeConfig ) {
227- // IPath traceConfigPath = getConfigurationRootFolder(trace, config.getSourceTypeId());
228224 IPath traceConfigPath = getConfigurationRootFolder (trace );
229225 writeConfiguration (config , traceConfigPath );
230226 }
@@ -245,13 +241,6 @@ public void create(@NonNull ITmfConfiguration config, @NonNull ITmfTrace trace,
245241 }
246242 }
247243
248- // protected IPath getConfigurationRootFolder(ITmfTrace trace, String subFolder) {
249- // String supplFolder = TmfTraceManager.getSupplementaryFileDir(trace);
250- // IPath supplPath = new Path(supplFolder);
251- // supplPath = supplPath.addTrailingSeparator().append(subFolder);
252- // return supplPath;
253- // }
254-
255244 @ Override
256245 protected IPath getConfigurationRootFolder (ITmfTrace trace ) {
257246 String supplFolder = TmfTraceManager .getSupplementaryFileDir (trace );
0 commit comments