summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorBernd Hufmann2013-02-13 09:10:48 (EST)
committer Bernd Hufmann2013-02-14 11:33:35 (EST)
commitfc0e97db552bad33d502043962cea805675cf317 (patch)
tree23f833965d38fd7cf80009b8e3df9f6c2a2991dd
parentee94ba6c05c614a088dbe1715713f103c3630073 (diff)
downloadorg.eclipse.linuxtools-fc0e97db552bad33d502043962cea805675cf317.zip
org.eclipse.linuxtools-fc0e97db552bad33d502043962cea805675cf317.tar.gz
org.eclipse.linuxtools-fc0e97db552bad33d502043962cea805675cf317.tar.bz2
Fix Typos in interface methods of TmfUml2SdSynchLoaderrefs/changes/36/10336/2
Since this class has already interface changes for 2.0 it was good time to fix these typos. Change-Id: Iac9018a5448bb381472d5521be72f922dcfa790a Reviewed-on: https://git.eclipse.org/r/10336 Tested-by: Hudson CI Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/Messages.java15
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java17
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/messages.properties10
3 files changed, 24 insertions, 18 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/Messages.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/Messages.java
index 5d62508..4772196 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/Messages.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/Messages.java
@@ -28,11 +28,16 @@ public class Messages extends NLS {
public static String TmfUml2SDSyncLoader_SearchJobDescrition;
public static String TmfUml2SDSyncLoader_SearchNotFound;
- public static String TmfUml2SDSyncCloader_EventTypeSend;
- public static String TmfUml2SDSyncCloader_EventTypeReceive;
- public static String TmfUml2SDSyncCloader_FieldSender;
- public static String TmfUml2SDSyncCloader_FieldReceiver;
- public static String TmfUml2SDSyncCloader_FieldSignal;
+ /** @since 2.0 */
+ public static String TmfUml2SDSyncLoader_EventTypeSend;
+ /** @since 2.0 */
+ public static String TmfUml2SDSyncLoader_EventTypeReceive;
+ /** @since 2.0 */
+ public static String TmfUml2SDSyncLoader_FieldSender;
+ /** @since 2.0 */
+ public static String TmfUml2SDSyncLoader_FieldReceiver;
+ /** @since 2.0 */
+ public static String TmfUml2SDSyncLoader_FieldSignal;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
index b8c0603..d68710f 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
@@ -304,7 +304,7 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
public void handleData(ITmfEvent event) {
super.handleData(event);
- ITmfSyncSequenceDiagramEvent sdEvent = getSequnceDiagramEvent(event);
+ ITmfSyncSequenceDiagramEvent sdEvent = getSequenceDiagramEvent(event);
if (sdEvent != null) {
++fNbSeqEvents;
@@ -1142,7 +1142,7 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
public void handleData(ITmfEvent event) {
super.handleData(event);
- ITmfSyncSequenceDiagramEvent sdEvent = getSequnceDiagramEvent(event);
+ ITmfSyncSequenceDiagramEvent sdEvent = getSequenceDiagramEvent(event);
if (sdEvent != null) {
fSdEvent.add(sdEvent);
@@ -1439,7 +1439,7 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
return;
}
- ITmfSyncSequenceDiagramEvent sdEvent = getSequnceDiagramEvent(event);
+ ITmfSyncSequenceDiagramEvent sdEvent = getSequenceDiagramEvent(event);
if (sdEvent != null) {
@@ -1529,15 +1529,16 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
*
* @param tmfEvent Event to parse for sequence diagram event details
* @return sequence diagram event if details are available else null
+ * @since 2.0
*/
- protected ITmfSyncSequenceDiagramEvent getSequnceDiagramEvent(ITmfEvent tmfEvent){
+ protected ITmfSyncSequenceDiagramEvent getSequenceDiagramEvent(ITmfEvent tmfEvent){
//type = .*RECEIVE.* or .*SEND.*
//content = sender:<sender name>:receiver:<receiver name>,signal:<signal name>
String eventType = tmfEvent.getType().toString();
- if (eventType.contains(Messages.TmfUml2SDSyncCloader_EventTypeSend) || eventType.contains(Messages.TmfUml2SDSyncCloader_EventTypeReceive)) {
- Object sender = tmfEvent.getContent().getField(Messages.TmfUml2SDSyncCloader_FieldSender);
- Object receiver = tmfEvent.getContent().getField(Messages.TmfUml2SDSyncCloader_FieldReceiver);
- Object name = tmfEvent.getContent().getField(Messages.TmfUml2SDSyncCloader_FieldSignal);
+ if (eventType.contains(Messages.TmfUml2SDSyncLoader_EventTypeSend) || eventType.contains(Messages.TmfUml2SDSyncLoader_EventTypeReceive)) {
+ Object sender = tmfEvent.getContent().getField(Messages.TmfUml2SDSyncLoader_FieldSender);
+ Object receiver = tmfEvent.getContent().getField(Messages.TmfUml2SDSyncLoader_FieldReceiver);
+ Object name = tmfEvent.getContent().getField(Messages.TmfUml2SDSyncLoader_FieldSignal);
if ((sender instanceof ITmfEventField) && (receiver instanceof ITmfEventField) && (name instanceof ITmfEventField)) {
ITmfSyncSequenceDiagramEvent sdEvent = new TmfSyncSequenceDiagramEvent(tmfEvent,
((ITmfEventField) sender).getValue().toString(),
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/messages.properties b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/messages.properties
index 39d0bda..b914ce5 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/messages.properties
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/messages.properties
@@ -14,9 +14,9 @@ TmfUml2SDSyncLoader_CategoryLifeline=Lifeline
TmfUml2SDSyncLoader_CategoryMessage=Interaction
TmfUml2SDSyncLoader_FrameName=Sequence Diagram
TmfUml2SDSyncLoader_SearchJobDescrition=Searching in sequence diagram ...
-TmfUml2SDSyncCloader_EventTypeSend=SEND
-TmfUml2SDSyncCloader_EventTypeReceive=RECEIVE
-TmfUml2SDSyncCloader_FieldSender=sender
-TmfUml2SDSyncCloader_FieldReceiver=receiver
-TmfUml2SDSyncCloader_FieldSignal=signal
+TmfUml2SDSyncLoader_EventTypeSend=SEND
+TmfUml2SDSyncLoader_EventTypeReceive=RECEIVE
+TmfUml2SDSyncLoader_FieldSender=sender
+TmfUml2SDSyncLoader_FieldReceiver=receiver
+TmfUml2SDSyncLoader_FieldSignal=signal
TmfUml2SDSyncLoader_SearchNotFound=String not found!