From: gyeongseok.seo Date: Fri, 10 May 2013 09:45:01 +0000 (+0900) Subject: [Title] Fixed template context logic. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cb509bfbb290e63f91088542321fdfe48c4201d;p=sdk%2Ftools%2Fcli.git [Title] Fixed template context logic. [Desc.] directory template and standard template is common template's child class [Issue] Change-Id: I2b4597e78beb62415038f9c69da165750ec336dd --- diff --git a/org.tizen.cli/src/org/tizen/cli/util/TemplateModelProvider.java b/org.tizen.cli/src/org/tizen/cli/util/TemplateModelProvider.java index 0009899..3e64e39 100644 --- a/org.tizen.cli/src/org/tizen/cli/util/TemplateModelProvider.java +++ b/org.tizen.cli/src/org/tizen/cli/util/TemplateModelProvider.java @@ -34,6 +34,7 @@ import org.tizen.common.core.command.ExecutionContext; import org.tizen.common.core.command.Prompter; import org.tizen.common.core.command.prompter.GenericOption; import org.tizen.common.verrari.IModelProvider; +import org.tizen.common.verrari.template.CommonTemplate; import org.tizen.common.verrari.template.StandardTemplate; public class @@ -99,7 +100,7 @@ implements IModelProvider final Prompter prompter = this.context.getPrompter(); final GenericOption opt = new GenericOption(); - StandardTemplate current = StandardTemplate.getCurrentTemplate(); + CommonTemplate current = CommonTemplate.getCurrentTemplate(); String message = "Input " + key + " ?"; if ( null != current ) {