tmf: Remove all deprecated methods in tmf.core
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 18 Feb 2014 20:57:47 +0000 (15:57 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 25 Feb 2014 18:39:17 +0000 (13:39 -0500)
Change-Id: I9c567004a9bede6aef6a27843fdf7b03d103f555
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/22189
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
org.eclipse.linuxtools.tmf.core.tests/.settings/org.eclipse.jdt.core.prefs
org.eclipse.linuxtools.tmf.core/.settings/org.eclipse.jdt.core.prefs
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/request/TmfRequestExecutor.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/signal/TmfRangeSynchSignal.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/signal/TmfTimeSynchSignal.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimestampFormat.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTrace.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTraceManager.java

index 2906ea364493d473457db5d3efae26269d708c5f..ca28311011622fe2ebb18c90506f4688757b9780 100644 (file)
@@ -18,7 +18,7 @@ org.eclipse.jdt.core.compiler.problem.assertIdentifier=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.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
index 4b705eb5df7d918c2c5cc7509f42c21a992d3548..93c3272acf5453361f5fb41d41d998b193dd08be 100644 (file)
@@ -18,8 +18,8 @@ org.eclipse.jdt.core.compiler.problem.assertIdentifier=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
index b3d9028942306ad5c9fabd2b79e756c80032874d..a308486d37c82a6aa607fe9f1c2fa3d941fbd8b6 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * 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
@@ -82,29 +82,10 @@ public class TmfRequestExecutor implements Executor {
         }
     }
 
-    /**
-     * 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)
      */
index ce12780ff20031f15073079d0485a3cb31c33ec4..7d2e00ad68da5bef99a96748a6c2c3772d4c26d1 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * 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
@@ -13,7 +13,6 @@
 
 package org.eclipse.linuxtools.tmf.core.signal;
 
-import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
 import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
 
 /**
@@ -29,25 +28,6 @@ public class TmfRangeSynchSignal extends TmfSignal {
 
     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
      *
@@ -70,14 +50,4 @@ public class TmfRangeSynchSignal extends TmfSignal {
         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;
-    }
-
 }
index 6fa68e2913b5b1c847a74838bfdbf07d8b5cdc68..02fd8886a6dea8dbecd59d7a74f2ba5d47d4c115 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * 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
@@ -61,16 +61,6 @@ public class TmfTimeSynchSignal extends TmfSignal {
         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
index 4eadbc0035fc30785d98914abb6d0f8d58cc63ac..3259c150e83e292ba22ed469f7a4f29313abe949 100644 (file)
@@ -289,16 +289,6 @@ public class TmfTimestampFormat extends SimpleDateFormat {
         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
      */
@@ -309,17 +299,6 @@ public class TmfTimestampFormat extends SimpleDateFormat {
         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
      */
index df9c37fe0c2a3076aa674f4bd3ab69ceb075d3fe..e057c93ca9b11183dfb3483c7f71fecad8e8867f 100644 (file)
@@ -15,9 +15,6 @@
 
 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;
@@ -27,8 +24,6 @@ import org.eclipse.linuxtools.tmf.core.analysis.IAnalysisModule;
 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;
@@ -199,40 +194,6 @@ public interface ITmfTrace extends ITmfEventProvider {
      */
     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
index 9f8a18d8a281372b46664f44e16a09fc0ab0f557..62119dc098fa5b50ef52e0868fad359f98e117f6 100644 (file)
@@ -52,7 +52,6 @@ import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;
 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;
@@ -120,17 +119,6 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace {
     // 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 =
@@ -279,22 +267,6 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace {
         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
@@ -380,11 +352,6 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace {
             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()) {
@@ -439,26 +406,6 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace {
         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
     // ------------------------------------------------------------------------
@@ -748,9 +695,7 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace {
          * 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);
         }
index 257539beebcf2510be3948cfd5a5cf2a91d6d7b0..412ebc93e6ca0d05ed51fde646ef4631a053b459 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * 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
@@ -87,17 +87,6 @@ public final class TmfTraceManager {
     // 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
This page took 0.049378 seconds and 5 git commands to generate.