org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=error
org.eclipse.jdt.core.compiler.problem.deadCode=error
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=error
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=error
org.eclipse.jdt.core.compiler.problem.deadCode=error
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecation=error
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=error
org.eclipse.jdt.core.compiler.problem.emptyStatement=error
/*******************************************************************************
- * Copyright (c) 2009, 2013 Ericsson
+ * Copyright (c) 2009, 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
}
}
- /**
- * Standard constructor
- *
- * @param executor
- * The executor service to use
- */
- @Deprecated
- public TmfRequestExecutor(ExecutorService executor) {
- this();
- }
-
// ------------------------------------------------------------------------
// Getters
// ------------------------------------------------------------------------
- /**
- * @return the number of pending requests
- */
- @Deprecated
- public synchronized int getNbPendingRequests() {
- return fForegroundTasks.size() + fBackgroundTasks.size();
- }
-
/**
* @return the shutdown state (i.e. if it is accepting new requests)
*/
/*******************************************************************************
- * Copyright (c) 2009, 2013 Ericsson
+ * Copyright (c) 2009, 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
package org.eclipse.linuxtools.tmf.core.signal;
-import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
/**
private final TmfTimeRange fCurrentRange;
- /**
- * Constructor
- *
- * @param source
- * Object sending this signal
- * @param range
- * The time range to which we synchronized
- * @param ts
- * The current selected timestamp, independent from the time
- * range (ignored)
- * @since 2.0
- * @deprecated As of 2.1, use {@link #TmfRangeSynchSignal(Object, TmfTimeRange)}
- */
- @Deprecated
- public TmfRangeSynchSignal(Object source, TmfTimeRange range, ITmfTimestamp ts) {
- super(source);
- fCurrentRange = range;
- }
-
/**
* Constructor
*
return fCurrentRange;
}
- /**
- * @return This signal's current selected timestamp
- * @since 2.0
- * @deprecated As of 2.1, this returns null
- */
- @Deprecated
- public ITmfTimestamp getCurrentTime() {
- return null;
- }
-
}
/*******************************************************************************
- * Copyright (c) 2009, 2013 Ericsson
+ * Copyright (c) 2009, 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
fEndTime = end;
}
- /**
- * @return The synchronization timestamp of this signal
- * @since 2.0
- * @deprecated As of 2.1, use {@link #getBeginTime()} and {@link #getEndTime()}
- */
- @Deprecated
- public ITmfTimestamp getCurrentTime() {
- return fBeginTime;
- }
-
/**
* @return The begin timestamp of selection
* @since 2.1
fDefaultIntervalFormat = new TmfTimestampFormat(TmfTimePreferences.getInstance().getIntervalPattern());
}
- /**
- * @param pattern the new default time pattern
- * @deprecated The default time pattern depends on the preferences, see
- * {@link TmfTimePreferences}. To change the default time
- * pattern, modify the preferences and call {@link #updateDefaultFormats()}
- */
- @Deprecated
- public static void setDefaultTimeFormat(final String pattern) {
- }
-
/**
* @return the default time format pattern
*/
return fDefaultTimeFormat;
}
- /**
- * @param pattern the new default interval pattern
- * @deprecated The default interval format pattern depends on the
- * preferences, see {@link TmfTimePreferences}. To change the
- * default time pattern, modify the preferences and call
- * {@link #updateDefaultFormats()}
- */
- @Deprecated
- public static void setDefaultIntervalFormat(final String pattern) {
- }
-
/**
* @return the default interval format pattern
*/
package org.eclipse.linuxtools.tmf.core.trace;
-import java.util.Collections;
-import java.util.Map;
-
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.linuxtools.tmf.core.component.ITmfEventProvider;
import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
-import org.eclipse.linuxtools.tmf.core.statesystem.ITmfAnalysisModuleWithStateSystems;
-import org.eclipse.linuxtools.tmf.core.statesystem.ITmfStateSystem;
import org.eclipse.linuxtools.tmf.core.synchronization.ITmfTimestampTransform;
import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
*/
int getCacheSize();
- /**
- * Return the map of state systems associated with this trace.
- *
- * This view should be read-only (implementations should use
- * {@link Collections#unmodifiableMap}).
- *
- * @return The map of state systems
- * @since 2.0
- * @deprecated State systems now should be provided by analysis and use
- * {@link ITmfAnalysisModuleWithStateSystems} and retrieve the modules
- * with {@link TmfTrace#getAnalysisModules} with Class
- * being TmfStateSystemAnalysisModule.class
- */
- @Deprecated
- Map<String, ITmfStateSystem> getStateSystems();
-
- /**
- * If a state system is not build by the trace itself, it's possible to
- * register it if it comes from another source. It will then be accessible
- * with {@link #getStateSystems} normally.
- *
- * @param id
- * The unique ID to assign to this state system. In case of
- * conflicting ID's, the new one will overwrite the previous one
- * (default Map behavior).
- * @param ss
- * The already-built state system
- * @since 2.0
- * @deprecated State systems now should be provided by analysis and use
- * {@link ITmfAnalysisModuleWithStateSystems}
- */
- @Deprecated
- void registerStateSystem(String id, ITmfStateSystem ss);
-
/**
* Index the trace. Depending on the trace type, this could be done at the
* constructor or initTrace phase too, so this could be implemented as a
import org.eclipse.linuxtools.tmf.core.signal.TmfTraceOpenedSignal;
import org.eclipse.linuxtools.tmf.core.signal.TmfTraceRangeUpdatedSignal;
import org.eclipse.linuxtools.tmf.core.signal.TmfTraceUpdatedSignal;
-import org.eclipse.linuxtools.tmf.core.statesystem.ITmfStateSystem;
import org.eclipse.linuxtools.tmf.core.synchronization.ITmfTimestampTransform;
import org.eclipse.linuxtools.tmf.core.synchronization.TmfTimestampTransform;
import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
// The trace parser
private ITmfEventParser fParser;
-
- /**
- * The collection of state systems that are registered with this trace. Each
- * sub-class can decide to add its (one or many) state system to this map
- * during their {@link #buildStateSystem()}.
- *
- * @since 2.0
- */
- @Deprecated
- protected final Map<String, ITmfStateSystem> fStateSystems = new LinkedHashMap<>();
-
private ITmfTimestampTransform fTsTransform;
private final Map<String, IAnalysisModule> fAnalysisModules =
getIndexer().buildIndex(0, TmfTimeRange.ETERNITY, waitForCompletion);
}
- /**
- * Build the state system(s) associated with this trace type.
- *
- * @return An IStatus indicating if the state system could be build
- * successfully or not.
- * @since 3.0
- */
- @Deprecated
- protected IStatus buildStateSystem() {
- /*
- * Nothing is done in the base implementation, please specify
- * how/if to register a new state system in derived classes.
- */
- return Status.OK_STATUS;
- }
-
/**
* Instantiate the applicable analysis modules and executes the analysis
* modules that are meant to be automatically executed
getIndexer().dispose();
}
- /* Clean up the state systems */
- for (ITmfStateSystem ss : fStateSystems.values()) {
- ss.dispose();
- }
-
/* Clean up the analysis modules */
synchronized (fAnalysisModules) {
for (IAnalysisModule module : fAnalysisModules.values()) {
return fParser;
}
- /**
- * @since 2.0
- * @deprecated See {@link ITmfTrace}
- */
- @Deprecated
- @Override
- public final Map<String, ITmfStateSystem> getStateSystems() {
- return Collections.unmodifiableMap(fStateSystems);
- }
-
- /**
- * @since 2.0
- * @deprecated See {@link ITmfTrace}
- */
- @Deprecated
- @Override
- public final void registerStateSystem(String id, ITmfStateSystem ss) {
- fStateSystems.put(id, ss);
- }
-
// ------------------------------------------------------------------------
// ITmfTrace - Trace characteristics getters
// ------------------------------------------------------------------------
* The signal is either for this trace, or for an experiment containing
* this trace.
*/
- MultiStatus status = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, null, null);
- status.add(buildStateSystem());
- status.add(executeAnalysis());
+ IStatus status = executeAnalysis();
if (!status.isOK()) {
Activator.log(status);
}
/*******************************************************************************
- * Copyright (c) 2013 Ericsson
+ * Copyright (c) 2013, 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
// Accessors
// ------------------------------------------------------------------------
- /**
- * Return the current selected time.
- *
- * @return the current time stamp
- * @deprecated As of 2.1, use {@link #getSelectionBeginTime()} and {@link #getSelectionEndTime()}
- */
- @Deprecated
- public synchronized ITmfTimestamp getCurrentTime() {
- return getCurrentTraceContext().getSelectionBegin();
- }
-
/**
* @return The begin timestamp of selection
* @since 2.1