X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.ui%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fui%2Fviews%2Fuml2sd%2Fcore%2FAsyncMessageReturn.java;h=88e42b391ce86b017e772c10ab15e10e02990691;hb=3145ec83d5286a0fdfe8e5d119c532774fde038d;hp=ec07f04fbe839936f32b4ce4212d8b18f868ffc1;hpb=d269c2fabf7ac1f67757fa92ca2313bacaa4e038;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/AsyncMessageReturn.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/AsyncMessageReturn.java index ec07f04fbe..88e42b391c 100755 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/AsyncMessageReturn.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/AsyncMessageReturn.java @@ -13,6 +13,7 @@ package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core; import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IGC; import org.eclipse.linuxtools.tmf.ui.views.uml2sd.preferences.ISDPreferences; +import org.eclipse.linuxtools.tmf.ui.views.uml2sd.preferences.SDViewPref; /** * The message return graph node implementation.
@@ -81,13 +82,16 @@ public class AsyncMessageReturn extends AsyncMessage { if (!isVisible()) { return; } + + ISDPreferences pref = SDViewPref.getInstance(); + fPrefId = ISDPreferences.PREF_ASYNC_MESS_RET; int oldStyle = context.getLineStyle(); // Message return are dashed context.setLineStyle(context.getLineDotStyle()); if (!isSelected()) { - context.setBackground(Frame.getUserPref().getBackGroundColor(fPrefId)); - context.setForeground(Frame.getUserPref().getForeGroundColor(fPrefId)); + context.setBackground(pref.getBackGroundColor(fPrefId)); + context.setForeground(pref.getForeGroundColor(fPrefId)); } super.draw(context); // restore the context