woproject/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/resources/internal/types/folder DotSubprojAdapter.java,1.1,1.2

[email protected] Tue, 18 Apr 2006 11:18:07 -0700 (PDT)
Newsgroups gmane.comp.web.webobjects.woproject.cvs
Message-ID <[email protected]>
Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/resources/internal/types/folder
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4140/java/org/objectstyle/wolips/core/resources/internal/types/folder

Modified Files:
	DotSubprojAdapter.java 
Log Message:
subprojects support for pb.project

Index: DotSubprojAdapter.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/resources/internal/types/folder/DotSubprojAdapter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- DotSubprojAdapter.java	12 Aug 2005 18:08:45 -0000	1.1
+++ DotSubprojAdapter.java	18 Apr 2006 18:17:48 -0000	1.2
@@ -2,7 +2,7 @@
  *
  * The ObjectStyle Group Software License, Version 1.0
  *
- * Copyright (c) 2005 The ObjectStyle Group,
+ * Copyright (c) 2005 - 2006 The ObjectStyle Group,
  * and individual authors of the software.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -86,4 +86,8 @@
 	public boolean hasParentPBDotProjectAdapter() {
 		return true;
 	}
+
+	public String getSubprojectName() {
+		return this.getUnderlyingFolder().getName().substring(0, this.getUnderlyingFolder().getName().indexOf('.'));
+	}
 }



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642