All of lore.kernel.org
 help / color / mirror / Atom feed
* [eclipse-poky][PATCH] OptionsPage.java: Allow BC Project name to be other than poky folder
@ 2015-11-30 21:54 Jose Lamego
  2015-12-17 16:32 ` Jose Lamego
  0 siblings, 1 reply; 2+ messages in thread
From: Jose Lamego @ 2015-11-30 21:54 UTC (permalink / raw)
  To: yocto

Fixes [Yocto 8407]

This change allows a new Yocto Project Bitbake Commander project
to be named as desired, not as the poky folder.

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
---
 .../src/org/yocto/bc/ui/wizards/install/OptionsPage.java     | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java
index bd91ef9..582d301 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java
@@ -130,7 +130,7 @@ public class OptionsPage extends FiniteStateWizardPage {
 	@Override
 	
 	protected void updateModel() {
-		model.put(InstallWizard.INSTALL_DIRECTORY, txtProjectLocation.getText()+File.separator+txtProjectName.getText());
+		model.put(InstallWizard.INSTALL_DIRECTORY, txtProjectLocation.getText());
 		model.put(InstallWizard.PROJECT_NAME, txtProjectName.getText());
 	}
 
@@ -166,13 +166,9 @@ public class OptionsPage extends FiniteStateWizardPage {
 			return false;
 		}
 
-		String projectPath = projectLoc + txtProjectName.getText();
-		File prj_dir=new File(projectPath);
-		if(!prj_dir.isDirectory() || !prj_dir.exists()) {
-			if(!new File(projectPath + File.separator + InstallWizard.VALIDATION_FILE).exists()) {
-				setErrorMessage("Directory " + txtProjectLocation.getText() + txtProjectName.getText() + " is an invalid poky directory.");
-				return false;
-			}
+		if(!new File(projectLoc + File.separator + InstallWizard.VALIDATION_FILE).exists()) {
+			setErrorMessage("Directory " + txtProjectLocation.getText() + " is an invalid poky directory.");
+			return false;
 		}
 
 		try {
-- 
1.8.4.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-17 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-30 21:54 [eclipse-poky][PATCH] OptionsPage.java: Allow BC Project name to be other than poky folder Jose Lamego
2015-12-17 16:32 ` Jose Lamego

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.