Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@478 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
8 changed files with 78 additions and 25 deletions
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0"?> |
||||
<?xml version="1.0"?> |
||||
<Template originator = "Mike Krueger" |
||||
created = "06/10/2001" |
||||
lastModified = "02/01/2003"> |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt">2002-2005 AlphaSierraPapa</copyright>
|
||||
// <license see="prj:///doc/license.txt">GNU General Public License</license>
|
||||
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections; |
||||
using System.IO; |
||||
|
||||
namespace ICSharpCode.Core |
||||
{ |
||||
/// <summary>
|
||||
/// Creates path names using a relative to the folder containing the addin file.
|
||||
/// </summary>
|
||||
/// <attribute name="path">
|
||||
/// Path relative to the directory which contains the .addin file defining the codon.
|
||||
/// </attribute>
|
||||
/// <returns>
|
||||
/// A string containing the full path name.
|
||||
/// </returns>
|
||||
public class DirectoryDoozer : IDoozer |
||||
{ |
||||
public bool HandleConditions { get { return false; } } |
||||
|
||||
public object BuildItem(object caller, Codon codon, ArrayList subItems) |
||||
{ |
||||
return Path.Combine(Path.GetDirectoryName(codon.AddIn.FileName), codon.Properties["path"]); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue