[MonoDevelop] This collection does not exist!

laas laas.mono at gmail.com
Mon Sep 15 12:21:48 EDT 2008


Hi Michael,first of all thank you for your answer. I've searched for
WorkspaceItem in all source code file (i've downloaded also the latest MD
source code) but with no results; in addition IdeApp does not exihibited a
collection named Items. No results also from the search tool in the official
site of MonoDevelop.
So my next question is: where I should find the objects needed to perform
your code ? Is this a feature in development ? Should I download MD source
code from SVN ?

Best regards,
Laas

On Sat, Sep 13, 2008 at 6:18 PM, Michael Hutchinson <
m.j.hutchinson at gmail.com> wrote:

> On Thu, Sep 11, 2008 at 11:06 AM, laas <laas.mono at gmail.com> wrote:
> > Hi all,
> > developing my own MonoDevelop addin I'm trying to find a way to loop
> through
> > all solution's documents. After a lot of days spent to read MD source
> code
> > I've found the following file:
> > WholeProjectDocumentIterator.cs
> >
> > that contains the following instructions:
> > foreach (Document document in IdeApp.Workbench.Documents) {
> > ...
> > }
> > but I'm sure this will loop only through opened documents. So I think
> that
> > MD core does not provides a collection of all document of a
> > solution/project.
> > Is this right ?
>
> AFAIK yes. You'll need to do something like
>
> foreach (WorkspaceItem item in IdeApp.Workspace.Items)
>    if (item is Project)
>        foreach (ProjectFile file in ((Project)item).Files)
>            Console.WriteLine (file.FilePath);
>
>
> --
> Michael Hutchinson
> http://mjhutchinson.com
>



-- 
[LAAS]
WebSite: http://www.laas02.org
YTSite: http://www.laas02.org/?page_id=17
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20080915/2e106b2f/attachment.html 


More information about the Monodevelop-list mailing list