[Title] modify function of reset markers (do not reload map only remove markers)
authorjihye kim <jihye1128.kim@samsung.com>
Mon, 2 Jul 2012 06:36:15 +0000 (15:36 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Mon, 2 Jul 2012 06:36:15 +0000 (15:36 +0900)
[Type] Enhancement
[Module] event injector
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.location.map/src/org/tizen/location/map/page/MapImage.java
org.tizen.nfc/src/org/tizen/nfc/page/NfcStringResource.java

index 1f4134f..7fe49da 100644 (file)
@@ -388,15 +388,20 @@ public class MapImage extends AbstractInjectorPage {
                                if (browser != null) {
                                        try {
                                                // Reload Google Map
-                                               browser.refresh();
-                                               boolean bResult = browser.setText(googleMapScript);
+                                               boolean bResult = browser.execute("deleteMarkers()");
+                                               DebugLog.log("[Map] Browser execute deleteMakers() : "
+                                                               + (bResult ? "Success" : "Fail"));
+
+                                               if (!bResult) {
+                                                       bResult = browser.setText(googleMapScript);
+                                                       DebugLog.log("[Map] Browser reload : "
+                                                                       + (bResult ? "Success" : "Fail"));
+                                               }
 
                                                model.clear();
                                                ((Map) getParent()).refreshViewers();
                                                injectButton.setEnabled(validate());
                                                resetButton.setEnabled(validate());
-                                               DebugLog.log("[Map] Browser reload : "
-                                                               + (bResult ? "Success" : "Fail"));
                                        } catch (SWTException e) {
                                                e.printStackTrace();
                                        }
index a8d5831..2609750 100644 (file)
@@ -31,7 +31,7 @@ import java.util.ArrayList;
 class NfcErrorString {
        public static String RecordCountIsZero = "NDEF record list is empty\nAt least one or more records are required.";
        public static String RecordCountIsMax = "The number of NDEF records has reached the maximum limit of 5.\n";
-
+       public static String MessageLenIsMax  = "The length of the NDEF messag has reached the maximun limit of 4096 bytes.\n";
        public static String MediaFileException = "Throw exception while select media file.\n";
        public static String CheckVconfException = "Throw exception while check NFC state of emulator.\n";