[Title] Fixed a wrong label
authordonghyuk.yang <donghyuk.yang@samsung.com>
Tue, 12 Mar 2013 02:32:18 +0000 (11:32 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Mon, 18 Mar 2013 09:18:52 +0000 (18:18 +0900)
org.tizen.nativeplatform/src/org/tizen/nativeplatform/git/WebGitIndexParser.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/WizardUIMessages.properties
org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/ui/TizenPlatformPWComposite.java

index d02e460..9f3198c 100644 (file)
@@ -40,6 +40,8 @@ import org.tizen.nativeplatform.preferences.PreferencesManager;
 
 public class WebGitIndexParser implements IGitIndexParser {
 
+       private final String GIT_ERROR = "No Git information! Update Git Configuration in \"Windows->Preferences->Tizen SDK->Platform->Site Configuration\""; 
+       
        @Override
        public ArrayList<GitDescription> parse(PreferencesManager.SiteConfiguration config) {
                boolean startTable = false;
@@ -53,7 +55,7 @@ public class WebGitIndexParser implements IGitIndexParser {
                if ( !(new File( cacheFile )).exists() ) {
                        GitDescription gitDesc = new GitDescription();
                        gitDesc.setProject("no_category/no_project.git");
-                       gitDesc.setDesc("No Git information! Update Git Configuration in \"Windows->Preferences->Tizen SDK->Platform->Git Configuration\" ");                                                   
+                       gitDesc.setDesc(GIT_ERROR);                                                     
                        gitDesc.setOwner("None");
 
                        GitDescs.add(gitDesc);
index 55a44ba..2754ef6 100644 (file)
@@ -8,3 +8,5 @@ WizardPage.GitInfo.LastChange = Last Change
 WizardPage.GitInfo.Error = Error
 WizardPage.GitError.FailedGet.Messsage = Failed to get git project
 WizardPage.GitError.CantCreate.Messsage = You can not create this project
+
+WizardPage.GitError.NoInfo = No Git information! \nUpdate Git Configuration in \"Preferences->Tizen SDK->Platform->Site Configuration\"
index 72b6857..6f47016 100644 (file)
@@ -157,9 +157,8 @@ public class TizenPlatformPWComposite extends PWWidget {
 
         Label emptyGitDescription = new Label(composite, SWT.NONE       ) ;
         emptyGitDescription.setLayoutData(new GridData(SWT.FILL, SWT.FILL,true, true));
-        emptyGitDescription.setAlignment(SWT.CENTER);
-        emptyGitDescription.setText("No Git information! \nUpdate Git Configuration in \"Preferences->Tizen SDK->Platform->Git Configuration\"");
-        
+        emptyGitDescription.setAlignment(SWT.CENTER);        
+        emptyGitDescription.setText(resources.getString("WizardPage.GitError.NoInfo"));        
     }