upload tizen1.0 source 11/11/1 1.0_post
authorSungho Park <chywoo.park@samsung.com>
Mon, 30 Apr 2012 09:06:09 +0000 (18:06 +0900)
committerSungho Park <chywoo.park@samsung.com>
Mon, 30 Apr 2012 09:06:09 +0000 (18:06 +0900)
Change-Id: I043dbd233ef61214c20f9cbac4c283952811be7c

25 files changed:
org.tizen.nativeplatform.feature/feature.xml
org.tizen.nativeplatform.feature/rootfiles/resources/tools/snippets/Comments/File Comment.xml [moved from org.tizen.nativeplatform.feature/rootfiles/snippets/Comments/File Comment.xml with 100% similarity]
org.tizen.nativeplatform.feature/rootfiles/resources/tools/snippets/Comments/Project Comment.xml [moved from org.tizen.nativeplatform.feature/rootfiles/snippets/Comments/Project Comment.xml with 100% similarity]
org.tizen.nativeplatform.feature/rootfiles/resources/tools/snippets/keyCombos.properties [moved from org.tizen.nativeplatform.feature/rootfiles/snippets/keyCombos.properties with 100% similarity]
org.tizen.nativeplatform/META-INF/MANIFEST.MF
org.tizen.nativeplatform/plugin.xml
org.tizen.nativeplatform/src/org/tizen/nativeplatform/Activator.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/BuildPackageObjectAction.java [new file with mode: 0644]
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/CustomDebianConfigurationOld.java [deleted file]
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/CustomDebianProjectDependentBuilderOld.java [deleted file]
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/PlatformConfigurationManager.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/PlatformMakeGenerator.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/PlatformProjectConverter.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/PlatformProjectDependentPackager.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/TizenDebianLaunchDelegateForAttach.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/pkgInstall/PackageCommander.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/pkgInstall/PackageManager.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenDebianMainWizardPage.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenDebianProjectWizard.java
org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/debian/changelog
org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/debian/control
org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/debian/org.tizen.hello.install [moved from org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/debian/com.samsung.hello.install with 100% similarity]
org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/debian/rules
org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/template.xml
package/pkginfo.manifest

index ef8f9fc..164b9fc 100644 (file)
@@ -2,7 +2,7 @@
 <feature
       id="org.tizen.nativeplatform.feature"
       label="Tizen Native Platform"
-      version="0.20.0.qualifier"
+      version="1.0.0.qualifier"
       provider-name="Samsung"
       plugin="org.tizen.base.platform"
       license-feature="org.tizen.base.feature">
index a6686e1..afe74d2 100644 (file)
@@ -1,6 +1,6 @@
 Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
-Bundle-Name: Tizen Native Inhouse
+Bundle-Name: Tizen Native Platform
 Bundle-SymbolicName: org.tizen.nativeplatform;singleton:=true
 Bundle-Version: 1.0.0
 Bundle-Activator: org.tizen.nativeplatform.Activator
@@ -11,12 +11,12 @@ Require-Bundle: org.eclipse.ui,
  org.eclipse.core.resources;bundle-version="3.6.1",
  org.eclipse.cdt.core;bundle-version="5.2.1",
  org.eclipse.cdt.managedbuilder.ui;bundle-version="7.0.0",
- org.tizen.common;bundle-version="1.3.20",
+ org.tizen.common,
  org.eclipse.ui.console;bundle-version="3.5.0",
  org.eclipse.cdt.ui;bundle-version="5.2.2",
  org.eclipse.debug.ui,
  org.tizen.common.connection,
- org.tizen.nativecommon;bundle-version="1.0.0"
+ org.tizen.nativecommon
 Bundle-RequiredExecutionEnvironment: JavaSE-1.6
 Bundle-ActivationPolicy: lazy
 Import-Package: org.eclipse.cdt.debug.core,
index 643c46c..6e8f121 100644 (file)
@@ -1,77 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <plugin>
 <!-- build start -->
-    <extension
-        point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
-        <toolChain
-            configurationEnvironmentSupplier="org.tizen.nativeplatform.build.PlatformConfigurationEnvVarSupplier"
-            id="com.samsung.slp.toolchain.custom.debian.base"
-            isAbstract="true"
-            osList="linux,win32"
-            superClass="com.samsung.slp.toolchain.gnu.base.common">
-            <builder
-                autoBuildTarget="build"
-                buildfileGenerator="org.tizen.nativeplatform.build.PlatformMakeGenerator"
-                cleanBuildTarget="clean"
-                command="sbi-make"
-                commandLauncher="org.tizen.nativecommon.build.CommonBuildCommandLauncher"
-                id="com.samsung.slp.builder.custom.debian"
-                incrementalBuildTarget="build"
-                name="SLP Custom Debian builder">
-            </builder>
-        </toolChain>
-        <toolChain
-            id="com.samsung.slp.toolchain.custom.debian"
-            isAbstract="false"
-            name="GCC-4.5(SBOX2)"
-            osList="linux,win32"
-            superClass="com.samsung.slp.toolchain.custom.debian.base">
-            <supportedProperties>
-                <property
-                    id="org.eclipse.cdt.build.core.buildArtefactType">
-                    <value
-                        id="com.samsung.slp.buildArtefactType.custom.debian">
-                    </value>
-                </property>
-            </supportedProperties>
-        </toolChain>
-        <projectType
-            buildArtefactType="com.samsung.slp.buildArtefactType.custom.debian"
-            id="com.samsung.slp.project.custom.debian"
-            isAbstract="true"
-            isTest="false">
-            <configuration
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.config.custom.debian.emulator"
-                name="Tizen-Emulator">
-                <toolChain
-                    id="com.samsung.slp.toolchain.custom.debian.emulator"
-                    superClass="com.samsung.slp.toolchain.custom.debian">
-                </toolChain>
-            </configuration>
-            <configuration
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.config.custom.debian.device"
-                name="Tizen-Device">
-                <toolChain
-                    id="com.samsung.slp.toolchain.custom.debian.device"
-                    superClass="com.samsung.slp.toolchain.custom.debian">
-                </toolChain>
-            </configuration>
-        </projectType>
-    </extension>
-
-    <extension
-        id="com.samsung.slp.build.info.custom.debian"
-        point="org.eclipse.cdt.managedbuilder.core.buildProperties">
-        <propertyValue
-            id="com.samsung.slp.buildArtefactType.custom.debian"
-            name="SLP Custom Debian Package"
-            property="org.eclipse.cdt.build.core.buildArtefactType">
-        </propertyValue>
-    </extension>
 
     <extension
         point="org.eclipse.cdt.core.templates">
             filterPattern=".*"
             id="org.tizen.nativeapp.templates.custom.debian.EmptyProject"
             location="templates/InhouseFrameworkPackages/EmptyProject/template.xml"
-            projectType="com.samsung.slp.nativeide.buildArtefactType.cdeb">
+            projectType="org.tizen.nativeide.buildArtefactType.platform">
         </template>
         <template
             filterPattern=".*"
             id="org.tizen.nativeapp.templates.custom.debian.HelloWorldProject"
             location="templates/InhouseFrameworkPackages/HelloWorldProject/template.xml"
-            projectType="com.samsung.slp.nativeide.buildArtefactType.cdeb">
+            projectType="org.tizen.nativeide.buildArtefactType.platform">
         </template>
         <template
             filterPattern=".*"
             class="org.tizen.nativeplatform.pkgInstall.PackageManagerRootstrapHandler">
         </handler>
     </extension>
-<!--
-    <extension
-        point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
-        <toolChain
-            id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base"
-            isAbstract="false"
-            name="[SBOX2] GCC-4.5"
-            osList="linux"
-            superClass="com.samsung.slp.nativeide.toolchain.sbi.gnu.slp.base">
-        </toolChain>
-
-        <projectType
-            buildArtefactType="com.samsung.slp.nativeide.buildArtefactType.app"
-            id="com.samsung.slp.nativeide.target.sbi.gcc45sbox2.app"
-            isAbstract="true"
-            isTest="false">
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
-                cleanCommand="rm -rf"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.app.debug.emulator"
-                name="Debug-Tizen-Emulator">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.app.debug.emulator"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
-                cleanCommand="rm -rf"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.app.debug.device"
-                name="Debug-Tizen-Device">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.app.debug.device"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release"
-                cleanCommand="rm -rf"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.app.release"
-                name="Release">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.app.release"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-        </projectType>
-
-        <projectType
-            buildArtefactType="com.samsung.slp.nativeide.buildArtefactType.sharedLib"
-            id="com.samsung.slp.nativeide.target.sbi.gcc45sbox2.so"
-            isAbstract="true"
-            isTest="false">
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.so.debug.emulator"
-                name="Debug-Tizen-Emulator">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.so.debug.emulator"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.so.debug.device"
-                name="Debug-Tizen-Device">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.so.debug.device"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release"
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.so.release"
-                name="Release">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.so.release"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-        </projectType>
-
-        <projectType
-            buildArtefactType="com.samsung.slp.nativeide.buildArtefactType.staticLib"
-            id="com.samsung.slp.nativeide.target.sbi.gcc45sbox2.lib"
-            isAbstract="true"
-            isTest="false">
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.lib.debug.emulator"
-                name="Debug-Tizen-Emulator">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.lib.debug.emulator"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.lib.debug.device"
-                name="Debug-Tizen-Device">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.lib.debug.device"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-            <configuration
-                buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release"
-                cleanCommand="rm -f"
-                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
-                id="com.samsung.slp.nativeide.config.sbi.gcc45sbox2.lib.release"
-                name="Release">
-                <toolChain
-                    id="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.lib.release"
-                    superClass="com.samsung.slp.nativeide.toolchain.sbi.gcc45sbox2.slp.base">
-                </toolChain>
-            </configuration>
-        </projectType>
-    </extension>
--->
 
+       <!-- 1 -->
     <extension
         point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
         <toolChain
             superClass="com.samsung.slp.nativeide.toolchain.sbi.gnu.base">
             <builder
                 autoBuildTarget="build"
-                buildfileGenerator="org.tizen.nativeplatform.build.PlatformMakeGenerator"
+                buildfileGenerator="org.tizen.nativecommon.build.OldProjectMakeGenerator"
                 cleanBuildTarget="clean"
                 command="sbi-make"
                 commandLauncher="org.tizen.nativecommon.build.CommonBuildCommandLauncher"
              name="Tizen Custom Debian Project"
              property="org.eclipse.cdt.build.core.buildArtefactType">
        </propertyValue>
+    </extension> 
+
+       <!-- 2 -->
+    <extension
+        point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
+        <toolChain
+            configurationEnvironmentSupplier="org.tizen.nativeplatform.build.PlatformConfigurationEnvVarSupplier"
+            id="org.tizen.nativeide.toolchain.sbi.gcc45.platform.base"
+            isAbstract="false"
+            name="GCC-4.5 Platform [SBOX2]"
+            osList="linux"
+            superClass="org.tizen.nativeide.toolchain.sbi.gnu.base">
+            <builder
+                autoBuildTarget="build"
+                buildfileGenerator="org.tizen.nativeplatform.build.PlatformMakeGenerator"
+                cleanBuildTarget="clean"
+                command="sbi-make"
+                commandLauncher="org.tizen.nativecommon.build.CommonBuildCommandLauncher"
+                id="org.tizen.nativeide.target.sbi.gcc45.platform.builder"
+                incrementalBuildTarget="build"
+                name="Tizen Platform Builder">
+            </builder>
+               <tool
+               id="org.tizen.nativeide.tool.sbi.gnu.archiver.platform.base"                    
+                       superClass="org.tizen.nativeide.tool.sbi.gnu.archiver.base">
+                       <enablement
+                               type="ALL">
+                               <false/>
+                       </enablement>                           
+               </tool>
+               <tool
+                       id="org.tizen.nativeide.tool.sbi.gnu.cpp.compiler.platform.base"               
+                       superClass="org.tizen.nativeide.tool.sbi.gnu.cpp.compiler.base">
+                       <enablement
+                               type="ALL">
+                               <false/>
+                       </enablement>                           
+               </tool>
+               <tool
+                       id="org.tizen.nativeide.tool.sbi.gnu.c.compiler.platform.base"                  
+                       superClass="org.tizen.nativeide.tool.sbi.gnu.c.compiler.base">
+                       <enablement
+                               type="ALL">
+                               <false/>
+                       </enablement>                           
+            </tool>
+               <tool
+                       id="org.tizen.nativeide.tool.sbi.gnu.c.linker.platform.base"                    
+                       superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base">
+                       <enablement
+                               type="ALL">
+                               <false/>
+                       </enablement>
+               </tool>
+               <tool
+                       id="org.tizen.nativeide.tool.sbi.gnu.cpp.linker.platform.base"                  
+                       superClass="org.tizen.nativeide.tool.sbi.gnu.cpp.linker.base">
+                       <enablement
+                               type="ALL">
+                               <false/>
+                       </enablement>
+               </tool>
+               <tool
+                       id="org.tizen.nativeapp.tool.sbi.gnu.assembler.platform.base"
+                       superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                       <enablement
+                               type="ALL">
+                               <false/>
+                       </enablement>
+               </tool>            
+        </toolChain>
+
+        <projectType
+            buildArtefactType="org.tizen.nativeide.buildArtefactType.platform"
+            id="org.tizen.nativebuild.target.sbi.gcc45.platform"
+            isAbstract="false"
+            isTest="false">
+            <configuration
+                cleanCommand="rm -f"
+                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
+                id="org.tizen.nativeide.config.sbi.gcc45.platform.emulator"
+                name="Tizen-Emulator">
+                <toolChain
+                    id="org.tizen.nativeide.toolchain.sbi.gcc45.platform.emulator"
+                    superClass="org.tizen.nativeide.toolchain.sbi.gcc45.platform.base">
+                </toolChain>
+            </configuration>
+            <configuration
+                cleanCommand="rm -f"
+                errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;"
+                id="org.tizen.nativeide.config.sbi.gcc45.platform.device"
+                name="Tizen-Device">
+                <toolChain
+                    id="org.tizen.nativeide.toolchain.sbi.gcc45.platform.device"
+                    superClass="org.tizen.nativeide.toolchain.sbi.gcc45.platform.base">
+                </toolChain>
+            </configuration>          
+        </projectType>
+    </extension>
+
+    <extension
+          point="org.eclipse.cdt.managedbuilder.core.buildProperties">
+       <propertyValue
+             id="org.tizen.nativeide.buildArtefactType.platform"
+             name="Tizen Platform Project"
+             property="org.eclipse.cdt.build.core.buildArtefactType">
+       </propertyValue>
     </extension>    
 
     <extension
         point="org.eclipse.cdt.managedbuilder.core.projectConverter">
         <converter
             class="org.tizen.nativeplatform.build.PlatformProjectConverter"
-            fromId="com.samsung.slp.project.custom.debian"
-            id="com.samsung.tizen.nativeapp.converter.cdeb"
+            fromId="com.samsung.slp.nativebuild.target.sbi.gcc45sbox2.cdeb"
+            id="org.tizen.nativeapp.converter.platform"
             mbsVersion="4.0.0"
-            name="Upgrade Tizen Custom Debian Project, GCC-4.5(SBOX2)"
-            toId="com.samsung.slp.nativebuild.target.sbi.gcc45sbox2.cdeb">
+            name="Upgrade Tizen Platform Project, GCC-4.5"
+            toId="org.tizen.nativebuild.target.sbi.gcc45.platform">
         </converter>
     </extension>
 <!-- build end -->        
             finalPerspective="org.tizen.nativeapp.perspective"
             icon="icons/newc_app.gif"
             id="org.tizen.nativeapp.newCategory.customWizard"
-            name="Tizen Custom Debian Project"
+            name="Tizen Platform Project"
             preferredPerspectives="org.tizen.nativeapp.perspective"
             project="true">
         </wizard>
         <launchConfigurationType
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegate"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationType"
-            name="Tizen Custom Debian Project"
+            name="Tizen Platform Project"
             public="true"/>
 
         <launchConfigurationType
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForAttach"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForAttach"
-            name="Tizen Custom Debian Project - Attach"
+            name="Tizen Platform Project - Attach"
             public="true"/>
 
         <launchConfigurationType
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForCore"
-            name="Tizen Custom Debian Project - Coredump"
+            name="Tizen Platform Project - Coredump"
             public="true"/>
     </extension>
 
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegate"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegate"
             modes="run,debug"
-            name="Tizen Custom Debian Project"
-            delegateDescription="The Tizen Custom Debian Project Launcher supports running Tizen application on device"
+            name="Tizen Platform Project"
+            delegateDescription="The Tizen Platform Project Launcher supports running Tizen application on device"
             sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
             sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"
             type="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationType"/>
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForAttach"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForAttach"
             modes="debug"
-            name="Tizen Custom Debian Project - Attach"
-            delegateDescription="The Tizen Custom Debian Project Launcher supports attach debugging Tizen process on device"
+            name="Tizen Platform Project - Attach"
+            delegateDescription="The Tizen Platform Project Launcher supports attach debugging Tizen process on device"
             sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
             sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"
             type="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForAttach"/>
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"
             modes="debug"
-            name="Tizen Custom Debian Project - Coredump"
-            delegateDescription="The Tizen Custom Debian Project Launcher supports coredump debugging"
+            name="Tizen Platform Project - Coredump"
+            delegateDescription="The Tizen Platform Project Launcher supports coredump debugging"
             sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
             sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"
             type="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForCore"/>
         <tab
             id="org.tizen.nativeplatform.launch.ui.TizenDebianMainTab"
             group="org.tizen.nativeplatform.launch.ui.TizenDebianLaunchConfigurationTabGroup"
-            name="Tizen Custom Debian Project Main Tab"
+            name="Tizen Platform Project Main Tab"
             class="org.tizen.nativeplatform.launch.ui.TizenDebianMainTab">
             <associatedDelegate delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegate"/>
         </tab>
         <tab
             id="org.tizen.nativeplatform.launch.ui.TizenDebianMainTab"
             group="org.tizen.nativeplatform.launch.ui.TizenDebianLaunchConfigurationForAttachTabGroup"
-            name="Tizen Custom Debian Project Main Tab"
+            name="Tizen Platform Project Main Tab"
             class="org.tizen.nativeplatform.launch.ui.TizenDebianMainTab">
             <associatedDelegate delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForAttach"/>
         </tab>
         <tab
             id="org.tizen.nativeplatform.launch.ui.TizenDebianMainCoreTab"
             group="org.tizen.nativeplatform.launch.ui.TizenDebianLaunchConfigurationForCoreTabGroup"
-            name="Tizen Custom Debian Project main tab for coredump"
+            name="Tizen Platform Project main tab for coredump"
             class="org.tizen.nativeplatform.launch.ui.TizenDebianMainCoreTab">
             <associatedDelegate delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"/>
         </tab>
     <extension
         point="org.eclipse.debug.ui.launchShortcuts">
         <shortcut
-            label="Tizen Custom Debian Project"
+            label="Tizen Platform Project"
             icon="icons/Tizen_Custom_Debian_ConfigurationType_Image.gif"
             modes="run,debug"
             class="org.tizen.nativeplatform.launch.ui.shortcut.TizenDebianProjectLaunchShortcut"
         </contextualLaunch>
         <description
             mode="run"
-            description="Runs a Tizen Custom Debian Project"/>
+            description="Runs a Tizen Platform Project"/>
         <description
             mode="debug"
-            description="Debugs a Tizen Custom Debian Project"/>
+            description="Debugs a Tizen Platform Project"/>
         <configurationType
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationType">
         </configurationType>
         </shortcut>
 
         <shortcut
-            label="Tizen Custom Debian Project - Attach"
+            label="Tizen Platform Project - Attach"
             icon="icons/Tizen_Custom_Debian_ConfigurationType_Image_Attach.gif"
             modes="debug"
             class="org.tizen.nativeplatform.launch.ui.shortcut.TizenDebianProjectAttachLaunchShortcut"
         </contextualLaunch>
         <description
             mode="debug"
-            description="Attach Debugs a Tizen Custom Debian Project"/>
+            description="Attach Debugs a Tizen Platform Project"/>
         <configurationType
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForAttach">
         </configurationType>
         </shortcut>
 
         <shortcut
-            label="Tizen Custom Debian Project - Coredump"
+            label="Tizen Platform Project - Coredump"
             icon="icons/Tizen_Custom_Debian_ConfigurationType_Image_Core.gif"
             modes="debug"
             class="org.tizen.nativeplatform.launch.ui.shortcut.TizenDebianProjectCoredumpLaunchShortcut"
         </contextualLaunch>
         <description
             mode="debug"
-            description="Coredump Debugs a Tizen Custom Debian Project"/>
+            description="Coredump Debugs a Tizen Platform Project"/>
         <configurationType
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForCore">
         </configurationType>
         <menuContribution
             locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
             <toolbar
-                id="org.tizen.nativeplatform.pkgInstall.pkgtoolbar">
+                id="org.tizen.nativecommon.manager.mgrtoolbar">
                 <command
                     commandId="org.tizen.nativeplatform.pkgInstall.commandid.rootstrapmgr"
                     icon="icons/package_installer.gif"
     <extension
         point="org.eclipse.ui.actionSets">
         <actionSet
-            label="Package Manager ActionSet"
+            label="Manager ActionSet"
             visible="true"
-            id="org.tizen.nativeplatform.pkginstall.actionset">
+            id="org.tizen.nativecommon.actionset">
             <menu
-                label="Package Manager"
-                path="additions"
-                id="org.tizen.nativeplatform.pkginstall.menuid">
+                label="Tizen Native Manager"
+                path="window/additions"
+                id="org.tizen.nativecommon.manager">
+                <separator name="slot"/>
             </menu>
             <action
                 id="org.tizen.nativeplatform.pkginstall.action"
                 label="Package Manager"
-                menubarPath="window/additions"
-                class="org.tizen.nativeplatform.pkgInstall.DialogActionDelegate">
+                menubarPath="window/org.tizen.nativecommon.manager/slot"
+                class="org.tizen.nativeplatform.pkgInstall.DialogActionDelegate"
+                icon="icons/package_installer.gif">
             </action>
         </actionSet>
     </extension>
+    <extension
+          point="org.eclipse.ui.popupMenus">
+
+        <objectContribution
+            adaptable="false"
+            id="org.tizen.nativeplatform.build.BuildPackageObjectContribution"
+            objectClass="org.eclipse.core.resources.IProject">
+            <action
+                  class="org.tizen.nativeplatform.build.BuildPackageObjectAction"
+                  enablesFor="+"
+                  id="org.tizen.nativeplatform.buildPackage.deb"
+                  label="Build Package"
+                  menubarPath="buildGroup">
+            </action>
+            <enablement>
+               <adapt
+                     type="org.eclipse.core.resources.IResource">
+                  <test
+                        property="org.tizen.nativecommon.projectBuildArtefactType"
+                        value="org.tizen.nativeide.buildArtefactType.platform">
+                  </test>
+               </adapt>
+            </enablement>
+        </objectContribution>          
+    </extension>
 <!-- package manager end -->
 </plugin>
index 27866a9..9ccdbff 100644 (file)
@@ -32,7 +32,6 @@ import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.osgi.framework.BundleContext;
 import org.tizen.nativecommon.build.ProjectTypeManager;
-import org.tizen.nativeplatform.build.CustomDebianProjectDependentBuilderOld;
 import org.tizen.nativeplatform.build.PlatformConfigurationManager;
 import org.tizen.nativeplatform.build.PlatformProjectDependentBuilder;
 import org.tizen.nativeplatform.build.PlatformProjectDependentPackager;
@@ -64,19 +63,16 @@ public class Activator extends AbstractUIPlugin {
                plugin = this;
                
                ProjectTypeManager.registerProjectArtifactType(
-                               PlatformConfigurationManager.OLD_SLP_CUSTOM_DEBIAN_ARTIFACT_TYPE
-                               CustomDebianProjectDependentBuilderOld.getInstance(),
+                               PlatformConfigurationManager.TIZEN_CUSTOM_DEBIAN_ARTIFACT_TYPE_OLD
+                               PlatformProjectDependentBuilder.getInstance(),
                                PlatformProjectDependentPackager.getInstance(),
-                               false);
+                               false);         
                
                ProjectTypeManager.registerProjectArtifactType(
                                PlatformConfigurationManager.TIZEN_CUSTOM_DEBIAN_ARTIFACT_TYPE, 
                                PlatformProjectDependentBuilder.getInstance(),
                                PlatformProjectDependentPackager.getInstance(),
                                true);
-               
-               //SLPProjectTypeManager.registerBuilder("SLP Custom Debian Package", CustomDebianProjectDependentBuilder.getInstance() );
-               //SLPProjectTypeManager.registerBuilder("SLP Inhouse Framework Package", InhouseFrameworkProjectDependentBuilder.getInstance() );
        }
 
        /*
diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/BuildPackageObjectAction.java b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/BuildPackageObjectAction.java
new file mode 100644 (file)
index 0000000..0f08bcb
--- /dev/null
@@ -0,0 +1,232 @@
+package org.tizen.nativeplatform.build;
+
+import java.io.File;
+import java.io.FilenameFilter;
+import java.lang.reflect.InvocationTargetException;
+
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.dialogs.ProgressMonitorDialog;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.TreeSelection;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+import org.eclipse.ui.PlatformUI;
+import org.tizen.nativecommon.build.CheckCancelJob;
+import org.tizen.nativecommon.build.CommonBuildMessages;
+import org.tizen.nativecommon.build.CommonBuildPackageFile;
+import org.tizen.nativecommon.build.CommonProjectDependentPackager;
+import org.tizen.nativecommon.build.ProjectTypeManager;
+import org.tizen.nativecommon.build.SmartBuildInterface;
+import org.tizen.nativecommon.build.exception.SBIException;
+import org.tizen.nativeplatform.Activator;
+
+public class BuildPackageObjectAction implements IWorkbenchWindowActionDelegate, IObjectActionDelegate {
+       protected IProject project;
+       protected IWorkbenchWindow window;
+       private IStatus status = null;
+       private String pkgType;
+
+       public BuildPackageObjectAction() {
+       }
+
+       public BuildPackageObjectAction(IProject project) {
+               this.project = project;
+       }
+
+       @Override
+       public void run(IAction action) {
+               
+               // get pkgType
+               IManagedBuildInfo info = ManagedBuildManager.getBuildInfo( project ) ;
+               IConfiguration defaultConfig = info.getDefaultConfiguration();
+               String toolchainType = "";
+               try {
+                       SmartBuildInterface sbi = SmartBuildInterface.getInstance();
+                       String targetID = PlatformConfigurationManager.getBuildTargetName( defaultConfig );
+                       toolchainType = sbi.getToolchainTypeFromToolchainID( sbi.getToolchainIDFromTargetID(targetID) );
+               } catch (SBIException e1) {
+               }
+               
+               if ( toolchainType.contains("tizen.obs") ) { 
+                       pkgType = "RPM";
+               } else {
+                       pkgType = "DEB";
+               }
+               
+               CommonBuildPackageFile.setPackageType(project, pkgType);
+               window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+               ProgressMonitorDialog dialog = new ProgressMonitorDialog(window.getShell());
+
+               try {
+                       dialog.run(true, true, new IRunnableWithProgress() {
+                               @Override
+                               public void run(IProgressMonitor monitor) throws InvocationTargetException,
+                                               InterruptedException {
+                                       status = null;
+                                       monitor.beginTask(CommonBuildMessages.PACKAGING_APPLICATION, -1);
+
+                                       CheckCancelJob cancelJob = new CheckCancelJob(monitor);
+                                       Thread checkCancelThread = new Thread(cancelJob);
+                                       checkCancelThread.start();
+
+                                       CommonProjectDependentPackager packager = ProjectTypeManager.getProjectPackagerInstance(project);
+
+                                       try {
+                                               if ( pkgType.equals("DEB") ) {
+                                                       monitor.subTask("Checking package dependency...");
+                                                       packager.buildPackageDependencyCheck();
+                                                       // check terminated
+                                                       if(cancelJob.getTerminateChecker()){
+                                                               cancelJob.setFinishFlag(true);
+                                                               monitor.done();
+                                                               return ;
+                                                       }
+       
+                                                       checkBuildPackageContinue checkContinueJob = new checkBuildPackageContinue();
+                                                       Display.getDefault().syncExec(checkContinueJob);
+                                                       while (checkContinueJob.getResult() == -1) {
+                                                       }
+                                                       if (checkContinueJob.getResult() == 0) {
+                                                               status = new Status(Status.OK, Activator.PLUGIN_ID, CommonBuildMessages.STOP_TO_BUILD_PACKAGE);
+                                                               monitor.done();
+                                                               return;
+                                                       }
+                                               }
+                                               
+                                               monitor.subTask("Building package...");
+                                               packager.buildPackage(pkgType);
+                                       } catch (SBIException e) {
+                                               e.printStackTrace();
+                                               status = new Status(Status.ERROR, Activator.PLUGIN_ID, CommonBuildMessages.FAIL_TO_BUILD_PACKAGE);
+                                               cancelJob.setFinishFlag(true);
+                                               monitor.done();
+                                               return;
+                                       } 
+
+                                       // check terminated
+                                       if(cancelJob.getTerminateChecker()){
+                                               cancelJob.setFinishFlag(true);
+                                               monitor.done();
+                                               return ;
+                                       }
+
+                                       monitor.done();
+                               }
+                       });
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
+
+               if (status != null) {
+                       if (status.isOK()) {
+                               MessageDialog.openInformation(window.getShell(), CommonBuildMessages.BUILD_RESULT, status.getMessage());
+                       } else {
+                               MessageDialog.openError(window.getShell(), CommonBuildMessages.BUILD_RESULT, status.getMessage());
+                       }
+               }
+
+
+               // refresh the project explorer
+               try {
+                       project.refreshLocal(IResource.DEPTH_INFINITE, null );
+               } catch (CoreException e) {
+                       e.printStackTrace();
+               }
+       }
+
+       protected File findFirstFilebyExtension(File searchPath, String ext) {
+               File[] allFiles = searchPath.listFiles(new ExtFilter(ext));
+               if (allFiles == null || allFiles.length == 0)
+                       return null;
+               return allFiles[0];
+       }
+
+       protected class ExtFilter implements FilenameFilter {
+               protected String ext;
+
+               public ExtFilter(String ext) {
+                       this.ext = ext;
+               }
+
+               public boolean accept(File dir, String name) {
+                       return name.endsWith(ext);
+               }
+       }
+
+       @Override
+       public void selectionChanged(IAction action, ISelection selection) {
+               Object obj = null;
+
+               if (selection instanceof TreeSelection) {
+                       TreeSelection _selection = (TreeSelection)selection;
+
+                       if (_selection != null) {
+                               obj = _selection.getFirstElement();
+                       }
+               }
+
+               if (obj != null) {
+                       if (obj instanceof IProject) {
+                               project = (IProject) obj;
+                       }
+               }
+       }
+
+       @Override
+       public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+               // do nothing
+       }
+
+       @Override
+       public void dispose() {
+               // do nothing
+       }
+
+       @Override
+       public void init(IWorkbenchWindow window) {
+               // do nothing
+       }
+
+       private class checkBuildPackageContinue implements Runnable {
+               private int result = -1;
+
+               public checkBuildPackageContinue() {
+               }
+
+               @Override
+               public void run() {
+                       synchronized(this) {
+                               // TODO Auto-generated method stub
+                               Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
+                               boolean bResult = MessageDialog.openQuestion(shell, "Question",
+                                               "Dependency checking has finished.\nDo you want to continue ?");
+                               if (bResult) {
+                                       result = 1;
+                               } else {
+                                       result = 0;
+                               }
+                       }
+               }
+
+               public int getResult() {
+                       return this.result;
+               }
+       };
+}
+
diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/CustomDebianConfigurationOld.java b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/CustomDebianConfigurationOld.java
deleted file mode 100644 (file)
index e81d998..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
-* Native Platform
-*
-* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
-*
-* Contact: 
-* Taejun Ha <taejun.ha@samsung.com>
-* Jiil Hyoun <jiil.hyoun@samsung.com>
-* Donghyuk Yang <donghyuk.yang@samsung.com>
-* Hoon Kang <h245.kang@samsung.com>  
-* DongHee Yang <donghee.yang@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.nativeplatform.build;
-
-import java.util.ArrayList;
-
-import org.eclipse.cdt.core.CCProjectNature;
-import org.eclipse.cdt.core.settings.model.ICResourceDescription;
-import org.eclipse.cdt.managedbuilder.core.BuildException;
-import org.eclipse.cdt.managedbuilder.core.IConfiguration;
-import org.eclipse.cdt.managedbuilder.core.IFileInfo;
-import org.eclipse.cdt.managedbuilder.core.IFolderInfo;
-import org.eclipse.cdt.managedbuilder.core.IResourceInfo;
-import org.eclipse.cdt.managedbuilder.core.ITool;
-import org.eclipse.cdt.managedbuilder.core.IToolChain;
-import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
-import org.eclipse.cdt.managedbuilder.internal.core.ToolChain;
-import org.eclipse.cdt.managedbuilder.tcmodification.IFolderInfoModification;
-import org.eclipse.cdt.managedbuilder.tcmodification.IToolChainModificationManager;
-import org.eclipse.cdt.managedbuilder.tcmodification.IToolListModification;
-import org.eclipse.cdt.managedbuilder.ui.properties.ManagedBuilderUIPlugin;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.tizen.nativecommon.build.CommonConfigurationOld;
-
-
-
-
-@SuppressWarnings("restriction")
-public class CustomDebianConfigurationOld extends CommonConfigurationOld
-{
-       // get compiler flags
-       public static String getAllCFlags( IConfiguration config )
-       {
-               return getAllCompilerFlags( config, SBI_BASE_C_COMPILER_TOOL_ID );      
-       }       
-
-       
-       public static String getAllCPPFlags( IConfiguration config ) 
-       {
-               return getAllCompilerFlags( config, SBI_BASE_CPP_COMPILER_TOOL_ID );    
-       }       
-
-
-       protected static String getAllCompilerFlags( IConfiguration config, String compilerId ) {
-               
-               ITool compilerTool = config.getToolsBySuperClassId(compilerId)[0];              
-               
-               String compilerFlags = "";              
-               
-               try {
-                       compilerFlags = compilerTool.getToolFlags();
-
-                       // skip "-c" option and replace double quotes
-                       String[] flags = compilerFlags.split(" ");
-                       compilerFlags = "";
-                       for( int i = 0; i < flags.length ; i ++ ) {
-                               
-                               if ( flags[i].compareTo("-c") == 0 ) {
-                                       continue;                               
-                               }                               
-
-                               flags[i] = flags[i].replace("\"", "\\\"");
-                               compilerFlags = compilerFlags + " " + flags[i];
-                       }
-               } catch (BuildException e) {
-                       e.printStackTrace();
-               }
-               
-               compilerFlags = compilerFlags.trim();
-               return compilerFlags;
-       }       
-       
-       
-       
-       
-       protected static boolean isCPPProject( IConfiguration config )
-       {
-               try {
-                       IProject project = (IProject)config.getOwner();
-
-                       if ( project.hasNature(  CCProjectNature.CC_NATURE_ID ) ) 
-                               return true;
-               } catch (CoreException e1) {
-                       e1.printStackTrace();
-               }
-
-               return false;
-       }
-       
-       
-       
-       public static void changeToolchain( IConfiguration config, ICResourceDescription cfgd, String toolchainNameInCfg) {              
-               IToolChainModificationManager tcmmgr = ManagedBuildManager.getToolChainModificationManager();
-               IToolChain[] r_tcs = ManagedBuildManager.getRealToolChains();
-               IToolChain[] v_tcs;
-               
-               IResourceInfo ri = config.getResourceInfo(cfgd.getPath(), false);
-               IToolListModification mod;
-               
-               if (ri instanceof IFolderInfo) {
-                       mod = tcmmgr.createModification((IFolderInfo)ri);
-               } else {
-                       mod =  tcmmgr.createModification((IFileInfo)ri);
-               }               
-               
-               IToolChain realToolChain = null;
-               if (ri instanceof IFolderInfo) {
-                       IToolChain toolChainInstance = ((IFolderInfoModification)mod).getToolChain();
-                       realToolChain = ManagedBuildManager.getRealToolChain(toolChainInstance);
-                       if (realToolChain==null)
-                               realToolChain = toolChainInstance;
-               }
-               
-               boolean isMng = config.getBuilder().isManagedBuildOn();
-               ArrayList<IToolChain> list = new ArrayList<IToolChain>();
-
-               IToolChain[] tcs = r_tcs;
-               IFolderInfoModification fim = (IFolderInfoModification)mod;
-               tcs = fim.getCompatibleToolChains();
-               IToolChain[] tcs1 = new IToolChain[tcs.length + 1];
-               System.arraycopy(tcs, 0, tcs1, 0, tcs.length);
-               tcs1[tcs.length] = realToolChain; // add existing toolchain
-               tcs = tcs1;             
-
-               for (IToolChain tc : tcs) {
-                       if ( tc.isSystemObject() && !(((ToolChain)tc).isPreferenceToolChain() && !isMng) ) {
-                               // NO TOOLCHAIN
-                               continue;
-                       }
-                       list.add(tc);
-               }
-               
-               v_tcs = list.toArray(new IToolChain[list.size()]);
-               int x = 0;              
-               IFolderInfoModification foim = (IFolderInfoModification)mod;            
-       
-               for (int i = 0 ; i < v_tcs.length ; i++) {
-                       if (v_tcs[i].getName().equals(toolchainNameInCfg)) {
-                               x = i;
-                               break;
-                       }
-               }
-               
-               IToolChain tc = v_tcs[x];
-               if (tc == null) return;
-               
-                               
-               foim.setToolChain(tc);
-                               
-               try {
-                       mod.apply();
-               } catch (CoreException e) {
-                       ManagedBuilderUIPlugin.log(e);
-               }               
-       }
-}
diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/CustomDebianProjectDependentBuilderOld.java b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/CustomDebianProjectDependentBuilderOld.java
deleted file mode 100644 (file)
index 1a1f77b..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
-* Native Platform
-*
-* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
-*
-* Contact: 
-* Taejun Ha <taejun.ha@samsung.com>
-* Jiil Hyoun <jiil.hyoun@samsung.com>
-* Donghyuk Yang <donghyuk.yang@samsung.com>
-* Hoon Kang <h245.kang@samsung.com>  
-* DongHee Yang <donghee.yang@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.nativeplatform.build;
-
-import org.eclipse.cdt.core.settings.model.ICResourceDescription;
-import org.eclipse.cdt.managedbuilder.core.IConfiguration;
-import org.eclipse.core.resources.IProject;
-import org.tizen.nativecommon.build.CommonProjectDependentBuilder;
-import org.tizen.nativecommon.build.exception.SBIException;
-
-
-public class CustomDebianProjectDependentBuilderOld extends CommonProjectDependentBuilder {
-
-       private static CustomDebianProjectDependentBuilderOld instance = new CustomDebianProjectDependentBuilderOld();
-
-       public static final CommonProjectDependentBuilder getInstance() {
-               return instance;
-       }
-
-       public static final CommonProjectDependentBuilder getInstance(IProject project) {
-               instance.setProject(project);
-               return instance;
-       }
-
-       private CustomDebianProjectDependentBuilderOld() {
-               super();
-       }
-
-       private CustomDebianProjectDependentBuilderOld(IProject project) {
-               super(project);
-       }
-
-       @Override
-       protected String getElfInfoOption() {
-               return "-s -W";
-       }
-
-       @Override
-       protected String getConfigureOption() {
-
-               String options = String.format(" ");
-
-               return options;
-       }
-
-       @Override
-       protected String getMakeOption() {
-               // TODO Auto-generated method stub
-               return "";
-       }
-
-       @Override
-       protected String getCleanOption() {
-               // TODO Auto-generated method stub
-               return "";
-       }
-
-       @Override
-       public String getTargetID() {
-               IConfiguration config = getConfiguration();
-               return CustomDebianConfigurationOld.getBuildTargetName(config);
-       }
-       
-       @Override
-       public String getTargetID(IConfiguration config) {              
-               return CustomDebianConfigurationOld.getBuildTargetName(config);
-       }
-
-       @Override
-       protected String getDebugOption(String[] arrOption) {
-               String gdbOptions = "-gdb-options=\'";
-               for (int i = 0 ; i < arrOption.length ; i++) {
-                       gdbOptions = gdbOptions.concat(arrOption[i] + " ");
-               }
-               gdbOptions = gdbOptions.concat("\' ");
-               
-               String sysroot="";
-               try {
-                       sysroot = String.format("-sysroot=%s", getSbi().getRootstrapPath(getTargetID()) );
-               } catch (SBIException e) {
-                       e.printStackTrace();
-               }
-               
-               return gdbOptions + sysroot;
-       }
-
-       @Override
-       public void setBuildTargetID(IConfiguration config, String targetId) {
-               CustomDebianConfigurationOld.setBuildTargetName(config, targetId);              
-       }
-
-       @Override
-       public void setToolCommand(IConfiguration config, String rootstrapCfgName) {
-               CustomDebianConfigurationOld.setToolCommand(config, rootstrapCfgName);          
-       }
-
-       @Override
-       public void changeToolchain(IConfiguration config,
-                       ICResourceDescription cfgd, String toolchainNameInCfg) {
-               CustomDebianConfigurationOld.changeToolchain(config, cfgd, toolchainNameInCfg);         
-       }
-
-}
index 66360c7..65e704e 100644 (file)
@@ -59,13 +59,13 @@ public class PlatformConfigurationManager extends CommonConfigurationManager
 {
        // ProjectInfo
        public static final String CURRENT_SLP_PROJECT_VERSION = "1.0.0";
-       public static final String TIZEN_CUSTOM_DEBIAN_ARTIFACT_TYPE = "com.samsung.slp.nativeide.buildArtefactType.cdeb";
+       public static final String TIZEN_CUSTOM_DEBIAN_ARTIFACT_TYPE = "org.tizen.nativeide.buildArtefactType.platform";        
        public static final String OLD_SLP_CUSTOM_DEBIAN_ARTIFACT_TYPE = "com.samsung.slp.project.custom.debian";
 
-       // SBI Compatibility
-       public static  final String SBI_PROJECT_TYPE_ID = "com.samsung.slp.nativebuild.target.sbi.gcc45sbox2.cdeb";
-       public static  final String SBI_DEFAULT_I386_CONFIGRATION_ID = "com.samsung.slp.nativeide.config.sbi.gcc45sbox2.cdeb.emulator";
-       public static  final String SBI_DEFAULT_ARM_CONFIGRATION_ID = "com.samsung.slp.nativeide.config.sbi.gcc45sbox2.cdeb.device";
+       // SBI Compatibility    
+       public static  final String SBI_PROJECT_TYPE_ID = "org.tizen.nativebuild.target.sbi.gcc45.platform";
+       public static  final String SBI_DEFAULT_I386_CONFIGRATION_ID = "org.tizen.nativeide.config.sbi.gcc45.platform.emulator";
+       public static  final String SBI_DEFAULT_ARM_CONFIGRATION_ID = "org.tizen.nativeide.config.sbi.gcc45.platform.device";   
        public static  final String SBI_DEFAULT_TARGET_NAME = "tizen-device-1.0.sb2_gcc45sbox2.armel.cdeb";
        public static  final String SBI_ARM_TOOLCHAIN_NAME = "gcc45sbox2.armel.cdeb";
        public static  final String SBI_ARM_SBOX2_TOOLCHAIN_NAME = "gcc45sbox2.armel.cdeb";
@@ -73,27 +73,36 @@ public class PlatformConfigurationManager extends CommonConfigurationManager
        public static  final String SBI_I386_TOOLCHAIN_NAME = "gcc45sbox2.i386.cdeb";
        public static  final String SBI_I386_SBOX2_TOOLCHAIN_NAME = "gcc45sbox2.i386.cdeb";
        public static  final String SBI_I386_ROOTSTRAP_NAME = "tizen-emulator-1.0.sb2";
-
+       
+       public static final  String TIZEN_CUSTOM_DEBIAN_ARTIFACT_TYPE_OLD = "com.samsung.slp.nativeide.buildArtefactType.cdeb";
+       public static  final String SBI_PROJECT_TYPE_ID_OLD = "com.samsung.slp.nativebuild.target.sbi.gcc45sbox2.cdeb";
+       public static  final String SBI_DEFAULT_I386_CONFIGRATION_ID_OLD = "com.samsung.slp.nativeide.config.sbi.gcc45sbox2.cdeb.emulator";
+       public static  final String SBI_DEFAULT_ARM_CONFIGRATION_ID_OLD = "com.samsung.slp.nativeide.config.sbi.gcc45sbox2.cdeb.device";
+       
        // get compiler flags
        public static String getAllCFlags( IConfiguration config )
        {
+               String c_compiler_id = SBI_BASE_C_COMPILER_TOOL_ID;
+               
                // TODO: should be removed
                if ( isOldConfiguration(config) ) {
-                       return CustomDebianConfigurationOld.getAllCFlags(config);
+                       c_compiler_id = SBI_BASE_C_COMPILER_TOOL_ID_OLD;
                }
 
-               return getAllCompilerFlags( config, SBI_BASE_C_COMPILER_TOOL_ID );      
+               return getAllCompilerFlags( config, c_compiler_id );    
        }       
 
        
        public static String getAllCPPFlags( IConfiguration config ) 
        {
+               String cpp_compiler_id = SBI_BASE_CPP_COMPILER_TOOL_ID;
+               
                // TODO: should be removed
                if ( isOldConfiguration(config) ) {
-                       return CustomDebianConfigurationOld.getAllCPPFlags(config);
+                       cpp_compiler_id = SBI_BASE_CPP_COMPILER_TOOL_ID_OLD;
                }
 
-               return getAllCompilerFlags( config, SBI_BASE_CPP_COMPILER_TOOL_ID );    
+               return getAllCompilerFlags( config, cpp_compiler_id );  
        }       
 
 
@@ -145,12 +154,7 @@ public class PlatformConfigurationManager extends CommonConfigurationManager
        
        
        
-       public static void changeToolchain( IConfiguration config, ICResourceDescription cfgd, String toolchainNameInCfg) {              
-               // TODO: should be removed
-               if ( isOldConfiguration(config) ) {
-                       CustomDebianConfigurationOld.changeToolchain(config, cfgd, toolchainNameInCfg );
-                       return;
-               }
+       public static void changeToolchain( IConfiguration config, ICResourceDescription cfgd, String toolchainNameInCfg) {
 
                IToolChainModificationManager tcmmgr = ManagedBuildManager.getToolChainModificationManager();
                IToolChain[] r_tcs = ManagedBuildManager.getRealToolChains();
index 2276e20..eda8b6d 100644 (file)
@@ -51,15 +51,6 @@ public class PlatformMakeGenerator implements IManagedBuilderMakefileGenerator2
        private IProject project;
        private IPath topBuildDir;      
        private IConfiguration config;
-       
-       public final static String SBI_MESSAGE_NEED_PROJECT_CONVERSION = 
-                       "Old project type detected!\nPlease upgrade your project.\n" +
-                       " 1. Open the popup-menu by clicking right mouse button on your project\n" +
-                       " 2. Select \"Convert To...\" menu item to open a project converter dialog.\n" + 
-                       " 3. Select \"Upgrade Tizen .....\" item on the dialog.\n" +
-                       " 4. Check if all project options are set correctly.\n" + 
-                       "     (Some options may not be transferred automatically)";
-
 
        @Override
        public void generateDependencies() throws CoreException {
@@ -68,21 +59,8 @@ public class PlatformMakeGenerator implements IManagedBuilderMakefileGenerator2
 
        @Override
        public MultiStatus generateMakefiles(IResourceDelta delta)
-                       throws CoreException {
-
-               if (  PlatformConfigurationManager.isOldConfiguration( config ) ) {
-                       
-                       //SBIException ex =  new SBIException(SLPApplicationProjectConverter.SBI_MESSAGE_NEED_PROJECT_CONVERSION);
-                       SBIException ex =  new SBIException(SBI_MESSAGE_NEED_PROJECT_CONVERSION);
-                       ex.showErrorDialog();
-                       
-                       throw new CoreException( new MultiStatus(
-                                       ManagedBuilderCorePlugin.getUniqueIdentifier(),
-                                       IStatus.ERROR,
-                                       new String(String.format("Build failed! Please upgrade project!" )),
-                                       null) );
-               }
-
+                       throws CoreException {          
+               
                // if Makefile does not  exist, regenerate "Makefile"
                IFolder configDir = project.getFolder( config.getName() );
                if ( !configDir.exists() ) 
@@ -99,7 +77,7 @@ public class PlatformMakeGenerator implements IManagedBuilderMakefileGenerator2
        public IPath getBuildWorkingDir() {
                // return project folder
                if ( topBuildDir != null ) {
-                       return topBuildDir.removeFirstSegments(1).removeLastSegments(1);
+                       return topBuildDir.removeFirstSegments(1);
                }
                return null;
        }
@@ -130,20 +108,7 @@ public class PlatformMakeGenerator implements IManagedBuilderMakefileGenerator2
        }
 
        @Override
-       public MultiStatus regenerateMakefiles() throws CoreException {
-               
-               if ( PlatformConfigurationManager.isOldConfiguration( config ) ) {
-                       
-                       //SBIException ex =  new SBIException(SLPApplicationProjectConverter.SBI_MESSAGE_NEED_PROJECT_CONVERSION);
-                       SBIException ex =  new SBIException(SBI_MESSAGE_NEED_PROJECT_CONVERSION);
-                       ex.showErrorDialog();
-       
-                       throw new CoreException( new MultiStatus(
-                                       ManagedBuilderCorePlugin.getUniqueIdentifier(),
-                                       IStatus.ERROR,
-                                       new String(String.format("Build failed! Please upgrade project!" )),
-                                       null) );
-               }
+       public MultiStatus regenerateMakefiles() throws CoreException {         
 
                // Check topdir folder exist
                topBuildDir = createDirectory(config.getName());
index 819f040..9d0e0c1 100644 (file)
@@ -89,7 +89,8 @@ public class PlatformProjectConverter implements IConvertManagedBuildObject {
                        }
                        
                        Configuration newConfig = createNewConfiguration( config , toId );
-                       String newTargetName = getNewBuildTargetName( config , toId );
+                       //String newTargetName = getNewBuildTargetName( config , toId );
+                       String newTargetName = PlatformConfigurationManager.getBuildTargetName(config);
                                
                                // target name
                                        if (!sbi.checkTargetID(newTargetName)) {                                        
@@ -131,9 +132,9 @@ public class PlatformProjectConverter implements IConvertManagedBuildObject {
                
                Configuration parentConfig = null;
                if ( toId.equals(PlatformConfigurationManager.SBI_PROJECT_TYPE_ID) ) {
-                       if ( config.getParent().getId().contains("custom.debian.emulator") ) {
+                       if ( config.getParent().getId().contains("emulator") ) {
                                parentConfig =  (Configuration)ManagedBuildManager.getExtensionConfiguration( PlatformConfigurationManager.SBI_DEFAULT_I386_CONFIGRATION_ID );
-                       } else if ( config.getParent().getId().contains("custom.debian.device") ) {
+                       } else if ( config.getParent().getId().contains("device") ) {
                                parentConfig = (Configuration) ManagedBuildManager.getExtensionConfiguration( PlatformConfigurationManager.SBI_DEFAULT_ARM_CONFIGRATION_ID );
                        } else {
                                parentConfig =  (Configuration)ManagedBuildManager.getExtensionConfiguration( PlatformConfigurationManager.SBI_DEFAULT_ARM_CONFIGRATION_ID );
@@ -157,7 +158,7 @@ public class PlatformProjectConverter implements IConvertManagedBuildObject {
                return newConfig;
        }
 
-       
+       /*
        protected String getNewBuildTargetName( IConfiguration config , String toId ) {
                String newTargetName = null;
                
@@ -179,5 +180,6 @@ public class PlatformProjectConverter implements IConvertManagedBuildObject {
                
                return newTargetName;
        }
+       */ 
 
 }
index fb248c3..4245c13 100644 (file)
@@ -3,13 +3,13 @@
 *
 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * Taejun Ha <taejun.ha@samsung.com>
 * Jiil Hyoun <jiil.hyoun@samsung.com>
 * Donghyuk Yang <donghyuk.yang@samsung.com>
-* Hoon Kang <h245.kang@samsung.com>  
+* Hoon Kang <h245.kang@samsung.com>
 * DongHee Yang <donghee.yang@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
@@ -31,8 +31,14 @@ package org.tizen.nativeplatform.build;
 import org.eclipse.cdt.managedbuilder.core.IConfiguration;
 import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
 import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.window.Window;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.PlatformUI;
 import org.tizen.nativecommon.build.CommonProjectDependentPackager;
 import org.tizen.nativecommon.build.exception.SBIException;
+import org.tizen.nativecommon.build.obs.PasswordInputDialog;
+import org.tizen.nativecommon.build.obs.UserInformation;
 
 
 public class PlatformProjectDependentPackager extends CommonProjectDependentPackager {
@@ -57,63 +63,99 @@ public class PlatformProjectDependentPackager extends CommonProjectDependentPack
        }
 
        @Override
-       public String getPackageOption() {
+       public String getPackageOption(String pkgType) {
                String workingDir = getWorkingDir();
 
                String options = String.format(
-                               "-WORKING_DIR=%s",
-                               workingDir );
+                               "-WORKING_DIR=%s" +
+                               " -PKG_TYPE=%s" , 
+                               workingDir ,
+                               pkgType );
 
                return options;
        }
-       
+
        @Override
-       public String getPackageOption(IConfiguration config) {
+       public String getPackageOption(IConfiguration config, String pkgType) {
                String workingDir = getWorkingDir(config);
 
                String options = String.format(
-                               "-WORKING_DIR=%s",
-                               workingDir );
+                               "-WORKING_DIR=%s" +
+                               " -PKG_TYPE=%s" , 
+                               workingDir ,
+                               pkgType );
 
                return options;
        }
-       
-       public void buildPackage() throws SBIException {
-               
+
+       public boolean openPasswordDialog(String pkgType){
+               if( UserInformation.isSavePassword() || !RPM.equals(pkgType)){
+                       return true;
+               }
+               Display display = PlatformUI.getWorkbench().getDisplay();
+               display.syncExec(new Runnable() {
+                       @Override
+                       public void run() {
+                               Shell shell = PlatformUI.getWorkbench().getDisplay().getShells()[0];
+                               PasswordInputDialog passwordDialog = new PasswordInputDialog(shell, "Input password");
+                               if( passwordDialog.open() == Window.OK){
+                                       UserInformation.setRootPassword(passwordDialog.getPassword());
+                                       UserInformation.setSavePassword(passwordDialog.isSavePassword());
+                                       isDialogCancel = false;
+                               }
+                               else{
+                                       isDialogCancel = true;
+                               }
+                       }
+               });
+               if( isDialogCancel){
+                       return false;
+               }
+               else{
+                       return true;
+               }
+       }
+
+       public void buildPackage(String pkgType) throws SBIException {
                String targetID = getTargetID();
                String projectDir = getProjectPath();
-               String options = getPackageOption();                            
-               
-               sbi.actionConsole("buildpackage", options, targetID, projectDir, "Packaging" ); 
-       }
-       
-       
-       public void buildPackage(String configName) throws SBIException {
-               
+               String options = getPackageOption(pkgType);
+
+               if( openPasswordDialog(pkgType)){
+                       sbi.setProject(project);
+                       sbi.actionConsole("buildpackage", options, targetID, projectDir, "Packaging" );
+               }
+       }
+
+
+       public void buildPackage(String configName, String pkgType) throws SBIException {
                IConfiguration[] configurations = ManagedBuildManager.getBuildInfo(project).getManagedProject().getConfigurations();
                IConfiguration config = null;
-               
+
                for (IConfiguration c : configurations) {
                        if (c.getName().equals(configName) ) {
                                config = c;
                                break;
                        }
                }
-               
+
                String targetID = getTargetID(config);
                String projectDir = getProjectPath();
-               String options = getPackageOption(config);
+               String options = getPackageOption(config, pkgType);
 
-               sbi.actionConsole("buildpackage", options, targetID, projectDir, "Packaging" ); 
+               if( openPasswordDialog(pkgType)) {
+                       sbi.setProject(project);
+                       sbi.actionConsole("buildpackage", options, targetID, projectDir, "Packaging" );
+               }
        }
-       
-       public void buildPackageDependencyCheck() throws SBIException {         
-               
+
+       public void buildPackageDependencyCheck() throws SBIException {
+
                String targetID = getTargetID();
                String projectDir = getProjectPath();
                String options = getPackageDependencyCheckOption();
-               
-               sbi.actionConsole("checkbuilddeps", options, targetID, projectDir, "Packaging" ); 
+
+               sbi.actionConsole("checkbuilddeps", options, targetID, projectDir, "Packaging" );
        }
 
        @Override
@@ -121,12 +163,12 @@ public class PlatformProjectDependentPackager extends CommonProjectDependentPack
                IConfiguration config = getConfiguration();
                return PlatformConfigurationManager.getBuildTargetName(config);
        }
-       
+
        @Override
-       public String getTargetID(IConfiguration config) {              
+       public String getTargetID(IConfiguration config) {
                return PlatformConfigurationManager.getBuildTargetName(config);
        }
-       
+
        @Override
        public boolean isDependencyCheckSuppoted() {
                return true;
@@ -135,7 +177,7 @@ public class PlatformProjectDependentPackager extends CommonProjectDependentPack
        @Override
        protected String getPackageDependencyCheckOption() {
                return "";
-       }       
+       }
 
        @Override
        public boolean isPackageCheckSuppoted() {
@@ -143,7 +185,7 @@ public class PlatformProjectDependentPackager extends CommonProjectDependentPack
        }
 
        @Override
-       public boolean checkPackageFile() {     
+       public boolean checkPackageFile(String pkgType) {
                return false;
        }
 }
index 444ec90..8bdbe25 100644 (file)
@@ -48,7 +48,6 @@ import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.ui.dialogs.TwoPaneElementSelector;
-
 import org.tizen.common.connection.debugtools.DebugTool;
 import org.tizen.nativecommon.launch.TizenDeviceProcessList;
 import org.tizen.nativecommon.launch.TizenLaunchConfigurationConstants;
index a091794..bc89675 100644 (file)
@@ -97,7 +97,6 @@ public class PackageCommander {
                if (device != null) {
                        try {
                                device.executeShellCommand(command);
-                               //result = session.run(command, null);
                        } catch (Exception e) {
                                // TODO Auto-generated catch block
                                e.printStackTrace();
@@ -283,7 +282,7 @@ public class PackageCommander {
                        return ;
                }
                
-               String command = "apt-get -f --force-yes -y install";
+               String command = "apt-get -f -y install";
                try {
                        sbi.actionStream("command", 
                                        String.format("-mode=emulate -cmd=\'%s\' -path=.", command ),
@@ -295,7 +294,7 @@ public class PackageCommander {
        }
        
        public static void fixBrokenForRealTarget(IDevice device, PackageManagerOuputReceiver rec) {
-               String command = "apt-get -f --force-yes -y install";
+               String command = "apt-get -f -y install";
                
                if (device != null) {
                        try {
@@ -372,6 +371,10 @@ public class PackageCommander {
                if (targetID == null) {
                        return "";
                }
+               
+               if (!existPkgOnRemoteForRootstrap(pkgName, targetID)) {
+                       return retStr;
+               }
                                
                try {
                        String command = String.format("apt-cache show %s | grep \"Architecture: \"", pkgName);
@@ -393,8 +396,6 @@ public class PackageCommander {
                        retStr = splitResult[1].trim();
                        
                } catch (SBIException e) {
-                       // TODO Auto-generated catch block
-                       //e.printStackTrace();
                }               
                
                return retStr;
@@ -418,14 +419,18 @@ public class PackageCommander {
                String retStr = "";
                String archKey = "Architecture: ";
                if (device != null) {
+                       if (!existPkgOnRemoteForRealTarget(pkgName, device, rec)) {
+                               return retStr;
+                       }
+                       
                        try {
                                String result = "";
                                String command = String.format("apt-cache show %s | grep \"Architecture: \"", pkgName);
+                               rec.cleanLog();
                                device.executeShellCommand(command, rec, MAX_TIMEOUT);
                                for(String line : rec.getLog()) {
                                        result = result + line + "\n";
-                               }
-                               //String result = session.run(command, null);           
+                               }               
                        
                                retStr = getValue(result,archKey);
                        } catch (Exception e) {
@@ -484,6 +489,10 @@ public class PackageCommander {
                if (targetID == null) {
                        return "";
                }
+               
+               if (!existPkgOnRemoteForRootstrap(pkgName, targetID)) {
+                       return retStr;
+               }
 
                try {
                        String command = String.format("apt-cache showpkg %s | grep -A 1 \"Versions:\"", pkgName);
@@ -499,10 +508,8 @@ public class PackageCommander {
                        
                        if (splitResult.length < 2 ) {
                                return retStr;
-                       }
-                       
-                       //splitResult = splitResult[1].split(" ")[0].split(":");
-                       //retStr = splitResult[splitResult.length-1].trim();
+                       }                       
+
                        retStr = splitResult[1].split(" ")[0];
                } catch (SBIException e) {
                        e.printStackTrace();
@@ -514,10 +521,14 @@ public class PackageCommander {
                String retStr = "";             
 
                if (device != null) {
+                       if (!existPkgOnRemoteForRealTarget(pkgName, device, rec)) {
+                               return retStr;
+                       }
+                       
                        try {                   
                                String result = "";
                                String command = String.format("apt-cache showpkg %s | grep -A 1 \"Versions:\"", pkgName);
-                               //String result = session.run(command, null);
+                               rec.cleanLog();
                                device.executeShellCommand(command, rec, MAX_TIMEOUT);
                                
                                for (String line : rec.getLog()) {
@@ -534,9 +545,7 @@ public class PackageCommander {
                                        return retStr;
                                }
                                
-                               //splitResult = splitResult[1].split(" ")[0].split(":");
-                               retStr = splitResult[1].split(" ")[0];
-                               //retStr = splitResult[splitResult.length-1].trim();
+                               retStr = splitResult[1].split(" ")[0];                          
                                
                        } catch (Exception e1) {
                                e1.printStackTrace();
@@ -553,8 +562,11 @@ public class PackageCommander {
                        return "";
                }
                
+               if (!pkgInstalledSuccessfullyForRootstrap(pkgName, targetID)) {
+                       return retStr;
+               }
+               
                try {
-
                        String command = String.format("dpkg -s %s | grep \"Version: \"", pkgName);     
                        
                        String result = sbi.actionStdOut("command", 
@@ -569,10 +581,8 @@ public class PackageCommander {
                        String[] splitResult = result.split(" ");
                        if (splitResult.length < 2) {
                                return retStr;
-                       }
-                               
-                       //splitResult = splitResult[1].split(" ")[0].split(":");
-                       //retStr = splitResult[splitResult.length-1].replace("\n", "").trim();
+                       }                               
+
                        retStr = splitResult[1].split(" ")[0];
                } catch (SBIException e) {
                        e.printStackTrace();
@@ -585,14 +595,18 @@ public class PackageCommander {
                String archKey = "Version: ";           
                String retStr = "";
                if (device != null) {
-                       try {
-                               String command = String.format("dpkg -s %s | grep \"Version: \"", pkgName);
+                       if (!pkgInstalledSuccessfullyForRealTarget(pkgName, device, rec)) {
+                               return retStr;
+                       }
+                       
+                       try {                           
                                String result = "";
+                               String command = String.format("dpkg -s %s | grep \"Version: \"", pkgName);
+                               rec.cleanLog();
                                device.executeShellCommand(command, rec, MAX_TIMEOUT);
                                for (String line : rec.getLog()) {
                                        result = result + line + "\n";
                                }
-                               //String result = session.run(command, null);
                                
                                retStr = getValue(result,archKey);                              
                                
@@ -650,4 +664,43 @@ public class PackageCommander {
                
                return ret;     
        }
+       
+       public static boolean existPkgOnRemoteForRootstrap(String pkgName, String targetID) {
+               boolean bRet = false;
+               try {
+                       String command = String.format("apt-cache search ^%s$", pkgName);
+                       String result = sbi.actionStdOut("command", 
+                                       String.format("-mode=emulate -cmd=\'%s\' -path=.", command),
+                                       targetID, null);
+                       
+                       for (String line : result.split("\n")) {
+                               String l = line.split(" - ")[0];
+                               if (l.equals(pkgName)) {
+                                       bRet = true;
+                               }
+                       }
+               } catch (SBIException e) { 
+               }
+               
+               return bRet;
+       }
+       
+       public static boolean existPkgOnRemoteForRealTarget(String pkgName, IDevice device, PackageManagerOuputReceiver rec) {
+               boolean bRet = false;
+               try {
+                       String command = String.format("apt-cache search ^%s$", pkgName);
+                       device.executeShellCommand(command, rec, MAX_TIMEOUT);
+                       
+                       for (String line : rec.getLog()) {
+                               String l = line.split(" - ")[0];
+                               if (l.equals(pkgName)) {
+                                       bRet = true;
+                               }
+                       }
+               } catch (Exception e) {                 
+               }
+               
+               return bRet;
+       }
+       
 }
index aa02f4d..dd65f21 100644 (file)
@@ -37,8 +37,10 @@ import java.util.concurrent.CopyOnWriteArrayList;
 import org.eclipse.cdt.managedbuilder.core.IConfiguration;
 import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
 import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.FileLocator;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.core.runtime.Platform;
 import org.eclipse.jface.dialogs.Dialog;
 import org.eclipse.jface.dialogs.IDialogConstants;
 import org.eclipse.jface.dialogs.MessageDialog;
@@ -54,6 +56,7 @@ import org.eclipse.swt.events.MouseListener;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
 import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Rectangle;
 import org.eclipse.swt.layout.FillLayout;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -74,6 +77,7 @@ import org.eclipse.swt.widgets.TableItem;
 import org.eclipse.swt.widgets.Text;
 import org.eclipse.ui.console.MessageConsoleStream;
 
+import org.osgi.framework.Bundle;
 import org.tizen.common.connection.ConnectionPlugin;
 import org.tizen.common.console.ConsoleManager;
 
@@ -134,7 +138,12 @@ public class PackageManager extends Dialog {
        private boolean enableRootstrapTab = true;
        private boolean enableTargetTab = true;
        
-       private final int MAX_TIMEOUT = 60000;
+       private final int MAX_TIMEOUT = 150000;
+       
+       private int x = 0;
+       private int y = 0;
+       private final int width = 960;
+       private final int height = 600;
        
        private SmartBuildInterface sbi = SmartBuildInterface.getInstance(); 
 
@@ -201,6 +210,10 @@ public class PackageManager extends Dialog {
                this.display = parentShell.getDisplay();
                this.target = target;
                this.device = ConnectionPlugin.getDefault().getCurrentDevice(); 
+               
+               Rectangle bounds = parentShell.getBounds();
+        x = bounds.x + (bounds.width - width)/2;
+        y = bounds.y + (bounds.height - height)/2;
        }
        
        protected PackageManager(Shell parentShell, String target, boolean enableRootstrap, boolean enableTarget) {
@@ -209,7 +222,7 @@ public class PackageManager extends Dialog {
                this.enableRootstrapTab = enableRootstrap;
                this.enableTargetTab = enableTarget;
                this.display = parentShell.getDisplay();        
-               
+        
                if (enableRootstrap) {
                        IProject _project = CurrentEnabledProject.getCurrentProject();
                        IConfiguration config = ManagedBuildManager.getBuildInfo( _project ).getDefaultConfiguration();
@@ -219,6 +232,10 @@ public class PackageManager extends Dialog {
                        this.target = target;
                        this.device = ConnectionPlugin.getDefault().getCurrentDevice();
                }
+               
+               Rectangle bounds = parentShell.getBounds();
+        x = bounds.x + (bounds.width - width)/2;
+        y = bounds.y + (bounds.height - height)/2;
        }       
        
        protected PackageManager(Shell parentShell, String target, int tabIndex) {
@@ -228,6 +245,18 @@ public class PackageManager extends Dialog {
                this.target = target;
                this.device = ConnectionPlugin.getDefault().getCurrentDevice();
                this.tabIndex = tabIndex;
+               
+               Rectangle bounds = parentShell.getBounds();
+        x = bounds.x + (bounds.width - width)/2;
+        y = bounds.y + (bounds.height - height)/2;
+       }
+       
+       private void setImage(Shell parentShell) {
+               try {
+                       Bundle bundle = Platform.getBundle(Activator.PLUGIN_ID);
+                       parentShell.setImage(new Image(Display.getCurrent(), FileLocator.toFileURL(bundle.getEntry("icons/package_installer.gif")).getPath()));
+               } catch (Exception e) {
+               }
        }
        
        protected void setShellStyle(int newShellStyle) {
@@ -253,8 +282,9 @@ public class PackageManager extends Dialog {
        protected void configureShell(Shell newShell) {
                super.configureShell(newShell);
                newShell.setText("Package Manager");
-               newShell.setLocation(100, 100);
-               newShell.setSize(960, 600);
+               newShell.setLocation(x, y);
+               newShell.setSize(width, height);
+               setImage(newShell);
        }
        
        @Override
@@ -267,7 +297,7 @@ public class PackageManager extends Dialog {
 
                if (!enableRootstrapTab && !enableTargetTab) {
                        createError( composite, "- Any project is not selected and any connection is not connected,\n" +
-                                       "- or project is not \"CUSTOM DEBIAN PROJECT\"." );
+                                       "- or project is not \"PLATFORM PROJECT\"." );
                } else {                
                        //2nd basement : Sourcelist + update button
                        createTopComposite( composite );
@@ -356,8 +386,8 @@ public class PackageManager extends Dialog {
                                                        
                                                        ConsoleManager cm = new ConsoleManager( "Package Installer", true);
                                                        cm.clear();
-                                                       MessageConsoleStream mcsError = cm.getMessageConsoleStream(true);
-                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream(false);
+                                                       MessageConsoleStream mcsError = cm.getMessageConsoleStream();
+                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream();
                                                        PackageManagerOuputReceiver rec = new PackageManagerOuputReceiver();
                                                        rec.setMessageConsoleStream(mcs);
                                                        
@@ -718,10 +748,10 @@ public class PackageManager extends Dialog {
                                                        
                                                        ConsoleManager cm = new ConsoleManager( "Package Installer", true);
                                                        cm.clear();
-                                                       MessageConsoleStream mcsError = cm.getMessageConsoleStream(true);
-                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream(false);                           
-                                                       MessageConsoleStream mcsError1 = cm.getMessageConsoleStream(true);
-                                                       MessageConsoleStream mcs1 = cm.getMessageConsoleStream(false);                                                  
+                                                       MessageConsoleStream mcsError = cm.getMessageConsoleStream();
+                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream();                                
+                                                       MessageConsoleStream mcsError1 = cm.getMessageConsoleStream();
+                                                       MessageConsoleStream mcs1 = cm.getMessageConsoleStream();                                                       
                                                        String targetID = getTargetID();                                                        
 
                                                        monitor.subTask("apt-get -f -y install");                                                       
@@ -784,12 +814,12 @@ public class PackageManager extends Dialog {
                                                                
                                                                ConsoleManager cm = new ConsoleManager( "Installing packages", true);
                                                                cm.clear();
-                                                               MessageConsoleStream mcsError = cm.getMessageConsoleStream(true);
-                                                               MessageConsoleStream mcs = cm.getMessageConsoleStream(false);
-                                                               MessageConsoleStream mcsError1 = cm.getMessageConsoleStream(true);
-                                                               MessageConsoleStream mcs1 = cm.getMessageConsoleStream(false);                                                          
-                                                               MessageConsoleStream mcsError2 = cm.getMessageConsoleStream(true);
-                                                               MessageConsoleStream mcs2 = cm.getMessageConsoleStream(false);                                                          
+                                                               MessageConsoleStream mcsError = cm.getMessageConsoleStream();
+                                                               MessageConsoleStream mcs = cm.getMessageConsoleStream();
+                                                               MessageConsoleStream mcsError1 = cm.getMessageConsoleStream();
+                                                               MessageConsoleStream mcs1 = cm.getMessageConsoleStream();                                                               
+                                                               MessageConsoleStream mcsError2 = cm.getMessageConsoleStream();
+                                                               MessageConsoleStream mcs2 = cm.getMessageConsoleStream();                                                               
                                                                
                                                                for (Package pkg : pkgs) {                                                              
                                                                        if (pkg.getPkgType().equals(Package.PKGTYPE.LOCAL)) {
@@ -883,8 +913,8 @@ public class PackageManager extends Dialog {
                                                        String targetID = getTargetID();
                                                        ConsoleManager cm = new ConsoleManager( "Fix broken dependencies", true);
                                                        cm.clear();
-                                                       MessageConsoleStream mcsError = cm.getMessageConsoleStream(true);
-                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream(false);
+                                                       MessageConsoleStream mcsError = cm.getMessageConsoleStream();
+                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream();
                                                        PackageCommander.fixBrokenForRootstrap(targetID, mcs, mcsError);
                                                        monitor.done();
                                                }
@@ -962,7 +992,7 @@ public class PackageManager extends Dialog {
                                                        
                                                        ConsoleManager cm = new ConsoleManager( "Package Installer", true);
                                                        cm.clear();
-                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream(false);
+                                                       MessageConsoleStream mcs = cm.getMessageConsoleStream();
                                                        PackageManagerOuputReceiver rec = new PackageManagerOuputReceiver();
                                                        rec.setMessageConsoleStream(mcs);                                                       
 
@@ -1016,8 +1046,8 @@ public class PackageManager extends Dialog {
                                                                String newPath = null;
                                                                ConsoleManager cm = new ConsoleManager( "Package Installer", true);
                                                                cm.clear();
-                                                               MessageConsoleStream mcsError = cm.getMessageConsoleStream(true);
-                                                               MessageConsoleStream mcs = cm.getMessageConsoleStream(false);
+                                                               MessageConsoleStream mcsError = cm.getMessageConsoleStream();
+                                                               MessageConsoleStream mcs = cm.getMessageConsoleStream();
                                                                PackageManagerOuputReceiver rec = new PackageManagerOuputReceiver();
                                                                rec.setMessageConsoleStream(mcs);
                                                                String command = null;
@@ -1087,6 +1117,8 @@ public class PackageManager extends Dialog {
                                                                if (monitor.isCanceled())
                                                                        throw new OperationCanceledException();
                                                                
+                                                               Thread.sleep(500);
+                                                               
                                                                for (Package pkg : pkgs) {
                                                                        if (monitor.isCanceled())
                                                                                throw new OperationCanceledException();
@@ -1300,7 +1332,7 @@ public class PackageManager extends Dialog {
                rootstrapTab.setText(ROOTSTRAP_TAB_NAME);               
 
                if (!enableRootstrapTab) {
-                       rootstrapTab.setControl( errorTab( tabFolder , "- Any project is not selected or project is not \"CUSTOM DEBIAN PROJECT\"."));
+                       rootstrapTab.setControl( errorTab( tabFolder , "- Any project is not selected or project is not \"PLATFORM PROJECT\"."));
                        tabIndex = 1;
                } else {
                        rootstrapTab.setControl( getRootstrapTabControl( tabFolder ));
index 4456de3..e29c456 100644 (file)
@@ -55,8 +55,8 @@ public class TizenDebianMainWizardPage extends CDTMainWizardPage {
                                if ( e.getName() != null && e.getName().equals("Empty Project") )
                                        continue;
 
-                               if(     e.getId().equals("com.samsung.slp.nativeide.buildArtefactType.cdeb") || 
-                                               (e.getParentId() != null && e.getParentId().equals("com.samsung.slp.nativeide.buildArtefactType.cdeb")) ) {
+                               if(     e.getId().equals("org.tizen.nativeide.buildArtefactType.platform") || 
+                                               (e.getParentId() != null && e.getParentId().equals("org.tizen.nativeide.buildArtefactType.platform")) ) {
                                        result.add(item);
                                }
                                
index 4e6c6e2..5cee2f9 100644 (file)
@@ -45,8 +45,8 @@ import org.tizen.nativeplatform.build.PlatformConfigurationManager;
 public class TizenDebianProjectWizard extends CDTCommonProjectWizard{
 
        public TizenDebianProjectWizard() {
-               super("Tizen Custom Debian Project",  //$NON-NLS-1$
-                 "Create a Tizen Custom Debian Project project of selected type"); //$NON-NLS-1$
+               super("Tizen Platform Project",  //$NON-NLS-1$
+                 "Create a Tizen Platform Project project of selected type"); //$NON-NLS-1$
 //             WizardConstants.isDebian = true;
        }
 
@@ -73,8 +73,8 @@ public class TizenDebianProjectWizard extends CDTCommonProjectWizard{
        @Override
        public void addPages() {
                fMainPage= new TizenDebianMainWizardPage(CUIPlugin.getResourceString("CProjectWizard"));
-               fMainPage.setTitle("Tizen Custom Debian Project");
-               fMainPage.setDescription("Create a Tizen Custom Debian Project project of selected type");
+               fMainPage.setTitle("Tizen Platform Project");
+               fMainPage.setDescription("Create a Tizen Platform Project project of selected type");
                addPage(fMainPage);
        }
 
index 8db3a56..8e1d216 100644 (file)
@@ -1,5 +1,5 @@
-com.samsung.hello (1.0.0) unstable; urgency=low
+org.tizen.$(projectName) (0.0.0-1) unstable; urgency=low
 
-  *  Initial Release
+  * initial release
 
- -- Author <E-mail>  Fri, 22 Jul 2011 17:32:27 +0900
\ No newline at end of file
+ -- $(author) <$(e-mail)>  Sat, 24 Mar 2012 17:32:27 +0900
\ No newline at end of file
index 05ebaa0..d002497 100644 (file)
@@ -2,12 +2,10 @@
 #    THIS FILE IS CREATED AUTOMATICALLY. DO NOT DELETE OR MODIFY THIS FILE.
 #################################################################################
 
-Source: com.samsung.hello
-Maintainer: Author <E-mail>
-Standards-Version: 1.0.0
+Source: org.tizen.$(projectName)
+Maintainer: $(author) <$(e-mail)>
+Standards-Version: 0.0.1
 
-Package: com.samsung.hello
-description: none
-Architecture: any
-XB-Permission: 
-XB-RequiredHardware: 
+Package: org.tizen.$(projectName)
+description: $(description)
+Architecture: any
\ No newline at end of file
index 88e033a..5590a02 100644 (file)
@@ -11,30 +11,30 @@ configure-stamp:
        dh_testdir
        # Add here commands to configure the package.
        touch configure-stamp
-       
+
 build: build-stamp
 build-stamp: configure-stamp
        dh_testdir
        # Add here commands to build the package.
        mkdir -p bin
-       $(CC) $(CFLAGS) $(LDFLAGS) src/hello.c -o bin/hello
+       $(CC) $(CFLAGS) $(LDFLAGS) src/$(projectName).c -o bin/$(projectName)
        touch build-stamp
-       
-clean: 
+
+clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp
        # Add here commands to clean up before the build process.
        dh_clean
-       
+
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k 
+       dh_clean -k
        dh_installdirs
        # Add here commands to install the package.
        mkdir -p debian/tmp/usr/bin
-       cp bin/hello debian/tmp/usr/bin/
+       cp bin/$(projectName) debian/tmp/usr/bin/
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -43,12 +43,12 @@ binary-indep: build install
 binary-arch: build install
        dh_testdir
        dh_testroot
-       dh_installchangelogs 
+       dh_installchangelogs
        dh_installdocs
        dh_installexamples
        dh_install --sourcedir=debian/tmp
 #   dh_installmenu
-#   dh_installdebconf   
+#   dh_installdebconf
 #   dh_installlogrotate
 #   dh_installemacsen
 #   dh_installpam
@@ -59,12 +59,12 @@ binary-arch: build install
 #   dh_installinfo
        dh_installman
        dh_link
-       dh_strip
+#      dh_strip
        dh_compress
        dh_fixperms
 #   dh_perl
        dh_makeshlibs
-       dh_installdeb 
+       dh_installdeb
 #   dh_shlibdeps
        dh_gencontrol
        dh_md5sums
index 8e42f4c..10a2cd0 100644 (file)
                        hidden="false"
                        persist="false"/>
        </property-group>
-       
+
        <process type="org.tizen.nativecommon.TizenCreateSourceFolder">
                <simple name="projectName" value="$(projectName)"/>
                <simple name="path" value="src"/>
        </process>
-       
+
        <process type="org.eclipse.cdt.core.AddFiles">
                <simple name="projectName" value="$(projectName)"/>
                <complex-array name="files">
                        <element>
                                <simple name="source" value="src/hello.c"/>
-                               <simple name="target" value="src/hello.c"/>
+                               <simple name="target" value="src/$(projectName).c"/>
                                <simple name="replaceable" value="true"/>
                        </element>
                        <element>
                                <simple name="source" value="debian/changelog"/>
                                <simple name="target" value="debian/changelog"/>
                                <simple name="replaceable" value="true"/>
-                       </element>      
+                       </element>
                        <element>
-                               <simple name="source" value="debian/com.samsung.hello.install"/>
-                               <simple name="target" value="debian/com.samsung.hello.install"/>
+                               <simple name="source" value="debian/org.tizen.hello.install"/>
+                               <simple name="target" value="debian/org.tizen.$(projectName).install"/>
                                <simple name="replaceable" value="true"/>
-                       </element>              
+                       </element>
                </complex-array>
        </process>
 
        <process type="org.tizen.nativecommon.SetSBITarget">
                <simple name="projectName" value="$(projectName)"/>
        </process>
-       
-       
+
+
 </template>
index 827d43c..c5a2c58 100644 (file)
@@ -1,19 +1,9 @@
 Package:nativeplatform-eplugin
-Version:0.20.14
+Version:1.0.12
 OS:linux
 Build-host-os:linux
 Build-dependency:indigo-pde [linux], base-ide-product [linux], common-eplugin [linux], nativecommon-eplugin [linux]
 Install-dependency:base-ide-product [linux], common-eplugin [linux], nativecommon-eplugin [linux]
 Source:nativeplatform-eplugin
-Maintainer:Kangho Kim <kh5325.kim@samsung.com>, Yoonki Park, Taeyoung Son
-Description:Nativeplatform plugin
-
-Package:nativeplatform-eplugin
-Version:0.20.14
-OS:windows
-Build-host-os:linux
-Build-dependency:indigo-winpde [windows], base-ide-product [windows], common-eplugin [windows], nativecommon-eplugin [windows]
-Install-dependency:base-ide-product [windows], common-eplugin [windows], nativecommon-eplugin [windows]
-Source:nativeplatform-eplugin
-Maintainer:Kangho Kim <kh5325.kim@samsung.com>, Yoonki Park, Taeyoung Son
+Maintainer:Kangho Kim <kh5325.kim@samsung.com>, Yoonki Park<yoonki.park@samsung.com>, Hyunsik Noh<hyunsik.noh@samsung.com>, Gun Kim<gune.kim@samsung.com>, Ho Namkoong<ho.namkoong@samsung.com>, Taeyoung Son<taeyoung2.son@samsung.com>
 Description:Nativeplatform plugin