CLI : Fixed a bug where getting the list of native template did not work. 53/13453/3
authorshingil.kang <shingil.kang@samsung.com>
Fri, 6 Dec 2013 05:57:43 +0000 (14:57 +0900)
committershingil.kang <shingil.kang@samsung.com>
Fri, 6 Dec 2013 07:07:33 +0000 (16:07 +0900)
get the array with information of native templates

Change-Id: I15d2bd90c9ef0b57e138a58cf4541c251d53f57f
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/CreateNativeProjectCommandData.java

index c4d7f39..e3fb66f 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ * IDE
+ *
+ * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Shingil Kang <shingil.kang@samsung.com>
+ * Hyeongseok Heo <hyeongseok.heo@samsung.com>
+ * Kangho Kim <kh5325.kim@samsung.com>
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ */
 package org.tizen.ncli.ide.subcommands;
 
 import static org.tizen.web.common.WebConstant.WIDGET_CONFIGURATION_FILE;
@@ -18,6 +43,11 @@ import org.tizen.web.model.TizenModelFactory;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
+/**
+ * This class provides data which is used to create Tizen native project.
+ * 
+ * @author Shingil Kang{@literal <shingil.kang@samsung.com>} (S-core)
+ */
 public class CreateNativeProjectCommandData
 {
 
@@ -55,6 +85,7 @@ public class CreateNativeProjectCommandData
                 slpPropertyElement = TizenTemplateProcessParser.getElementFromTag(slpPropertyElement, TizenTemplateProcessParser.TAG_PROPERTYGROUP);
                 // String templateName = TizenTemplateProcessParser.getTextContextFromElement(slpPropertyElement,TizenTemplateProcessParser.TAG_SAMPLE);
                 String templateName = samplefile.getParentFile().getName();
+                fileNameArray.add(templateName);
                 nativeProjects.put(templateName, samplefile.getParentFile().getAbsolutePath());
             }