From 57a2a5cac6f96854f8af9b5805677d0b36f03e55 Mon Sep 17 00:00:00 2001 From: Bernd Hufmann Date: Thu, 16 May 2013 13:33:04 -0400 Subject: [PATCH] tmf: fix sonar warnings about redundant modifier in interfaces Change-Id: I5eee2adfad2e2592212fc3d612a404d525c111ad Signed-off-by: Bernd Hufmann Reviewed-on: https://git.eclipse.org/r/12894 Tested-by: Hudson CI Reviewed-by: Alexandre Montplaisir IP-Clean: Alexandre Montplaisir --- .../backends/IStateHistoryBackend.java | 26 +++--- .../tmf/core/component/ITmfComponent.java | 34 ++++---- .../tmf/core/component/ITmfDataProvider.java | 8 +- .../tmf/core/event/ITmfCustomAttributes.java | 4 +- .../linuxtools/tmf/core/event/ITmfEvent.java | 14 ++-- .../tmf/core/event/ITmfEventField.java | 16 ++-- .../tmf/core/event/ITmfEventType.java | 10 +-- .../tmf/core/event/ITmfLostEvent.java | 4 +- .../tmf/core/filter/ITmfFilter.java | 24 +++--- .../tmf/core/interval/ITmfStateInterval.java | 12 +-- .../tmf/core/request/ITmfDataRequest.java | 44 +++++----- .../tmf/core/request/ITmfEventRequest.java | 4 +- .../core/statesystem/ITmfStateProvider.java | 18 ++--- .../tmf/core/statesystem/ITmfStateSystem.java | 36 ++++----- .../statesystem/ITmfStateSystemBuilder.java | 18 ++--- .../tmf/core/statevalue/ITmfStateValue.java | 10 +-- .../tmf/core/statistics/ITmfStatistics.java | 14 ++-- .../tmf/core/timestamp/ITmfTimestamp.java | 16 ++-- .../tmf/core/trace/ITmfCheckpoint.java | 6 +- .../tmf/core/trace/ITmfContext.java | 14 ++-- .../tmf/core/trace/ITmfEventParser.java | 2 +- .../tmf/core/trace/ITmfLocation.java | 2 +- .../linuxtools/tmf/core/trace/ITmfTrace.java | 44 +++++----- .../tmf/core/trace/ITmfTraceIndexer.java | 12 +-- .../uml2sd/ITmfAsyncSequenceDiagramEvent.java | 2 +- .../uml2sd/ITmfSyncSequenceDiagramEvent.java | 8 +- .../uml2sd/loader/IUml2SDTestConstants.java | 29 ++++--- .../uml2sd/loader/IUml2SdSignalValidator.java | 32 ++++---- .../tmf/ui/editors/ITmfTraceEditor.java | 4 +- .../model/ITmfProjectModelElement.java | 24 +++--- .../linuxtools/tmf/ui/viewers/ITmfViewer.java | 6 +- .../model/ITmfColumnDataProvider.java | 4 +- .../model/ITmfStatisticsColumnData.java | 16 ++-- .../views/colors/IColorSettingsListener.java | 4 +- .../model/IBaseDistributionModel.java | 22 ++--- .../views/histogram/IHistogramDataModel.java | 16 ++-- .../histogram/IHistogramModelListener.java | 12 +-- .../uml2sd/ITimeCompressionListener.java | 4 +- .../tmf/ui/views/uml2sd/core/ITimeRange.java | 6 +- .../tmf/ui/views/uml2sd/drawings/IColor.java | 6 +- .../tmf/ui/views/uml2sd/drawings/IFont.java | 6 +- .../tmf/ui/views/uml2sd/drawings/IGC.java | 80 +++++++++---------- .../tmf/ui/views/uml2sd/drawings/IImage.java | 6 +- .../provider/IExtendedFilterProvider.java | 4 +- .../provider/IExtendedFindProvider.java | 4 +- .../provider/ISDAdvancedPagingProvider.java | 8 +- .../provider/ISDCollapseProvider.java | 4 +- .../handlers/provider/ISDFilterProvider.java | 4 +- .../handlers/provider/ISDFindProvider.java | 6 +- .../provider/ISDGraphNodeSupporter.java | 8 +- .../handlers/provider/ISDPagingProvider.java | 14 ++-- .../provider/ISDPropertiesProvider.java | 4 +- .../ui/views/uml2sd/load/IUml2SDLoader.java | 8 +- .../uml2sd/preferences/ISDPreferences.java | 18 ++--- .../ITimeGraphPresentationProvider.java | 24 +++--- .../timegraph/ITimeGraphRangeListener.java | 4 +- .../ITimeGraphSelectionListener.java | 4 +- .../timegraph/ITimeGraphTimeListener.java | 4 +- .../timegraph/ITimeGraphTreeListener.java | 6 +- .../widgets/timegraph/model/ITimeEvent.java | 8 +- .../timegraph/model/ITimeGraphEntry.java | 20 ++--- .../virtualtable/IDoubleClickListener.java | 4 +- .../widgets/virtualtable/TooltipProvider.java | 4 +- 63 files changed, 419 insertions(+), 420 deletions(-) diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/IStateHistoryBackend.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/IStateHistoryBackend.java index 0b4f0da3db..bb2a8158f0 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/IStateHistoryBackend.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/IStateHistoryBackend.java @@ -45,7 +45,7 @@ public interface IStateHistoryBackend { * * @return The start time */ - public long getStartTime(); + long getStartTime(); /** * Get the current end time of the state history. It will change as the @@ -53,7 +53,7 @@ public interface IStateHistoryBackend { * * @return The end time */ - public long getEndTime(); + long getEndTime(); /** * Main method to insert state intervals into the history. @@ -70,7 +70,7 @@ public interface IStateHistoryBackend { * If the start or end time are invalid */ // FIXME change to IStateInterval? - public void insertPastState(long stateStartTime, long stateEndTime, + void insertPastState(long stateStartTime, long stateEndTime, int quark, ITmfStateValue value) throws TimeRangeException; /** @@ -83,7 +83,7 @@ public interface IStateHistoryBackend { * @throws TimeRangeException * If the requested time makes no sense. */ - public void finishedBuilding(long endTime) throws TimeRangeException; + void finishedBuilding(long endTime) throws TimeRangeException; /** * It is the responsibility of the backend to define where to save the @@ -96,7 +96,7 @@ public interface IStateHistoryBackend { * @return A FileInputStream object pointing to the correct file/location in * the file where to read the attribute tree information. */ - public FileInputStream supplyAttributeTreeReader(); + FileInputStream supplyAttributeTreeReader(); // FIXME change to FOS too? /** @@ -105,7 +105,7 @@ public interface IStateHistoryBackend { * * @return The target File */ - public File supplyAttributeTreeWriterFile(); + File supplyAttributeTreeWriterFile(); /** * Supply the position in the file where we should write the attribute tree @@ -113,7 +113,7 @@ public interface IStateHistoryBackend { * * @return The file position (we will seek() to it) */ - public long supplyAttributeTreeWriterFilePosition(); + long supplyAttributeTreeWriterFilePosition(); /** * Delete any generated files or anything that might have been created by @@ -124,13 +124,13 @@ public interface IStateHistoryBackend { * index file to persist on disk. This could be limited to actions * originating from the user. */ - public void removeFiles(); + void removeFiles(); /** * Notify the state history back-end that the trace is being closed, so it * should release its file descriptors, close its connections, etc. */ - public void dispose(); + void dispose(); // ------------------------------------------------------------------------ // Query methods @@ -151,7 +151,7 @@ public interface IStateHistoryBackend { * @throws StateSystemDisposedException * If the state system is disposed while a request is ongoing. */ - public void doQuery(List currentStateInfo, long t) + void doQuery(List currentStateInfo, long t) throws TimeRangeException, StateSystemDisposedException; /** @@ -172,7 +172,7 @@ public interface IStateHistoryBackend { * @throws StateSystemDisposedException * If the state system is disposed while a request is ongoing. */ - public ITmfStateInterval doSingularQuery(long t, int attributeQuark) + ITmfStateInterval doSingularQuery(long t, int attributeQuark) throws TimeRangeException, AttributeNotFoundException, StateSystemDisposedException; @@ -186,7 +186,7 @@ public interface IStateHistoryBackend { * The queried timestamp * @return True if the timestamp is within range, false if not. */ - public boolean checkValidTime(long t); + boolean checkValidTime(long t); /** * Debug method to print the contents of the history backend. @@ -194,5 +194,5 @@ public interface IStateHistoryBackend { * @param writer * The PrintWriter where to write the output */ - public void debugPrint(PrintWriter writer); + void debugPrint(PrintWriter writer); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfComponent.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfComponent.java index 8366f70b31..1d090fb401 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfComponent.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfComponent.java @@ -1,11 +1,11 @@ /******************************************************************************* * Copyright (c) 2009, 2012 Ericsson - * + * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Francois Chouinard - Initial API and implementation *******************************************************************************/ @@ -21,26 +21,26 @@ import org.eclipse.linuxtools.tmf.core.signal.TmfSignal; * * @version 1.0 * @author Francois Chouinard - * + * * @see TmfComponent */ public interface ITmfComponent { - /** - * @return the component ID (display name) - */ - public String getName(); + /** + * @return the component ID (display name) + */ + String getName(); - /** - * Dispose of the component - */ - public void dispose(); + /** + * Dispose of the component + */ + void dispose(); - /** - * Propagate a signal to all the interested listeners. - * - * @param signal the signal to broadcast - */ - public void broadcast(TmfSignal signal); + /** + * Propagate a signal to all the interested listeners. + * + * @param signal the signal to broadcast + */ + void broadcast(TmfSignal signal); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfDataProvider.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfDataProvider.java index 2743de28f9..6d5f074860 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfDataProvider.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/ITmfDataProvider.java @@ -33,12 +33,12 @@ public interface ITmfDataProvider extends ITmfComponent { * * @param request The request to process */ - public void sendRequest(ITmfDataRequest request); + void sendRequest(ITmfDataRequest request); /** * Queue the coalesced requests. */ - public void fireRequest(); + void fireRequest(); /** * Increments/decrements the pending requests counters and fires the request @@ -49,7 +49,7 @@ public interface ITmfDataProvider extends ITmfComponent { * Should we increment (true) or decrement (false) the pending * counter */ - public void notifyPendingRequest(boolean isIncrement); + void notifyPendingRequest(boolean isIncrement); /** * Return the next event based on the context supplied. The context @@ -58,5 +58,5 @@ public interface ITmfDataProvider extends ITmfComponent { * @param context the trace read context (updated) * @return the event referred to by context */ - public ITmfEvent getNext(ITmfContext context); + ITmfEvent getNext(ITmfContext context); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfCustomAttributes.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfCustomAttributes.java index 35b1d73a7f..923c5ca459 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfCustomAttributes.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfCustomAttributes.java @@ -29,7 +29,7 @@ public interface ITmfCustomAttributes { * @return The list of custom attribute names. Should not be null, but could * be empty. */ - public Set listCustomAttributes(); + Set listCustomAttributes(); /** * Get the value of a custom attribute. @@ -39,5 +39,5 @@ public interface ITmfCustomAttributes { * @return Value of this attribute, or null if there is no attribute with * that name */ - public String getCustomAttribute(String name); + String getCustomAttribute(String name); } \ No newline at end of file diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEvent.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEvent.java index 34eb513c5a..a207c8fc2f 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEvent.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEvent.java @@ -76,37 +76,37 @@ public interface ITmfEvent extends IAdaptable { /** * @return the trace that 'owns' the event */ - public ITmfTrace getTrace(); + ITmfTrace getTrace(); /** * @return the event rank within the parent trace */ - public long getRank(); + long getRank(); /** * @return the event timestamp * @since 2.0 */ - public ITmfTimestamp getTimestamp(); + ITmfTimestamp getTimestamp(); /** * @return the event source */ - public String getSource(); + String getSource(); /** * @return the event type */ - public ITmfEventType getType(); + ITmfEventType getType(); /** * @return the event content */ - public ITmfEventField getContent(); + ITmfEventField getContent(); /** * @return the event reference */ - public String getReference(); + String getReference(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventField.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventField.java index 57a246d121..ae2176e77d 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventField.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventField.java @@ -40,45 +40,45 @@ public interface ITmfEventField { /** * @return the field name */ - public String getName(); + String getName(); /** * @return the field value */ - public Object getValue(); + Object getValue(); /** * @return the value formatted as string * @since 2.0 */ - public String getFormattedValue(); + String getFormattedValue(); /** * @return the list of subfield names (empty array if none) */ - public String[] getFieldNames(); + String[] getFieldNames(); /** * @param index The index of the field * @return the nth field name (null if absent or inexistent) */ - public String getFieldName(int index); + String getFieldName(int index); /** * @return the list of subfields (empty array if none) */ - public ITmfEventField[] getFields(); + ITmfEventField[] getFields(); /** * @param name The name of the field * @return a specific subfield by name (null if absent or inexistent) */ - public ITmfEventField getField(String name); + ITmfEventField getField(String name); /** * @param index The index of the field to return * @return a specific subfield by index (null if absent or inexistent) */ - public ITmfEventField getField(int index); + ITmfEventField getField(int index); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventType.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventType.java index 8e77e938dd..665dba2182 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventType.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventType.java @@ -47,26 +47,26 @@ public interface ITmfEventType { /** * @return the event type context */ - public String getContext(); + String getContext(); /** * @return the event type ID */ - public String getName(); + String getName(); /** * @return the event type root field */ - public ITmfEventField getRootField(); + ITmfEventField getRootField(); /** * @return the event field names (labels) */ - public String[] getFieldNames(); + String[] getFieldNames(); /** * @param index the event field index * @return the corresponding event field label */ - public String getFieldName(int index); + String getFieldName(int index); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfLostEvent.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfLostEvent.java index 62e9c1b9be..8408e3caba 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfLostEvent.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfLostEvent.java @@ -43,11 +43,11 @@ public interface ITmfLostEvent extends ITmfEvent { * @return the 'problem' time range * @since 2.0 */ - public TmfTimeRange getTimeRange(); + TmfTimeRange getTimeRange(); /** * @return the number of lost events in the time range */ - public long getNbLostEvents(); + long getNbLostEvents(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/filter/ITmfFilter.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/filter/ITmfFilter.java index dc8b760928..b73399c783 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/filter/ITmfFilter.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/filter/ITmfFilter.java @@ -1,11 +1,11 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson - * + * Copyright (c) 2010, 2013 Ericsson + * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Patrick Tasse - Initial API and implementation *******************************************************************************/ @@ -16,18 +16,18 @@ import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; /** * The TMF filter interface. - * + * * @version 1.0 * @author Patrick Tasse */ public interface ITmfFilter { - /** - * Verify the filter conditions on an event - * - * @param event The event to verify. - * @return True if the event matches the filter conditions. - */ - public boolean matches(ITmfEvent event); - + /** + * Verify the filter conditions on an event + * + * @param event The event to verify. + * @return True if the event matches the filter conditions. + */ + boolean matches(ITmfEvent event); + } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/interval/ITmfStateInterval.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/interval/ITmfStateInterval.java index 4998d6dec2..d5be73b7f0 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/interval/ITmfStateInterval.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/interval/ITmfStateInterval.java @@ -31,14 +31,14 @@ public interface ITmfStateInterval { * * @return the start time of the interval */ - public long getStartTime(); + long getStartTime(); /** * Retrieve the end time of the interval * * @return the end time of the interval */ - public long getEndTime(); + long getEndTime(); /** * In case the "real" end time of the interval is not exactly the same as @@ -49,21 +49,21 @@ public interface ITmfStateInterval { * * @return The end time that views should use */ - public long getViewerEndTime(); + long getViewerEndTime(); /** * Retrieve the quark of the attribute this state interval refers to * * @return the quark of the attribute this state interval refers to */ - public int getAttribute(); + int getAttribute(); /** * Retrieve the state value represented by this interval * * @return the state value represented by this interval */ - public ITmfStateValue getStateValue(); + ITmfStateValue getStateValue(); /** * Test if this interval intersects another timestamp, inclusively. @@ -72,5 +72,5 @@ public interface ITmfStateInterval { * The target timestamp * @return True if the interval and timestamp intersect, false if they don't */ - public boolean intersects(long timestamp); + boolean intersects(long timestamp); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfDataRequest.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfDataRequest.java index c01b5da32c..f41bf094ba 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfDataRequest.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfDataRequest.java @@ -47,37 +47,37 @@ public interface ITmfDataRequest { /** * @return request data type (T) */ - public Class getDataType(); + Class getDataType(); /** * @return request ID */ - public int getRequestId(); + int getRequestId(); /** * @return request ID */ - public ExecutionType getExecType(); + ExecutionType getExecType(); /** * @return the index of the first event requested */ - public long getIndex(); + long getIndex(); /** * @return the number of requested events */ - public int getNbRequested(); + int getNbRequested(); /** * @return the block size (for BG requests) */ - public int getBlockSize(); + int getBlockSize(); /** * @return the number of events read so far */ - public int getNbRead(); + int getNbRead(); // ------------------------------------------------------------------------ // Request state predicates @@ -86,22 +86,22 @@ public interface ITmfDataRequest { /** * @return true if the request is still active */ - public boolean isRunning(); + boolean isRunning(); /** * @return true if the request is completed */ - public boolean isCompleted(); + boolean isCompleted(); /** * @return true if the request has failed */ - public boolean isFailed(); + boolean isFailed(); /** * @return true if the request was cancelled */ - public boolean isCancelled(); + boolean isCancelled(); // ------------------------------------------------------------------------ // Data handling @@ -112,7 +112,7 @@ public interface ITmfDataRequest { * * @param data the data to process */ - public void handleData(ITmfEvent data); + void handleData(ITmfEvent data); // ------------------------------------------------------------------------ // Request notifications @@ -121,27 +121,27 @@ public interface ITmfDataRequest { /** * Request processing start notification */ - public void handleStarted(); + void handleStarted(); /** * Request processing completion notification */ - public void handleCompleted(); + void handleCompleted(); /** * Request successful completion notification */ - public void handleSuccess(); + void handleSuccess(); /** * Request failure notification */ - public void handleFailure(); + void handleFailure(); /** * Request cancellation notification */ - public void handleCancel(); + void handleCancel(); /** * To suspend the client thread until the request completes @@ -149,7 +149,7 @@ public interface ITmfDataRequest { * * @throws InterruptedException thrown if the request was cancelled */ - public void waitForCompletion() throws InterruptedException; + void waitForCompletion() throws InterruptedException; // ------------------------------------------------------------------------ // Request state modifiers @@ -158,20 +158,20 @@ public interface ITmfDataRequest { /** * Put the request in the running state */ - public void start(); + void start(); /** * Put the request in the completed state */ - public void done(); + void done(); /** * Put the request in the failed completed state */ - public void fail(); + void fail(); /** * Put the request in the cancelled completed state */ - public void cancel(); + void cancel(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfEventRequest.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfEventRequest.java index e152930504..811626796f 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfEventRequest.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/ITmfEventRequest.java @@ -26,12 +26,12 @@ public interface ITmfEventRequest extends ITmfDataRequest { * @return the requested time range * @since 2.0 */ - public TmfTimeRange getRange(); + TmfTimeRange getRange(); /** * this method is called by the event provider to set the index corresponding to the time range start time * @param index the start time index */ - public void setStartIndex(int index); + void setStartIndex(int index); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateProvider.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateProvider.java index d9d43e542e..0d49fa2285 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateProvider.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateProvider.java @@ -44,14 +44,14 @@ public interface ITmfStateProvider { * @return The version number of the input plugin * @since 2.0 */ - public int getVersion(); + int getVersion(); /** * Get the trace with which this state input plugin is associated. * * @return The associated trace */ - public ITmfTrace getTrace(); + ITmfTrace getTrace(); /** * Return the start time of this "state change input", which is normally the @@ -60,7 +60,7 @@ public interface ITmfStateProvider { * * @return The start time */ - public long getStartTime(); + long getStartTime(); /** * Method for the input plugin to specify which type of events it expects. @@ -71,7 +71,7 @@ public interface ITmfStateProvider { * valid subclasses) will be handled. * @since 2.0 */ - public Class getExpectedEventType(); + Class getExpectedEventType(); /** * Assign the target state system where this SCI will insert its state @@ -85,7 +85,7 @@ public interface ITmfStateProvider { * input plugin * @since 2.0 */ - public void assignTargetStateSystem(ITmfStateSystemBuilder ssb); + void assignTargetStateSystem(ITmfStateSystemBuilder ssb); /** * Return the currently assigned target state system. @@ -94,7 +94,7 @@ public interface ITmfStateProvider { * SS is assigned yet * @since 2.0 */ - public ITmfStateSystem getAssignedStateSystem(); + ITmfStateSystem getAssignedStateSystem(); /** * Send an event to this input plugin for processing. The implementation @@ -105,7 +105,7 @@ public interface ITmfStateProvider { * The event (which should be safe to cast to the * expectedEventType) that has to be processed. */ - public void processEvent(ITmfEvent event); + void processEvent(ITmfEvent event); /** * Provide a non-initialized copy of this state input plugin. You will need @@ -115,11 +115,11 @@ public interface ITmfStateProvider { * assigned target state system * @since 2.0 */ - public ITmfStateProvider getNewInstance(); + ITmfStateProvider getNewInstance(); /** * Indicate to the state history building process that we are done (for now), * and that it should close its current history. */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystem.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystem.java index 084fb7fcc7..a5f37cc680 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystem.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystem.java @@ -38,14 +38,14 @@ public interface ITmfStateSystem { * * @return The history's registered start time */ - public long getStartTime(); + long getStartTime(); /** * Return the current end time of the history. * * @return The current end time of this state history */ - public long getCurrentEndTime(); + long getCurrentEndTime(); /** * While it's possible to query a state history that is being built, @@ -61,13 +61,13 @@ public interface ITmfStateSystem { * before it could finished. In that case, no queries should be run * afterwards. */ - public boolean waitUntilBuilt(); + boolean waitUntilBuilt(); /** * Notify the state system that the trace is being closed, so it should * clean up, close its files, etc. */ - public void dispose(); + void dispose(); /** * Return the current total amount of attributes in the system. This is also @@ -76,7 +76,7 @@ public interface ITmfStateSystem { * * @return The current number of attributes in the system */ - public int getNbAttributes(); + int getNbAttributes(); /** * @name Read-only quark-getting methods @@ -96,7 +96,7 @@ public interface ITmfStateSystem { * This exception is thrown if the requested attribute simply * did not exist in the system. */ - public int getQuarkAbsolute(String... attribute) + int getQuarkAbsolute(String... attribute) throws AttributeNotFoundException; /** @@ -119,7 +119,7 @@ public interface ITmfStateSystem { * @throws AttributeNotFoundException * If the quark is invalid */ - public int getQuarkRelative(int startingNodeQuark, String... subPath) + int getQuarkRelative(int startingNodeQuark, String... subPath) throws AttributeNotFoundException; /** @@ -135,7 +135,7 @@ public interface ITmfStateSystem { * @throws AttributeNotFoundException * If the quark was not existing or invalid. */ - public List getSubAttributes(int quark, boolean recursive) + List getSubAttributes(int quark, boolean recursive) throws AttributeNotFoundException; /** @@ -162,7 +162,7 @@ public interface ITmfStateSystem { * the pattern. If no attribute matched, the list will be empty (but * not null). */ - public List getQuarks(String... pattern); + List getQuarks(String... pattern); /** * Return the name assigned to this quark. This returns only the "basename", @@ -172,7 +172,7 @@ public interface ITmfStateSystem { * The quark for which we want the name * @return The name of the quark */ - public String getAttributeName(int attributeQuark); + String getAttributeName(int attributeQuark); /** * This returns the slash-separated path of an attribute by providing its @@ -182,7 +182,7 @@ public interface ITmfStateSystem { * The quark of the attribute we want * @return One single string separated with '/', like a filesystem path */ - public String getFullAttributePath(int attributeQuark); + String getFullAttributePath(int attributeQuark); /** * @name Query methods @@ -202,7 +202,7 @@ public interface ITmfStateSystem { * @throws AttributeNotFoundException * If the requested attribute is invalid */ - public ITmfStateValue queryOngoingState(int attributeQuark) + ITmfStateValue queryOngoingState(int attributeQuark) throws AttributeNotFoundException; /** @@ -215,7 +215,7 @@ public interface ITmfStateSystem { * @throws AttributeNotFoundException * If the attribute is invalid */ - public long getOngoingStartTime(int attribute) + long getOngoingStartTime(int attribute) throws AttributeNotFoundException; /** @@ -238,7 +238,7 @@ public interface ITmfStateSystem { * @throws StateSystemDisposedException * If the query is sent after the state system has been disposed */ - public List queryFullState(long t) + List queryFullState(long t) throws TimeRangeException, StateSystemDisposedException; /** @@ -263,7 +263,7 @@ public interface ITmfStateSystem { * @throws StateSystemDisposedException * If the query is sent after the state system has been disposed */ - public ITmfStateInterval querySingleState(long t, int attributeQuark) + ITmfStateInterval querySingleState(long t, int attributeQuark) throws AttributeNotFoundException, TimeRangeException, StateSystemDisposedException; @@ -294,7 +294,7 @@ public interface ITmfStateSystem { * If the query is sent after the state system has been disposed * @since 2.0 */ - public ITmfStateInterval querySingleStackTop(long t, int stackAttributeQuark) + ITmfStateInterval querySingleStackTop(long t, int stackAttributeQuark) throws StateValueTypeException, AttributeNotFoundException, TimeRangeException, StateSystemDisposedException; @@ -323,7 +323,7 @@ public interface ITmfStateSystem { * @throws StateSystemDisposedException * If the query is sent after the state system has been disposed */ - public List queryHistoryRange(int attributeQuark, + List queryHistoryRange(int attributeQuark, long t1, long t2) throws TimeRangeException, AttributeNotFoundException, StateSystemDisposedException; @@ -357,7 +357,7 @@ public interface ITmfStateSystem { * If the query is sent after the state system has been disposed * @since 2.0 */ - public List queryHistoryRange(int attributeQuark, + List queryHistoryRange(int attributeQuark, long t1, long t2, long resolution, IProgressMonitor monitor) throws TimeRangeException, AttributeNotFoundException, StateSystemDisposedException; diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystemBuilder.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystemBuilder.java index 08bd7e62c9..bcbf48f431 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystemBuilder.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystemBuilder.java @@ -51,7 +51,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * @return The quark of the attribute (which either existed or just got * created) */ - public int getQuarkAbsoluteAndAdd(String... attribute); + int getQuarkAbsoluteAndAdd(String... attribute); /** * "Relative path" quark-getting method. Instead of specifying a full path, @@ -72,7 +72,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * "Rest" of the path to get to the final attribute * @return The matching quark, either if it's new of just got created. */ - public int getQuarkRelativeAndAdd(int startingNodeQuark, String... subPath); + int getQuarkRelativeAndAdd(int startingNodeQuark, String... subPath); /** * @name State-changing methods @@ -97,7 +97,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * @throws AttributeNotFoundException * If the requested attribute is invalid */ - public void updateOngoingState(ITmfStateValue newValue, int attributeQuark) + void updateOngoingState(ITmfStateValue newValue, int attributeQuark) throws AttributeNotFoundException; /** @@ -119,7 +119,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * If the inserted state value's type does not match what is * already assigned to this attribute. */ - public void modifyAttribute(long t, ITmfStateValue value, int attributeQuark) + void modifyAttribute(long t, ITmfStateValue value, int attributeQuark) throws TimeRangeException, AttributeNotFoundException, StateValueTypeException; @@ -140,7 +140,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * @throws AttributeNotFoundException * If the quark is invalid */ - public void incrementAttribute(long t, int attributeQuark) + void incrementAttribute(long t, int attributeQuark) throws StateValueTypeException, TimeRangeException, AttributeNotFoundException; @@ -166,7 +166,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * If the attribute 'attributeQuark' already exists, but is not * of integer type. */ - public void pushAttribute(long t, ITmfStateValue value, int attributeQuark) + void pushAttribute(long t, ITmfStateValue value, int attributeQuark) throws TimeRangeException, AttributeNotFoundException, StateValueTypeException; @@ -191,7 +191,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * type is invalid (not an integer) * @since 2.0 */ - public ITmfStateValue popAttribute(long t, int attributeQuark) + ITmfStateValue popAttribute(long t, int attributeQuark) throws AttributeNotFoundException, TimeRangeException, StateValueTypeException; @@ -209,7 +209,7 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * @throws AttributeNotFoundException * If the quark is invalid */ - public void removeAttribute(long t, int attributeQuark) + void removeAttribute(long t, int attributeQuark) throws TimeRangeException, AttributeNotFoundException; /** @@ -228,5 +228,5 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem { * it's earlier than the latest time) and the backend doesn't * know how to handle it. */ - public void closeHistory(long endTime) throws TimeRangeException; + void closeHistory(long endTime) throws TimeRangeException; } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/ITmfStateValue.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/ITmfStateValue.java index 34f33e3e32..868090833d 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/ITmfStateValue.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/ITmfStateValue.java @@ -46,7 +46,7 @@ public interface ITmfStateValue { * @return The ITmfStateValue.Type enum representing the type of this value * @since 2.0 */ - public Type getType(); + Type getType(); /** * Only "null values" should return true here @@ -54,7 +54,7 @@ public interface ITmfStateValue { * @return True if this type of SV is considered "null", false if it * contains a real value. */ - public boolean isNull(); + boolean isNull(); /** * Read the contained value as an 'int' primitive @@ -63,7 +63,7 @@ public interface ITmfStateValue { * @throws StateValueTypeException * If the contained value cannot be read as an integer */ - public int unboxInt() throws StateValueTypeException; + int unboxInt() throws StateValueTypeException; /** * Read the contained value as a String @@ -72,7 +72,7 @@ public interface ITmfStateValue { * @throws StateValueTypeException * If the contained value cannot be read as a String */ - public String unboxStr() throws StateValueTypeException; + String unboxStr() throws StateValueTypeException; /** * Read the contained value as a 'long' primitive @@ -82,5 +82,5 @@ public interface ITmfStateValue { * If the contained value cannot be read as a long * @since 2.0 */ - public long unboxLong() throws StateValueTypeException; + long unboxLong() throws StateValueTypeException; } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/ITmfStatistics.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/ITmfStatistics.java index 2c19877c30..444521a816 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/ITmfStatistics.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/ITmfStatistics.java @@ -51,7 +51,7 @@ public interface ITmfStatistics { * The end time of the query range. Has no effect if isGlobal is * true. */ - public void updateStats(boolean isGlobal, long start, long end); + void updateStats(boolean isGlobal, long start, long end); /** * Run a histogram query on the statistics back-end. This means, return the @@ -74,14 +74,14 @@ public interface ITmfStatistics { * @return The array representing the number of events found in each * sub-range. */ - public List histogramQuery(long start, long end, int nb); + List histogramQuery(long start, long end, int nb); /** * Return the total number of events in the trace. * * @return The total number of events */ - public long getEventsTotal(); + long getEventsTotal(); /** * Return a Map of the total events in the trace, per event type. The event @@ -89,7 +89,7 @@ public interface ITmfStatistics { * * @return The map of , for the whole trace */ - public Map getEventTypesTotal(); + Map getEventTypesTotal(); /** * Retrieve the number of events in the trace in a given time interval. @@ -100,7 +100,7 @@ public interface ITmfStatistics { * End time of the time range * @return The number of events found */ - public long getEventsInRange(long start, long end); + long getEventsInRange(long start, long end); /** * Retrieve the number of events in the trace, per event type, in a given @@ -112,11 +112,11 @@ public interface ITmfStatistics { * End time of the time range * @return The map of , for the given time range */ - public Map getEventTypesInRange(long start, long end); + Map getEventTypesInRange(long start, long end); /** * Notify the statistics back-end that the trace is being closed, so it * should dispose itself as appropriate (release file descriptors, etc.) */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/ITmfTimestamp.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/ITmfTimestamp.java index 39dbb387de..5f4bf5fc59 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/ITmfTimestamp.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/ITmfTimestamp.java @@ -70,17 +70,17 @@ public interface ITmfTimestamp extends Comparable { /** * @return the timestamp value (magnitude) */ - public long getValue(); + long getValue(); /** * @return the timestamp scale (exponent) */ - public int getScale(); + int getScale(); /** * @return the timestamp precision (measurement tolerance) */ - public int getPrecision(); + int getPrecision(); // ------------------------------------------------------------------------ // Operations @@ -93,7 +93,7 @@ public interface ITmfTimestamp extends Comparable { * @param scale the new timestamp scale * @return a new 'adjusted' ITmfTimestamp */ - public ITmfTimestamp normalize(long offset, int scale); + ITmfTimestamp normalize(long offset, int scale); /** * Compares [this] and [ts] within timestamp precision @@ -102,7 +102,7 @@ public interface ITmfTimestamp extends Comparable { * @param withinPrecision consider the precision when testing for equality * @return -1, 0 or 1 (less than, equals, greater than) */ - public int compareTo(ITmfTimestamp ts, boolean withinPrecision); + int compareTo(ITmfTimestamp ts, boolean withinPrecision); /** * Returns the difference between [this] and [ts] as a timestamp @@ -110,7 +110,7 @@ public interface ITmfTimestamp extends Comparable { * @param ts the other timestamp * @return the time difference (this - other) as an ITmfTimestamp */ - public ITmfTimestamp getDelta(ITmfTimestamp ts); + ITmfTimestamp getDelta(ITmfTimestamp ts); /** * Returns if this timestamp intersects the given time range. Borders are @@ -121,7 +121,7 @@ public interface ITmfTimestamp extends Comparable { * The time range to compare to * @return True if this timestamp is part of the time range, false if not */ - public boolean intersects(TmfTimeRange range); + boolean intersects(TmfTimeRange range); // ------------------------------------------------------------------------ // Comparable @@ -137,6 +137,6 @@ public interface ITmfTimestamp extends Comparable { * @return the formatted timestamp * @since 2.0 */ - public String toString(final TmfTimestampFormat format); + String toString(final TmfTimestampFormat format); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfCheckpoint.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfCheckpoint.java index e0600458eb..e2e4e1be2f 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfCheckpoint.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfCheckpoint.java @@ -35,18 +35,18 @@ public interface ITmfCheckpoint extends Comparable { * @return the timestamp of the event referred to by the context * @since 2.0 */ - public ITmfTimestamp getTimestamp(); + ITmfTimestamp getTimestamp(); /** * @return the location of the event referred to by the checkpoint */ - public ITmfLocation getLocation(); + ITmfLocation getLocation(); // ------------------------------------------------------------------------ // Comparable // ------------------------------------------------------------------------ @Override - public int compareTo(ITmfCheckpoint checkpoint); + int compareTo(ITmfCheckpoint checkpoint); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfContext.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfContext.java index 4b53a3d6e0..5413d9b8da 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfContext.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfContext.java @@ -45,17 +45,17 @@ public interface ITmfContext { /** * @return the rank of the event at the context location */ - public long getRank(); + long getRank(); /** * @return the location of the event at the context rank */ - public ITmfLocation getLocation(); + ITmfLocation getLocation(); /** * @return indicates if the context rank is valid (!= UNKNOWN_RANK) */ - public boolean hasValidRank(); + boolean hasValidRank(); // ------------------------------------------------------------------------ // Operations @@ -64,21 +64,21 @@ public interface ITmfContext { /** * @param location the new location */ - public void setLocation(ITmfLocation location); + void setLocation(ITmfLocation location); /** * @param rank the new rank */ - public void setRank(long rank); + void setRank(long rank); /** * Increment the context rank */ - public void increaseRank(); + void increaseRank(); /** * Cleanup hook */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfEventParser.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfEventParser.java index 680d393e10..a9a37188ff 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfEventParser.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfEventParser.java @@ -33,6 +33,6 @@ public interface ITmfEventParser { * @param context the trace context * @return a parsed event (null if none) */ - public ITmfEvent parseEvent(ITmfContext context); + ITmfEvent parseEvent(ITmfContext context); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfLocation.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfLocation.java index 44d7618d6d..3f7b5279d3 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfLocation.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfLocation.java @@ -37,6 +37,6 @@ public interface ITmfLocation { * @return the location information * @since 2.0 */ - public Comparable getLocationInfo(); + Comparable getLocationInfo(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTrace.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTrace.java index 830db62b9c..8ee674df2d 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTrace.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTrace.java @@ -141,7 +141,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @param type the trace event type * @throws TmfTraceException If we couldn't open the trace */ - public void initTrace(IResource resource, String path, Class type) throws TmfTraceException; + void initTrace(IResource resource, String path, Class type) throws TmfTraceException; /** * Validate that the trace is of the correct type. @@ -152,7 +152,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @return true if trace is valid * @since 2.0 */ - public IStatus validate(IProject project, String path); + IStatus validate(IProject project, String path); // ------------------------------------------------------------------------ // Basic getters @@ -161,28 +161,28 @@ public interface ITmfTrace extends ITmfDataProvider { /** * @return the trace event type */ - public Class getEventType(); + Class getEventType(); /** * @return the associated trace resource */ - public IResource getResource(); + IResource getResource(); /** * @return the trace path */ - public String getPath(); + String getPath(); /** * @return the trace cache size */ - public int getCacheSize(); + int getCacheSize(); /** * @return The statistics provider for this trace * @since 2.0 */ - public ITmfStatistics getStatistics(); + ITmfStatistics getStatistics(); /** * Return the map of state systems associated with this trace. @@ -193,7 +193,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @return The map of state systems * @since 2.0 */ - public Map getStateSystems(); + Map getStateSystems(); /** * If a state system is not build by the trace itself, it's possible to @@ -208,7 +208,7 @@ public interface ITmfTrace extends ITmfDataProvider { * The already-built state system * @since 2.0 */ - public void registerStateSystem(String id, ITmfStateSystem ss); + void registerStateSystem(String id, ITmfStateSystem ss); /** * Index the trace. Depending on the trace type, this could be done at the @@ -219,7 +219,7 @@ public interface ITmfTrace extends ITmfDataProvider { * Should we block the caller until indexing is finished, or not. * @since 2.0 */ - public void indexTrace(boolean waitForCompletion); + void indexTrace(boolean waitForCompletion); // ------------------------------------------------------------------------ // Trace characteristics getters @@ -228,30 +228,30 @@ public interface ITmfTrace extends ITmfDataProvider { /** * @return the number of events in the trace */ - public long getNbEvents(); + long getNbEvents(); /** * @return the trace time range * @since 2.0 */ - public TmfTimeRange getTimeRange(); + TmfTimeRange getTimeRange(); /** * @return the timestamp of the first trace event * @since 2.0 */ - public ITmfTimestamp getStartTime(); + ITmfTimestamp getStartTime(); /** * @return the timestamp of the last trace event * @since 2.0 */ - public ITmfTimestamp getEndTime(); + ITmfTimestamp getEndTime(); /** * @return the streaming interval in ms (0 if not a streaming trace) */ - public long getStreamingInterval(); + long getStreamingInterval(); // ------------------------------------------------------------------------ // Trace positioning getters @@ -260,7 +260,7 @@ public interface ITmfTrace extends ITmfDataProvider { /** * @return the current trace location */ - public ITmfLocation getCurrentLocation(); + ITmfLocation getCurrentLocation(); /** * Returns the ratio (proportion) corresponding to the specified location. @@ -268,7 +268,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @param location a trace specific location * @return a floating-point number between 0.0 (beginning) and 1.0 (end) */ - public double getLocationRatio(ITmfLocation location); + double getLocationRatio(ITmfLocation location); // ------------------------------------------------------------------------ // SeekEvent operations (returning a trace context) @@ -286,7 +286,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @param location the trace specific location * @return a context which can later be used to read the corresponding event */ - public ITmfContext seekEvent(ITmfLocation location); + ITmfContext seekEvent(ITmfLocation location); /** * Position the trace at the 'rank'th event in the trace. @@ -300,7 +300,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @param rank the event rank * @return a context which can later be used to read the corresponding event */ - public ITmfContext seekEvent(long rank); + ITmfContext seekEvent(long rank); /** * Position the trace at the first event with the specified timestamp. If @@ -317,7 +317,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @return a context which can later be used to read the corresponding event * @since 2.0 */ - public ITmfContext seekEvent(ITmfTimestamp timestamp); + ITmfContext seekEvent(ITmfTimestamp timestamp); /** * Position the trace at the event located at the specified ratio in the @@ -330,7 +330,7 @@ public interface ITmfTrace extends ITmfDataProvider { * @param ratio the proportional 'rank' in the trace * @return a context which can later be used to read the corresponding event */ - public ITmfContext seekEvent(double ratio); + ITmfContext seekEvent(double ratio); /** * Returns the initial range offset @@ -338,5 +338,5 @@ public interface ITmfTrace extends ITmfDataProvider { * @return the initial range offset * @since 2.0 */ - public ITmfTimestamp getInitialRangeOffset(); + ITmfTimestamp getInitialRangeOffset(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTraceIndexer.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTraceIndexer.java index 4cee2b58bf..a36b3e039a 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTraceIndexer.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTraceIndexer.java @@ -68,7 +68,7 @@ public interface ITmfTraceIndexer { * complete? * @since 2.0 */ - public void buildIndex(long offset, TmfTimeRange range, boolean waitForCompletion); + void buildIndex(long offset, TmfTimeRange range, boolean waitForCompletion); /** * Indicates that the indexer is busy indexing the trace. @@ -76,7 +76,7 @@ public interface ITmfTraceIndexer { * * @return the state of the indexer (indexing or not) */ - public boolean isIndexing(); + boolean isIndexing(); /** * Adds an entry to the trace index. @@ -85,7 +85,7 @@ public interface ITmfTraceIndexer { * @param timestamp The timestamp matching this context * @since 2.0 */ - public void updateIndex(ITmfContext context, ITmfTimestamp timestamp); + void updateIndex(ITmfContext context, ITmfTimestamp timestamp); /** * Returns the context of the checkpoint immediately preceding the requested @@ -95,7 +95,7 @@ public interface ITmfTraceIndexer { * @return the checkpoint context * @since 2.0 */ - public ITmfContext seekIndex(ITmfTimestamp timestamp); + ITmfContext seekIndex(ITmfTimestamp timestamp); /** * Returns the context of the checkpoint immediately preceding the requested @@ -104,11 +104,11 @@ public interface ITmfTraceIndexer { * @param rank the requested event rank * @return the checkpoint context */ - public ITmfContext seekIndex(long rank); + ITmfContext seekIndex(long rank); /** * Perform cleanup when the indexer is no longer required. */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfAsyncSequenceDiagramEvent.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfAsyncSequenceDiagramEvent.java index 1785da9346..3201560e5e 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfAsyncSequenceDiagramEvent.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfAsyncSequenceDiagramEvent.java @@ -28,5 +28,5 @@ public interface ITmfAsyncSequenceDiagramEvent extends ITmfSyncSequenceDiagramEv * @return end timestamp of message (i.e. receive time) * @since 2.0 */ - public ITmfTimestamp getEndTime(); + ITmfTimestamp getEndTime(); } diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfSyncSequenceDiagramEvent.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfSyncSequenceDiagramEvent.java index ff7704b98b..bfcb520d50 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfSyncSequenceDiagramEvent.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/uml2sd/ITmfSyncSequenceDiagramEvent.java @@ -28,21 +28,21 @@ public interface ITmfSyncSequenceDiagramEvent { * * @return Name of message */ - public String getName(); + String getName(); /** * Returns name of sender of message. * * @return name of sender of message */ - public String getSender(); + String getSender(); /** * Returns Name of receiver of message. * * @return Name of receiver of message */ - public String getReceiver(); + String getReceiver(); /** * Returns Start time of message (i.e. send time). @@ -50,5 +50,5 @@ public interface ITmfSyncSequenceDiagramEvent { * @return Start timestamp of message (i.e. send time) * @since 2.0 */ - public ITmfTimestamp getStartTime(); + ITmfTimestamp getStartTime(); } diff --git a/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SDTestConstants.java b/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SDTestConstants.java index 6587f6e569..18e5edc071 100644 --- a/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SDTestConstants.java +++ b/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SDTestConstants.java @@ -20,59 +20,58 @@ public interface IUml2SDTestConstants { /** * Timeout for waiting of jobs to finish (in milliseconds). */ - final static public int WAIT_FOR_JOBS_DELAY = 1000; + public static final int WAIT_FOR_JOBS_DELAY = 1000; /** * Timeout for waiting for GUI display to refresh (in milliseconds). */ - final static public int GUI_REFESH_DELAY = 1000; + public static final int GUI_REFESH_DELAY = 1000; /** * Initial delay before indexing (in milliseconds). */ - final static public int INITIAL_INDEX_DELAY = 1000; + public static final int INITIAL_INDEX_DELAY = 1000; /** * Delay after broadcasting a TMF signal (in milliseconds) */ - final static public int BROADCAST_DELAY = 2000; + public static final int BROADCAST_DELAY = 2000; /** * Total number of pages of test trace. */ - final static public int TOTAL_NUMBER_OF_PAGES = 9; + public static final int TOTAL_NUMBER_OF_PAGES = 9; /** * Number of messages per page (as defined for loader class) */ - final static public int MAX_MESSEAGES_PER_PAGE = 10000; + public static final int MAX_MESSEAGES_PER_PAGE = 10000; /** * Number of messages of last page of the test trace. */ - final static public int NUM_MESSAGES_OF_LAST_PAGE = 32; + public static final int NUM_MESSAGES_OF_LAST_PAGE = 32; /** * Default number of lifelines of test trace. */ - final static public int DEFAULT_NUM_LIFELINES = 2; + public static final int DEFAULT_NUM_LIFELINES = 2; /** * Number of lifelines of test trace when all lifelines are visible. */ - final static public int NUM_OF_ALL_LIFELINES = 3; + public static final int NUM_OF_ALL_LIFELINES = 3; /** * Page number of test trace where all lifelines are visible. */ - final static public int PAGE_OF_ALL_LIFELINES = 4; + public static final int PAGE_OF_ALL_LIFELINES = 4; /** * Time scale of test trace. */ - final static public byte TIME_SCALE = -9; - + public static final byte TIME_SCALE = -9; /** * Master player name (property of test trace) */ - final static public String MASTER_PLAYER_NAME = "Master"; + public static final String MASTER_PLAYER_NAME = "Master"; /** * First player name (property of test trace) */ - final static public String FIRST_PLAYER_NAME = "player1"; + public static final String FIRST_PLAYER_NAME = "player1"; /** * Second player name (property of test trace) */ - final static public String SECOND_PLAYER_NAME = "player2"; + public static final String SECOND_PLAYER_NAME = "player2"; } diff --git a/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java b/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java index cf385297d0..186f0a9650 100644 --- a/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java +++ b/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java @@ -23,81 +23,81 @@ public interface IUml2SdSignalValidator { /** * @return if signal is received or not */ - public boolean isSignalReceived(); + boolean isSignalReceived(); /** * Sets signal received value * @param received boolean value to set */ - public void setSignalReceived(boolean received); + void setSignalReceived(boolean received); /** * @return whether source of signal is correct or not */ - public boolean isSourceError(); + boolean isSourceError(); /** * Sets the source error flag. * @param fIsSourceError boolean value to set */ - public void setSourceError(boolean fIsSourceError); + void setSourceError(boolean fIsSourceError); /** * @return whether received current time is correct or not */ - public boolean isCurrentTimeError(); + boolean isCurrentTimeError(); /** * Sets the current time error flag. * @param fIsCurrentTimeError boolean value to set */ - public void setCurrentTimeError(boolean fIsCurrentTimeError); + void setCurrentTimeError(boolean fIsCurrentTimeError); /** * @return whether received range is correct or not */ - public boolean isRangeError(); + boolean isRangeError(); /** * Sets the range error flag. * @param fIsRangeError boolean value to set */ - public void setRangeError(boolean fIsRangeError); + void setRangeError(boolean fIsRangeError); /** * @return whether signal was received or not */ - public boolean isSignalError(); + boolean isSignalError(); /** * Sets signal error flag. * @param fIsSignalError boolean value to set */ - public void setSignalError(boolean fIsSignalError); + void setSignalError(boolean fIsSignalError); /** * @return source of expected signal. */ - public Object getSource(); + Object getSource(); /** * Sets source of expected signal * @param source expected source component */ - public void setSource(Object source); + void setSource(Object source); /** * @return the expected current time. */ - public TmfTimestamp getCurrentTime(); + TmfTimestamp getCurrentTime(); /** * Sets the expected current time * @param currentTime Time to set */ - public void setCurrentTime(TmfTimestamp currentTime); + void setCurrentTime(TmfTimestamp currentTime); /** * @return the expected current time range. */ - public TmfTimeRange getCurrentRange(); + TmfTimeRange getCurrentRange(); /** * Sets the expected current time range. * @param currentRange the expected current time range to set */ - public void setCurrentRange(TmfTimeRange currentRange); + void setCurrentRange(TmfTimeRange currentRange); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/editors/ITmfTraceEditor.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/editors/ITmfTraceEditor.java index fcda1bd12a..e82be3809a 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/editors/ITmfTraceEditor.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/editors/ITmfTraceEditor.java @@ -28,12 +28,12 @@ public interface ITmfTraceEditor { * * @return The trace */ - public ITmfTrace getTrace(); + ITmfTrace getTrace(); /** * Get the bookmark file associated to this trace * * @return The IFile object pointing to the bookmark file */ - public IFile getBookmarksFile(); + IFile getBookmarksFile(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/ITmfProjectModelElement.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/ITmfProjectModelElement.java index 15cc45b7d5..1386c23858 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/ITmfProjectModelElement.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/ITmfProjectModelElement.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson + * Copyright (c) 2010, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -34,54 +34,54 @@ public interface ITmfProjectModelElement { * Returns the name of the project model element. * @return the name of the project element. */ - public String getName(); + String getName(); /** * Returns the resource associated with the project model element. * @return the model resource. */ - public IResource getResource(); + IResource getResource(); /** * Returns the path of the project model resource. * @return the resource path. */ - public IPath getPath(); + IPath getPath(); /** * Returns the URI (location) of the resource. * @return the resource URI. */ - public URI getLocation(); + URI getLocation(); /** * Returns the project model element. * @return the project model element. */ - public TmfProjectElement getProject(); + TmfProjectElement getProject(); /** * Returns the parent of this model element. * @return the parent of this model element. */ - public ITmfProjectModelElement getParent(); + ITmfProjectModelElement getParent(); /** * Returns whether this model element has children or not. * @return true if this model has children else false */ - public boolean hasChildren(); + boolean hasChildren(); /** * Returns a list of children model elements. * @return a list of children model elements. */ - public List getChildren(); + List getChildren(); /** * Method to add a child to the model element. * @param child A child element to add. */ - public void addChild(ITmfProjectModelElement child); + void addChild(ITmfProjectModelElement child); /** * Method to remove a child from the model element. * @param child A child element to remove */ - public void removeChild(ITmfProjectModelElement child); + void removeChild(ITmfProjectModelElement child); /** * Method to request to refresh the project. */ - public void refresh(); + void refresh(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/ITmfViewer.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/ITmfViewer.java index fbed37abe4..f9e5ba7f9a 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/ITmfViewer.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/ITmfViewer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Ericsson + * Copyright (c) 2012, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -32,10 +32,10 @@ public interface ITmfViewer extends ITmfComponent { * * @return the SWT control which displays this viewer's contents */ - public Control getControl(); + Control getControl(); /** * Tells the viewer to refresh its contents. */ - public void refresh(); + void refresh(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfColumnDataProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfColumnDataProvider.java index a63bd2b546..5b0b3273b5 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfColumnDataProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfColumnDataProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson + * Copyright (c) 2011, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -30,5 +30,5 @@ public interface ITmfColumnDataProvider { * * @return columns list */ - public List getColumnData(); + List getColumnData(); } \ No newline at end of file diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfStatisticsColumnData.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfStatisticsColumnData.java index 86a784b731..af3d25ac21 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfStatisticsColumnData.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/ITmfStatisticsColumnData.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson + * Copyright (c) 2011, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -31,14 +31,14 @@ public interface ITmfStatisticsColumnData { * * @return the name of the column. */ - public String getHeader(); + String getHeader(); /** * Return the width of the column at the creation. * * @return the width of the column. */ - public int getWidth(); + int getWidth(); /** * Return the alignment of the column. @@ -46,7 +46,7 @@ public interface ITmfStatisticsColumnData { * @see org.eclipse.swt.SWT * @return an integer representing the alignment inside the column. */ - public int getAlignment(); + int getAlignment(); /** * Provide the text to show in the tooltip when the cursor comes over the @@ -54,7 +54,7 @@ public interface ITmfStatisticsColumnData { * * @return text to show in the tooltip */ - public String getTooltip(); + String getTooltip(); /** * Return the labelProvider which provides the information to put in column @@ -62,14 +62,14 @@ public interface ITmfStatisticsColumnData { * * @return a ColumnLabelProvider. */ - public ColumnLabelProvider getLabelProvider(); + ColumnLabelProvider getLabelProvider(); /** * Return a ViewerComparator used to sort viewer's contents. * * @return the comparator. */ - public ViewerComparator getComparator(); + ViewerComparator getComparator(); /** * Return the provider of the percentage. Used to draw bar charts in @@ -77,5 +77,5 @@ public interface ITmfStatisticsColumnData { * * @return the percentageProvider. */ - public ITmfColumnPercentageProvider getPercentageProvider(); + ITmfColumnPercentageProvider getPercentageProvider(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/colors/IColorSettingsListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/colors/IColorSettingsListener.java index f6febda853..a1b7f68ef2 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/colors/IColorSettingsListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/colors/IColorSettingsListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson + * Copyright (c) 2010, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -26,5 +26,5 @@ public interface IColorSettingsListener { * @param colorSettings * The new color settings */ - public void colorSettingsChanged(ColorSetting[] colorSettings); + void colorSettingsChanged(ColorSetting[] colorSettings); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/distribution/model/IBaseDistributionModel.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/distribution/model/IBaseDistributionModel.java index 63b473cb27..f44d5393b4 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/distribution/model/IBaseDistributionModel.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/distribution/model/IBaseDistributionModel.java @@ -1,11 +1,11 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson - * + * Copyright (c) 2011, 2013 Ericsson + * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Bernd Hufmann - Initial API and implementation * Francois Chouinard - Moved from LTTng to TMF @@ -14,10 +14,10 @@ package org.eclipse.linuxtools.tmf.ui.views.distribution.model; /** - * Base distribution model interface. - * - * Distribution models such histograms need to implement this interface. - * + * Base distribution model interface. + * + * Distribution models such histograms need to implement this interface. + * * @version 1.0 * @author Bernd Hufmann * @@ -26,10 +26,10 @@ public interface IBaseDistributionModel { /** * Complete the model (all data received) */ - public void complete(); - + void complete(); + /** - * Clear the model (delete all data). + * Clear the model (delete all data). */ - public void clear(); + void clear(); } \ No newline at end of file diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramDataModel.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramDataModel.java index a0177e8439..d386484b19 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramDataModel.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramDataModel.java @@ -1,11 +1,11 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson - * + * Copyright (c) 2011, 2013 Ericsson + * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Bernd Hufmann - Initial API and implementation * Francois Chouinard - Moved from LTTng to TMF @@ -17,18 +17,18 @@ import org.eclipse.linuxtools.tmf.ui.views.distribution.model.IBaseDistributionM /** * Histogram data model interface. - * + * * @version 1.0 * @author Bernd Hufmann */ public interface IHistogramDataModel extends IBaseDistributionModel { /** * Add event to the correct bucket, compacting the if needed. - * - * @param eventCount the event to count + * + * @param eventCount the event to count * @param timestamp the timestamp of the event to count */ - public void countEvent(long eventCount, long timestamp); + void countEvent(long eventCount, long timestamp); /** * Scale the model data to the width, height and bar width requested. * @@ -38,6 +38,6 @@ public interface IHistogramDataModel extends IBaseDistributionModel { * @return the result array of size [width] and where the highest value doesn't exceed [height] * while considering the bar width [barWidth] */ - public HistogramScaledData scaleTo(int width, int height, int barWidth); + HistogramScaledData scaleTo(int width, int height, int barWidth); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramModelListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramModelListener.java index 658b7bbb60..24305e5692 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramModelListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramModelListener.java @@ -1,11 +1,11 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson - * + * Copyright (c) 2011, 2013 Ericsson + * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Bernd Hufmann - Initial API and implementation * Francois Chouinard - Moved from LTTng to TMF @@ -15,13 +15,13 @@ package org.eclipse.linuxtools.tmf.ui.views.histogram; /** * Listener interface for receiving histogram data model notifications. - * + * * @version 1.0 * @author Bernd Hufmann */ public interface IHistogramModelListener { /** - * Method to implement to receive notification about model updates. + * Method to implement to receive notification about model updates. */ - public void modelUpdated(); + void modelUpdated(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/ITimeCompressionListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/ITimeCompressionListener.java index cf4a5151c8..e00b9ea500 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/ITimeCompressionListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/ITimeCompressionListener.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -37,6 +37,6 @@ public interface ITimeCompressionListener { * @param color * The current color to use. */ - public void deltaSelected(Lifeline lifeline, int startEvent, int nbEvent, IColor color); + void deltaSelected(Lifeline lifeline, int startEvent, int nbEvent, IColor color); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/ITimeRange.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/ITimeRange.java index e4090ba4a3..8164fe6b7b 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/ITimeRange.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/ITimeRange.java @@ -27,7 +27,7 @@ public interface ITimeRange { * @return the time when the message began * @since 2.0 */ - public ITmfTimestamp getStartTime(); + ITmfTimestamp getStartTime(); /** * Returns the time when the message ended. @@ -35,12 +35,12 @@ public interface ITimeRange { * @return the time when the message ended * @since 2.0 */ - public ITmfTimestamp getEndTime(); + ITmfTimestamp getEndTime(); /** * Returns flag to indicate whether time information is available or not. * * @return flag to indicate whether time information is available or not */ - public boolean hasTimeInfo(); + boolean hasTimeInfo(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IColor.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IColor.java index a88d26ab94..7dd2575ef4 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IColor.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IColor.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -26,11 +26,11 @@ public interface IColor { * * @return the color */ - public Object getColor(); + Object getColor(); /** * Disposes the color */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IFont.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IFont.java index 7962d96881..b11d1e261b 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IFont.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IFont.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -26,11 +26,11 @@ public interface IFont { * * @return the font */ - public Object getFont(); + Object getFont(); /** * Disposes the font */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IGC.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IGC.java index 0859add178..fba8aa7c14 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IGC.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IGC.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -26,42 +26,42 @@ public interface IGC { * * @param style the new line style */ - public abstract void setLineStyle(int style); + void setLineStyle(int style); /** * Returns current the line style used in the graphical context * * @return the current line style */ - public abstract int getLineStyle(); + int getLineStyle(); /** * Returns the contents x coordinate that is at the upper left corner of the view * * @return the contents x coordinate */ - public abstract int getContentsX(); + int getContentsX(); /** * Returns the contents y coordinate that is at the upper left corner of the view * * @return the contents y coordinate */ - public abstract int getContentsY(); + int getContentsY(); /** * Returns the contents visible width * * @return the contents width */ - public abstract int getVisibleWidth(); + int getVisibleWidth(); /** * Returns the contents visible height * * @return the contents height */ - public abstract int getVisibleHeight(); + int getVisibleHeight(); /** * Translates the given contents x coordinate into view x coordinate @@ -69,7 +69,7 @@ public interface IGC { * @param x the x coordinate to translate * @return the corresponding view x coordinate */ - public abstract int contentsToViewX(int x); + int contentsToViewX(int x); /** * Translates the given contents y coordinate into view y coordinate @@ -77,7 +77,7 @@ public interface IGC { * @param y the y coordinate to translate * @return the corresponding view y coordinate */ - public abstract int contentsToViewY(int y); + int contentsToViewY(int y); /** * Draws a line, using the foreground color, between the points (x1, y1) and (x2, y2). @@ -87,7 +87,7 @@ public interface IGC { * @param x2 the second point's x coordinate * @param y2 the second point's y coordinate */ - public abstract void drawLine(int x1, int y1, int x2, int y2); + void drawLine(int x1, int y1, int x2, int y2); /** * Draws the outline of the rectangle specified by the arguments, using the receiver's foreground color. The left @@ -98,7 +98,7 @@ public interface IGC { * @param width the width of the rectangle to be drawn * @param height the height of the rectangle to be drawn */ - public abstract void drawRectangle(int x, int y, int width, int height); + void drawRectangle(int x, int y, int width, int height); /** * Draws a rectangle, based on the specified arguments, which has the appearance of the platform's focus rectangle @@ -110,7 +110,7 @@ public interface IGC { * @param width the width of the rectangle * @param height the height of the rectangle */ - public abstract void drawFocus(int x, int y, int width, int height); + void drawFocus(int x, int y, int width, int height); /** * Fills the interior of the closed polygon which is defined by the specified array of integer coordinates, using @@ -120,7 +120,7 @@ public interface IGC { * * @param points an array of alternating x and y values which are the vertices of the polygon */ - public abstract void fillPolygon(int[] points); + void fillPolygon(int[] points); /** * Draws the closed polygon which is defined by the specified array of integer coordinates, using the receiver's @@ -130,7 +130,7 @@ public interface IGC { * * @param points an array of alternating x and y values which are the vertices of the polygon */ - public abstract void drawPolygon(int[] points); + void drawPolygon(int[] points); /** * Fills the interior of the rectangle specified by the arguments, using the receiver's background color. @@ -140,7 +140,7 @@ public interface IGC { * @param width the width of the rectangle to be filled * @param height the height of the rectangle to be filled */ - public abstract void fillRectangle(int x, int y, int width, int height); + void fillRectangle(int x, int y, int width, int height); /** * Fills the interior of the specified rectangle with a gradient sweeping from left to right or top to bottom @@ -154,7 +154,7 @@ public interface IGC { * horizontal) * @param vertical if true sweeps from top to bottom, else sweeps from left to right */ - public abstract void fillGradientRectangle(int x, int y, int width, int height, boolean vertical); + void fillGradientRectangle(int x, int y, int width, int height, boolean vertical); /** * Returns the given string width in pixels @@ -162,7 +162,7 @@ public interface IGC { * @param name the string * @return the string width */ - public abstract int textExtent(String name); + int textExtent(String name); /** * Draws the given string, using the receiver's current font and foreground color. Tab expansion and carriage return @@ -174,7 +174,7 @@ public interface IGC { * @param y the y coordinate of the top left corner of the rectangular area where the text is to be drawn * @param trans if true the background will be transparent, otherwise it will be opaque */ - public abstract void drawText(String string, int x, int y, boolean trans); + void drawText(String string, int x, int y, boolean trans); /** * Draws the given string, using the receiver's current font and foreground color. Tab expansion and carriage return @@ -185,7 +185,7 @@ public interface IGC { * @param x the x coordinate of the top left corner of the rectangular area where the text is to be drawn * @param y the y coordinate of the top left corner of the rectangular area where the text is to be drawn */ - public abstract void drawText(String string, int x, int y); + void drawText(String string, int x, int y); /** * Fills the interior of an oval, within the specified rectangular area, with the receiver's background color. @@ -195,35 +195,35 @@ public interface IGC { * @param width the width of the oval to be filled * @param height the width of the oval to be filled */ - public abstract void fillOval(int x, int y, int width, int height); + void fillOval(int x, int y, int width, int height); /** * Returns current the background color used in the graphical context * * @return the background color */ - public abstract IColor getBackground(); + IColor getBackground(); /** * Returns current the background color used in the graphical context * * @return the background color */ - public abstract IColor getForeground(); + IColor getForeground(); /** * Set the graphical context foreground color * * @param color the foreground color */ - public abstract void setBackground(IColor color); + void setBackground(IColor color); /** * Set the graphical context background color * * @param color the background color */ - public abstract void setForeground(IColor color); + void setForeground(IColor color); /** * Set the color to use when filling regions using gradient. The color will progess from the given color to the @@ -231,42 +231,42 @@ public interface IGC { * * @param color the gardiient color to use */ - public abstract void setGradientColor(IColor color); + void setGradientColor(IColor color); /** * Set the line width to use for drawing * * @param width the line width */ - public abstract void setLineWidth(int width); + void setLineWidth(int width); /** * Returns the current graphical context line width used for drawing * * @return the line width */ - public abstract int getLineWidth(); + int getLineWidth(); /** * Returns the LineDotD style constant * * @return the constant value */ - public abstract int getLineDotStyle(); + int getLineDotStyle(); /** * Returns the LineDash style constant * * @return the constant */ - public abstract int getLineDashStyle(); + int getLineDashStyle(); /** * Returns the LineSolid style constant * * @return the constant */ - public abstract int getLineSolidStyle(); + int getLineSolidStyle(); /** * Draws the given string centered into the given rectangle. If the string cannot fit in the rectangle area, the @@ -280,7 +280,7 @@ public interface IGC { * @param height the height of the rectangle to draw the string * @param trans if true the background will be transparent, otherwise it will be opaque */ - public abstract void drawTextTruncatedCentred(String name, int x, int y, int width, int height, boolean trans); + void drawTextTruncatedCentred(String name, int x, int y, int width, int height, boolean trans); /** * Draws the given string into the given rectangle (left justify) If the string cannot fit in the rectangle area, @@ -294,7 +294,7 @@ public interface IGC { * @param height the height of the rectangle to draw the string * @param trans if true the background will be transparent, otherwise it will be opaque */ - public abstract void drawTextTruncated(String name, int x, int y, int width, int height, boolean trans); + void drawTextTruncated(String name, int x, int y, int width, int height, boolean trans); /** * Copies a the source image into a (potentially different sized) rectangular area in the graphical context. If the @@ -307,7 +307,7 @@ public interface IGC { * @param maxWith the width in pixels of the destination rectangle * @param maxHeight the height in pixels of the destination rectangle */ - public abstract void drawImage(IImage image, int x, int y, int maxWith, int maxHeight); + void drawImage(IImage image, int x, int y, int maxWith, int maxHeight); /** * Draws the outline of a circular or elliptical arc within the specified rectangular area. The resulting arc begins @@ -324,14 +324,14 @@ public interface IGC { * @param startAngle the beginning angle * @param endAngle the ending angle */ - public abstract void drawArc(int x, int y, int width, int height, int startAngle, int endAngle); + void drawArc(int x, int y, int width, int height, int startAngle, int endAngle); /** * Set the current font used in the graphical context * * @param font the font to use */ - public abstract void setFont(IFont font); + void setFont(IFont font); /** * Returns the font height given font @@ -339,7 +339,7 @@ public interface IGC { * @param font The font to check for * @return the the font height */ - public abstract int getFontHeight(IFont font); + int getFontHeight(IFont font); /** * Returns the average character width for the given font @@ -347,7 +347,7 @@ public interface IGC { * @param font The font to check for * @return the average width */ - public abstract int getFontWidth(IFont font); + int getFontWidth(IFont font); /** * Creates a color with the given RGB values @@ -357,19 +357,19 @@ public interface IGC { * @param b the blue component * @return the color */ - public abstract IColor createColor(int r, int g, int b); + IColor createColor(int r, int g, int b); /** * Returns the zoom factor applied in both x and y directions when drawing * * @return the zoom factor */ - public abstract float getZoom(); + float getZoom(); /** * Draws text with focus style. * * @param focus true if item has focus else false */ - public abstract void setDrawTextWithFocusStyle(boolean focus); + void setDrawTextWithFocusStyle(boolean focus); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IImage.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IImage.java index 93a4e83b83..ec5db3fe10 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IImage.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/IImage.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -27,11 +27,11 @@ public interface IImage { * * @return the color */ - public Object getImage(); + Object getImage(); /** * Disposes the image */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFilterProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFilterProvider.java index bb81de991a..fb0ca6c650 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFilterProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFilterProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -32,6 +32,6 @@ public interface IExtendedFilterProvider { * * @return a filter action implementation */ - public Action getFilterAction(); + Action getFilterAction(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFindProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFindProvider.java index 5760c8e5b0..8f91e419ff 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFindProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/IExtendedFindProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -34,5 +34,5 @@ public interface IExtendedFindProvider { * * @return an extended find action */ - public Action getFindAction(); + Action getFindAction(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDAdvancedPagingProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDAdvancedPagingProvider.java index 65c82c9e5a..8fe4031c32 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDAdvancedPagingProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDAdvancedPagingProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -31,14 +31,14 @@ public interface ISDAdvancedPagingProvider extends ISDPagingProvider { * @return the current page the loader is dealing with. Note that first page has the 0 index (indexes are from * 0 to pagesCount()-1). */ - public int currentPage(); + int currentPage(); /** * Returns the number of pages. * * @return number of pages the loader is dealing with */ - public int pagesCount(); + int pagesCount(); /** * Instructs a load of the <pageNumber_>th page.
@@ -46,6 +46,6 @@ public interface ISDAdvancedPagingProvider extends ISDPagingProvider { * * @param pageNumber index of the page to load */ - public void pageNumberChanged(int pageNumber); + void pageNumberChanged(int pageNumber); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDCollapseProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDCollapseProvider.java index 3ca2b7318c..b0e9f56a90 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDCollapseProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDCollapseProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -31,6 +31,6 @@ public interface ISDCollapseProvider { * @param lifeline1 - One of the lifeline to collapse * @param lifeline2 - The other lifeline to collapse with */ - public void collapseTwoLifelines(Lifeline lifeline1, Lifeline lifeline2); + void collapseTwoLifelines(Lifeline lifeline1, Lifeline lifeline2); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFilterProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFilterProvider.java index 0aeacc8af4..c3f2228034 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFilterProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFilterProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -36,6 +36,6 @@ public interface ISDFilterProvider extends ISDGraphNodeSupporter { * @param filters user selection made in the dialog box * @return true if the filter applied */ - public boolean filter(List filters); + boolean filter(List filters); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFindProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFindProvider.java index 2bd745aab0..047a11bc92 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFindProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFindProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -36,11 +36,11 @@ public interface ISDFindProvider extends ISDGraphNodeSupporter { * @param toApply user selection made in the dialog box * @return true if the find got a non empty result */ - public boolean find(Criteria toApply); + boolean find(Criteria toApply); /** * Called when dialog is closed */ - public void cancel(); + void cancel(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDGraphNodeSupporter.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDGraphNodeSupporter.java index 46e914a39f..5efcc8fa18 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDGraphNodeSupporter.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDGraphNodeSupporter.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -25,7 +25,7 @@ package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.provider; * @author sveyrier * */ -public abstract interface ISDGraphNodeSupporter { +public interface ISDGraphNodeSupporter { // ------------------------------------------------------------------------ // Constants @@ -67,7 +67,7 @@ public abstract interface ISDGraphNodeSupporter { * The integer value matching the type of the node * @return true to enable this options, false otherwise */ - public boolean isNodeSupported(int nodeType); + boolean isNodeSupported(int nodeType); /** * Return the name to use in dialogs Not called if isNodeSupported return @@ -79,5 +79,5 @@ public abstract interface ISDGraphNodeSupporter { * The name of the loader class * @return the name to use in dialogs */ - public String getNodeName(int nodeType, String loaderClassName); + String getNodeName(int nodeType, String loaderClassName); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPagingProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPagingProvider.java index ace5511a99..a0c77c287b 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPagingProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPagingProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -30,32 +30,32 @@ public interface ISDPagingProvider { * * @return true if a next page exists false otherwise */ - public boolean hasNextPage(); + boolean hasNextPage(); /** * Return true to enable the previous page button in the coolBar, false otherwise * * @return true if a previous page exists false otherwise */ - public boolean hasPrevPage(); + boolean hasPrevPage(); /** * Called back when next page button is pressed in the coolBar */ - public void nextPage(); + void nextPage(); /** * Called back when previous page button is pressed in the coolBar */ - public void prevPage(); + void prevPage(); /** * Called back when first page button is pressed in the coolBar */ - public void firstPage(); + void firstPage(); /** * Called back when last page button is pressed in the coolBar */ - public void lastPage(); + void lastPage(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPropertiesProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPropertiesProvider.java index a34c5bb4c7..d2465488bb 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPropertiesProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPropertiesProvider.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -30,6 +30,6 @@ public interface ISDPropertiesProvider { * * @return the property sheet entry */ - public IPropertySheetPage getPropertySheetEntry(); + IPropertySheetPage getPropertySheetEntry(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/load/IUml2SDLoader.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/load/IUml2SDLoader.java index 9f93a3c974..c1df537e0d 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/load/IUml2SDLoader.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/load/IUml2SDLoader.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -28,19 +28,19 @@ public interface IUml2SDLoader { * * @param viewer The sequence diagram view */ - public void setViewer(SDView viewer); + void setViewer(SDView viewer); /** * Returns title string for the UML2SD View when this loader is the one * * @return the string convenient for this loader */ - public String getTitleString(); + String getTitleString(); /** * When another loader becomes the one the previous one is replaced It's time clean-up * if needed (listeners to be removed for example) */ - public void dispose(); + void dispose(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/preferences/ISDPreferences.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/preferences/ISDPreferences.java index 1bc8735372..47c1cc40c4 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/preferences/ISDPreferences.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/preferences/ISDPreferences.java @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2005, 2012 IBM Corporation, Ericsson + * Copyright (c) 2005, 2013 IBM Corporation, Ericsson * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -90,7 +90,7 @@ public interface ISDPreferences { * @param prefId The preference name * @return the color */ - public IColor getBackGroundColor(String prefId); + IColor getBackGroundColor(String prefId); /** * Returns the foreground color for the given preference name (font preference name) @@ -98,7 +98,7 @@ public interface ISDPreferences { * @param prefId A preference name * @return the color */ - public IColor getForeGroundColor(String prefId); + IColor getForeGroundColor(String prefId); /** * Returns the font color for the given preference name (font preference name) @@ -106,7 +106,7 @@ public interface ISDPreferences { * @param prefId A preference name * @return the color */ - public IColor getFontColor(String prefId); + IColor getFontColor(String prefId); /** * Returns the font for the given preference name @@ -114,34 +114,34 @@ public interface ISDPreferences { * @param prefId the preference name * @return the font */ - public IFont getFont(String prefId); + IFont getFont(String prefId); /** * Returns the time compression bar selection color * * @return the time compression bar selection color */ - public IColor getTimeCompressionSelectionColor(); + IColor getTimeCompressionSelectionColor(); /** * Returns the background color used to draw selection * * @return the background color */ - public IColor getBackGroundColorSelection(); + IColor getBackGroundColorSelection(); /** * Returns the foreground color used to draw selection * * @return the foreground color */ - public IColor getForeGroundColorSelection(); + IColor getForeGroundColorSelection(); /** * Returns whether to use gradient color or not * * @return whether to use gradient color or not */ - public boolean useGradienColor(); + boolean useGradienColor(); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider.java index 6108543e5c..2b04ce6a97 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider.java @@ -43,7 +43,7 @@ public interface ITimeGraphPresentationProvider { * * @return the name of state types */ - public String getStateTypeName(); + String getStateTypeName(); /** * Returns the name of state type depending on the given entry. @@ -54,7 +54,7 @@ public interface ITimeGraphPresentationProvider { * @return the name of state type depending on the given entry or null. * @since 2.0 */ - public String getStateTypeName(ITimeGraphEntry entry); + String getStateTypeName(ITimeGraphEntry entry); /** * Returns table of states with state name to state color relationship. @@ -63,7 +63,7 @@ public interface ITimeGraphPresentationProvider { * * @see #getStateTableIndex */ - public StateItem[] getStateTable(); + StateItem[] getStateTable(); /** * Returns the index in the state table corresponding to this time event. @@ -79,7 +79,7 @@ public interface ITimeGraphPresentationProvider { * @see #TRANSPARENT * @see #INVISIBLE */ - public int getStateTableIndex(ITimeEvent event); + int getStateTableIndex(ITimeEvent event); /** * Called after drawing the control @@ -89,7 +89,7 @@ public interface ITimeGraphPresentationProvider { * @param gc * The graphics context */ - public void postDrawControl(Rectangle bounds, GC gc); + void postDrawControl(Rectangle bounds, GC gc); /** * Called after drawing an entry @@ -101,7 +101,7 @@ public interface ITimeGraphPresentationProvider { * @param gc * the graphics context */ - public void postDrawEntry(ITimeGraphEntry entry, Rectangle bounds, GC gc); + void postDrawEntry(ITimeGraphEntry entry, Rectangle bounds, GC gc); /** * Called after drawing an event @@ -113,7 +113,7 @@ public interface ITimeGraphPresentationProvider { * @param gc * the graphics context */ - public void postDrawEvent(ITimeEvent event, Rectangle bounds, GC gc); + void postDrawEvent(ITimeEvent event, Rectangle bounds, GC gc); /** * Returns the height of this item. This value is ignored if the time graph has a fixed item height. @@ -123,7 +123,7 @@ public interface ITimeGraphPresentationProvider { * * @see TimeGraphViewer#setItemHeight */ - public int getItemHeight(ITimeGraphEntry entry); + int getItemHeight(ITimeGraphEntry entry); /** * Provides the image icon for a given entry. @@ -131,7 +131,7 @@ public interface ITimeGraphPresentationProvider { * @param entry the entry * @return the image icon */ - public Image getItemImage(ITimeGraphEntry entry); + Image getItemImage(ITimeGraphEntry entry); /** * Returns the name of this event. @@ -140,7 +140,7 @@ public interface ITimeGraphPresentationProvider { * The event * @return The event name */ - public String getEventName(ITimeEvent event); + String getEventName(ITimeEvent event); /** * Returns a map of name and value providing additional information @@ -149,7 +149,7 @@ public interface ITimeGraphPresentationProvider { * @param event the time event * @return a map of tool tip information */ - public Map getEventHoverToolTipInfo(ITimeEvent event); + Map getEventHoverToolTipInfo(ITimeEvent event); /** * Returns a map of name and value providing additional information @@ -161,6 +161,6 @@ public interface ITimeGraphPresentationProvider { * * @since 2.0 */ - public Map getEventHoverToolTipInfo(ITimeEvent event, long hoverTime); + Map getEventHoverToolTipInfo(ITimeEvent event, long hoverTime); } \ No newline at end of file diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphRangeListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphRangeListener.java index 77aee8593f..e7794645d7 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphRangeListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphRangeListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Ericsson + * Copyright (c) 2012, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -27,5 +27,5 @@ public interface ITimeGraphRangeListener extends EventListener { * * @param event event object describing details */ - public void timeRangeUpdated(TimeGraphRangeUpdateEvent event); + void timeRangeUpdated(TimeGraphRangeUpdateEvent event); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphSelectionListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphSelectionListener.java index 456026eafc..9481bc6fc7 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphSelectionListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphSelectionListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Ericsson + * Copyright (c) 2012, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -27,5 +27,5 @@ public interface ITimeGraphSelectionListener extends EventListener { * * @param event event object describing details */ - public void selectionChanged(TimeGraphSelectionEvent event); + void selectionChanged(TimeGraphSelectionEvent event); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTimeListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTimeListener.java index d3cd24e677..e52a0ee6b6 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTimeListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTimeListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Ericsson + * Copyright (c) 2012, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -27,5 +27,5 @@ public interface ITimeGraphTimeListener extends EventListener { * * @param event event object describing details */ - public void timeSelected(TimeGraphTimeEvent event); + void timeSelected(TimeGraphTimeEvent event); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTreeListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTreeListener.java index 2e14dec03b..1b3f288e2d 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTreeListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/ITimeGraphTreeListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Ericsson + * Copyright (c) 2012, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -25,12 +25,12 @@ public interface ITimeGraphTreeListener { * * @param event event object describing details */ - public void treeCollapsed(TimeGraphTreeExpansionEvent event); + void treeCollapsed(TimeGraphTreeExpansionEvent event); /** * Notifies that an entry in the timegraph has been expanded. * * @param event event object describing details */ - public void treeExpanded(TimeGraphTreeExpansionEvent event); + void treeExpanded(TimeGraphTreeExpansionEvent event); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeEvent.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeEvent.java index 9326eb84be..c78245cd56 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeEvent.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeEvent.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson + * Copyright (c) 2009, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -27,14 +27,14 @@ public interface ITimeEvent { * * @return The time graph entry */ - public ITimeGraphEntry getEntry(); + ITimeGraphEntry getEntry(); /** * Get the timestamp of this event. * * @return The event's time */ - public long getTime(); + long getTime(); /** * @return @@ -45,6 +45,6 @@ public interface ITimeEvent { * *

*/ - public long getDuration(); + long getDuration(); } \ No newline at end of file diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeGraphEntry.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeGraphEntry.java index d067ea9f9e..579d1526b5 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeGraphEntry.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/model/ITimeGraphEntry.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson + * Copyright (c) 2009, 2013 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -30,7 +30,7 @@ public interface ITimeGraphEntry { * * @return the parent element, or null if it has none */ - public ITimeGraphEntry getParent(); + ITimeGraphEntry getParent(); /** * Returns whether this entry has children. @@ -38,7 +38,7 @@ public interface ITimeGraphEntry { * @return true if the given element has children, * and false if it has no children */ - public boolean hasChildren(); + boolean hasChildren(); /** * Returns the child elements of this entry. @@ -46,28 +46,28 @@ public interface ITimeGraphEntry { * @return an array of child elements * @since 2.0 */ - public List getChildren(); + List getChildren(); /** * Returns the name of this entry. * * @return the entry name */ - public String getName(); + String getName(); /** * Returns the start time of this entry in nanoseconds. * * @return the start time */ - public long getStartTime(); + long getStartTime(); /** * Returns the end time of this entry in nanoseconds. * * @return the end time */ - public long getEndTime(); + long getEndTime(); /** * Returns whether this entry has time events. @@ -78,14 +78,14 @@ public interface ITimeGraphEntry { * @see #getTimeEventsIterator * @see #getTimeEventsIterator(long, long, long) */ - public boolean hasTimeEvents(); + boolean hasTimeEvents(); /** * Get an iterator which returns all time events. * * @return the iterator */ - public Iterator getTimeEventsIterator(); + Iterator getTimeEventsIterator(); /** * Get an iterator which only returns events that fall within the start time and the stop time. @@ -98,5 +98,5 @@ public interface ITimeGraphEntry { * * @return the iterator */ - public Iterator getTimeEventsIterator(long startTime, long stopTime, long visibleDuration); + Iterator getTimeEventsIterator(long startTime, long stopTime, long visibleDuration); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/IDoubleClickListener.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/IDoubleClickListener.java index f00cb617bf..afa994b23e 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/IDoubleClickListener.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/IDoubleClickListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Kalray. + * Copyright (c) 2011, 2013 Kalray, Ericsson. * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -25,6 +25,6 @@ public interface IDoubleClickListener { * @param item the item that was double clicked in the table * @param column the column that was double clicked in the item in the table. */ - public void handleDoubleClick(TmfVirtualTable table, TableItem item, int column); + void handleDoubleClick(TmfVirtualTable table, TableItem item, int column); } diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/TooltipProvider.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/TooltipProvider.java index 6e3ff4d3b3..2f451f60d7 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/TooltipProvider.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/virtualtable/TooltipProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Kalray. + * Copyright (c) 2011, 2013 Kalray, Ericsson. * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -24,6 +24,6 @@ public interface TooltipProvider { * @param data the object being selected. (quite often a "TableItem") * @return the string of text to display in the tooltip. */ - public String getTooltip(int column, Object data); + String getTooltip(int column, Object data); } -- 2.34.1