From c33629e805ba363abb508137a5d9a6a9dfaeeace Mon Sep 17 00:00:00 2001 From: "shingil.kang" Date: Fri, 6 Dec 2013 14:57:43 +0900 Subject: [PATCH] CLI : Fixed a bug where getting the list of native template did not work. get the array with information of native templates Change-Id: I15d2bd90c9ef0b57e138a58cf4541c251d53f57f Signed-off-by: shingil.kang --- .../CreateNativeProjectCommandData.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/CreateNativeProjectCommandData.java b/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/CreateNativeProjectCommandData.java index c4d7f39..e3fb66f 100644 --- a/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/CreateNativeProjectCommandData.java +++ b/org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/CreateNativeProjectCommandData.java @@ -1,3 +1,28 @@ +/* + * IDE + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * Shingil Kang + * Hyeongseok Heo + * Kangho Kim + * + * 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 } (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()); } -- 2.7.4