From 74e5d68733c9e3d203f46b6ac25c1747ccfede1e Mon Sep 17 00:00:00 2001 From: "donghyuk.yang" Date: Mon, 12 Nov 2012 11:41:47 +0900 Subject: [PATCH] [Title] Show debug menus of platform application in only Tizen-Platform perspective --- org.tizen.nativeplatform/plugin.xml | 149 ++++++++++++--------- .../launch/TizenDebianLaunchDelegate.java | 6 +- .../launch/ui/TizenDebianMainTab.java | 6 +- .../wizards/PlatformLaunchSettingAppPage.java | 12 +- 4 files changed, 92 insertions(+), 81 deletions(-) diff --git a/org.tizen.nativeplatform/plugin.xml b/org.tizen.nativeplatform/plugin.xml index 0394dd2..e0e3ba3 100644 --- a/org.tizen.nativeplatform/plugin.xml +++ b/org.tizen.nativeplatform/plugin.xml @@ -362,29 +362,34 @@ class="org.tizen.nativeplatform.launch.ui.shortcut.TizenDebianProjectLaunchShortcut" id="org.tizen.nativeplatform.launch.ui.shortcut.TizenDebianProjectLaunchShortcut"> - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + platformPkgs = launchUtils.getProjectPackages(platformProject, buildConfigName); if (platformPkgs.isEmpty()) { String msg = String.format("\"%s\" project does not have package files(*.rpm)\n" + - "Do you want packaging now ?\n" + - "[%s]", platformProject.getName(), buildConfigName); + "Do you want packaging now ?\n", platformProject.getName()); if (64 == DialogUtil.openQuestionDialog(msg)) { if (packagingProject(platformProject, buildConfig, new SubProgressMonitor(monitor, 1))) { platformPkgs.addAll(launchUtils.getProjectPackages(platformProject, buildConfigName)); @@ -257,8 +256,7 @@ public class TizenDebianLaunchDelegate extends AbstractCLaunchDelegate { if (appPkgs.isEmpty()) { String msg = String.format("\"%s\" project does not have package files(*.rpm)\n" + - "Do you want packaging now ?\n" + - "[%s]", appProject.getName(), buildConfigName); + "Do you want packaging now ?\n", appProject.getName()); if (64 == DialogUtil.openQuestionDialog(msg)) { if (packagingProject(appProject, buildConfig, new SubProgressMonitor(monitor, 1))) { appPkgs.addAll(launchUtils.getProjectPackages(appProject, buildConfigName)); diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/TizenDebianMainTab.java b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/TizenDebianMainTab.java index ff13eb3..b013f21 100644 --- a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/TizenDebianMainTab.java +++ b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/TizenDebianMainTab.java @@ -141,10 +141,10 @@ public class TizenDebianMainTab extends CMainTab { GridLayout topLayout = new GridLayout(); comp.setLayout(topLayout); - createVerticalSpacer(comp, 1); - createExeFileField(comp, 1); + createVerticalSpacer(comp, 1); createProjectGroup(comp, 1); createAppProjectGroup(comp, 1); + createExeFileField(comp, 1); createExtraTableGroup(comp); createOptionGroupComposite(comp); @@ -351,7 +351,7 @@ public class TizenDebianMainTab extends CMainTab { projComp.setLayoutData(gd); fProjLabel = new Label(projComp, SWT.NONE); - fProjLabel.setText("Test Application Project:"); + fProjLabel.setText("Tizen Application Project:"); gd = new GridData(); gd.horizontalSpan = 2; fProjLabel.setLayoutData(gd); diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizards/PlatformLaunchSettingAppPage.java b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizards/PlatformLaunchSettingAppPage.java index 8779990..e98f53f 100644 --- a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizards/PlatformLaunchSettingAppPage.java +++ b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizards/PlatformLaunchSettingAppPage.java @@ -108,8 +108,8 @@ public class PlatformLaunchSettingAppPage extends WizardPage { setPlatformPackages(); setProjectMap(); - } - + } + public void setPlatformPackages() { platformPackages.clear(); PlatformLaunchUtils launchUtils = new PlatformLaunchUtils(); @@ -117,8 +117,7 @@ public class PlatformLaunchSettingAppPage extends WizardPage { if (platformPackages.isEmpty()) { String msg = String.format("\"%s\" project does not have package files(*.rpm)\n" + - "Do you want packaging now ?\n" + - "[%s]", platformProject.getName(), config.getName()); + "Do you want packaging now ?", platformProject.getName()); if (64 == DialogUtil.openQuestionDialog(msg)) { if (packagingProject(platformProject)) { setPlatformPackages(); @@ -135,8 +134,7 @@ public class PlatformLaunchSettingAppPage extends WizardPage { appPackages = launchUtils.getProjectPackages(appProj, config.getName()); if (appPackages.isEmpty()) { String msg = String.format("\"%s\" project does not have package files(*.rpm)\n" + - "Do you want packaging now ?\n" + - "[%s]", appProj.getName(), config.getName()); + "Do you want packaging now ?\n", appProj.getName()); if (64 == DialogUtil.openQuestionDialog(msg)) { if (packagingProject(appProj)) { setAppPackages(appProj); @@ -187,7 +185,7 @@ public class PlatformLaunchSettingAppPage extends WizardPage { createTableGroupComposite(composite); createOptionGroupComposite(composite); - setControl(composite); + setControl(composite); } private void createOptionGroupComposite(Composite parent) { -- 2.7.4