[Monodevelop-patches-list] r572 - trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jan 19 13:26:00 EST 2004
Author: benm
Date: 2004-01-19 13:26:00 -0500 (Mon, 19 Jan 2004)
New Revision: 572
Modified:
trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/ResourceFolderNodeCommands.cs
Log:
add resources from the same dir
Modified: trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/ResourceFolderNodeCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/ResourceFolderNodeCommands.cs 2004-01-19 18:11:53 UTC (rev 571)
+++ trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/ResourceFolderNodeCommands.cs 2004-01-19 18:26:00 UTC (rev 572)
@@ -39,11 +39,13 @@
FolderNode node = browser.SelectedNode as FolderNode;
if (node != null) {
+ IProject project = ((ProjectBrowserNode) node.Parent).Project;
show_dialog:
Gtk.FileSelection fs = new Gtk.FileSelection ("File to Open");
fs.SelectMultiple = true;
+ fs.Filename = project.BaseDirectory;
int response = fs.Run ();
string [] files = fs.Selections;
@@ -60,7 +62,7 @@
}
}
- IProject project = ((ProjectBrowserNode) node.Parent).Project;
+
IProjectService projectService = (IProjectService)ICSharpCode.Core.Services.ServiceManager.Services.GetService(typeof(IProjectService));
ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
More information about the Monodevelop-patches-list
mailing list