From 91734b38aa43a1a354b9ab9e33cce1383323e367 Mon Sep 17 00:00:00 2001 From: heeyoung Date: Wed, 2 Apr 2014 13:43:11 +0900 Subject: [PATCH] [Title] exception handling - DACustomToggleButton [Desc.] addListeners() method is invoked in the constructor of the superclass. At this point, the fields of the class have not yet initiaized. [Issue] - Change-Id: Id1e63a1e5a0b8e85092a6e5114da1e4e1745b461 Signed-off-by: heeyoung --- .../widgets/button/toggle/DACustomToggleButton.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/org.tizen.dynamicanalyzer.widgets/src/org/tizen/dynamicanalyzer/widgets/button/toggle/DACustomToggleButton.java b/org.tizen.dynamicanalyzer.widgets/src/org/tizen/dynamicanalyzer/widgets/button/toggle/DACustomToggleButton.java index 1977774..658fb5e 100644 --- a/org.tizen.dynamicanalyzer.widgets/src/org/tizen/dynamicanalyzer/widgets/button/toggle/DACustomToggleButton.java +++ b/org.tizen.dynamicanalyzer.widgets/src/org/tizen/dynamicanalyzer/widgets/button/toggle/DACustomToggleButton.java @@ -98,7 +98,7 @@ public class DACustomToggleButton extends DACustomButton { attr.setImage(STATE_TOGGLE, toggle); attr.setImage(STATE_TOGGLE_HOVER, toggleHover); - addListeners(); + addToggleListeners(); } public DACustomToggleButton(Composite parent, Image normal, Image push, @@ -115,7 +115,7 @@ public class DACustomToggleButton extends DACustomButton { buttonRenderer = new DACustomToggleButtonRenderer(); attr.setColor(STATE_TOGGLE, ColorResources.BLUE); attr.setColor(STATE_TOGGLE_HOVER, ColorResources.WHITE); - addListeners(); + addToggleListeners(); } public DACustomToggleButton(Composite parent, Color normalStart, @@ -139,8 +139,7 @@ public class DACustomToggleButton extends DACustomButton { attr.setDrawType(TYPE_GRADATION); } - @Override - protected void addListeners() { + protected void addToggleListeners() { if (null != toggleButtonMouseListener) { this.addListener(SWT.MouseEnter, toggleButtonMouseListener); this.addListener(SWT.MouseExit, toggleButtonMouseListener); -- 2.7.4