@@ -92,7 +92,6 @@ protected Table<String, ITmfTrace, ITmfConfiguration> getConfigurationTable(){
9292 */
9393 protected abstract void applyConfiguration (ITmfTrace trace , ITmfConfiguration config , boolean writeConfig );
9494
95- // efrooo: the below move to open source
9695 @ Override
9796 public void removeDataProviderDescriptor (ITmfTrace trace , IDataProviderDescriptor descriptor ) throws TmfConfigurationException {
9897 ITmfConfiguration creationConfiguration = descriptor .getConfiguration ();
@@ -116,7 +115,6 @@ public void removeDataProviderDescriptor(ITmfTrace trace, IDataProviderDescripto
116115 */
117116 protected abstract void removeConfiguration (@ NonNull ITmfTrace trace , @ NonNull ITmfConfiguration config );
118117
119- // efroroo: to open source
120118 /**
121119 * Signal handler for opened trace signal. Will populate trace
122120 * configurations
@@ -125,7 +123,7 @@ public void removeDataProviderDescriptor(ITmfTrace trace, IDataProviderDescripto
125123 * the signal to handle
126124 */
127125 @ TmfSignalHandler
128- public void traceOpened (TmfTraceOpenedSignal signal , String subfolder ) {
126+ public void traceOpened (TmfTraceOpenedSignal signal ) {
129127 ITmfTrace trace = signal .getTrace ();
130128 if (trace == null ) {
131129 return ;
@@ -134,12 +132,12 @@ public void traceOpened(TmfTraceOpenedSignal signal, String subfolder) {
134132 if (trace instanceof TmfExperiment ) {
135133 for (ITmfTrace tr : TmfTraceManager .getTraceSet (trace )) {
136134 // Read configurations from sub-trace
137- List <ITmfConfiguration > configs = readConfigurations (tr , subfolder );
135+ List <ITmfConfiguration > configs = readConfigurations (tr );
138136 readAndApplyConfiguration (trace , configs );
139137 }
140138 } else {
141139 // Read configurations trace
142- List <ITmfConfiguration > configs = readConfigurations (trace , subfolder );
140+ List <ITmfConfiguration > configs = readConfigurations (trace );
143141 readAndApplyConfiguration (trace , configs );
144142 }
145143 } catch (TmfConfigurationException e ) {
@@ -178,8 +176,8 @@ private void readAndApplyConfiguration(ITmfTrace trace, List<ITmfConfiguration>
178176 * @throws TmfConfigurationException
179177 * if an error occurs
180178 */
181- private @ NonNull List <ITmfConfiguration > readConfigurations (@ NonNull ITmfTrace trace , String subfolder ) throws TmfConfigurationException {
182- IPath rootPath = getConfigurationRootFolder (trace , subfolder );
179+ private @ NonNull List <ITmfConfiguration > readConfigurations (@ NonNull ITmfTrace trace ) throws TmfConfigurationException {
180+ IPath rootPath = getConfigurationRootFolder (trace );
183181 File folder = rootPath .toFile ();
184182 List <ITmfConfiguration > list = new ArrayList <>();
185183 if (folder .exists ()) {
@@ -222,15 +220,7 @@ protected static void writeConfiguration(ITmfConfiguration configuration, IPath
222220 }
223221 }
224222
225- // @SuppressWarnings("null")
226- // protected static @NonNull IPath getConfigurationRootFolder(@NonNull ITmfTrace trace, String subFolder) {
227- // String supplFolder = TmfTraceManager.getSupplementaryFileDir(trace);
228- // IPath supplPath = new Path(supplFolder);
229- // supplPath = supplPath.addTrailingSeparator().append(subFolder);
230- // return supplPath;
231- // }
232-
233223 @ SuppressWarnings ("null" )
234- protected @ NonNull abstract IPath getConfigurationRootFolder (@ NonNull ITmfTrace trace , String subFolder );
224+ protected @ NonNull abstract IPath getConfigurationRootFolder (@ NonNull ITmfTrace trace );
235225
236226}
0 commit comments