[MonoDevelop] WelcomePageView - the 'Save As...' problem

Lluis Sanchez lluis at ximian.com
Wed Jun 7 08:53:02 EDT 2006


El dc 07 de 06 del 2006 a les 02:12 +0200, en/na Matej Urbas va
escriure:
> Hi
> 
> After some weeks of working with Monodevelop, I've decided to
> participate in its development.

That's good news ;-)

> 
> I have found a bug (or at least something I personally consider a bug)
> and have tried to fix it - just for practice.
> 
> I have finished fixing it and I want to propose the solution to be
> committed to SVN. In fact this is more a proposal to extend the
> functionality of Monodevelop's architecture then merely a bugfix. (The
> report of this endeavour is located below.)

IViewContent already has a property for checking if the view is savable
or not: IsViewOnly. However, this property is not always checked, as you
found out, so your fix is partially correct. If you change the patch so
it uses IsViewOnly and provide ChangeLog entries, I'll commit.

> 
> Aside from this problem, I have looked into the TODO section, and I must
> say that momentarily I'm especially interested in the C# 2.0 parser.

As Miguel said, basic support is already working. I updated the TODO
section.

> Also, I'm willing to improve the way code completion works - there are
> still some issues about code completion in monodevelop that I think
> should be fixed. 

There are many things that can be improved in this area. Other replies
have already explained some ideas.

> I would also like to contribute to ASP.NET development
> support in monodevelop and Web Service integration.
> 
> Please, do point me to people who can give me some assignments.

If you need any help, just ping me.

> 
> If it needs mentioning: I'm not a participant in google's summer of code
> but I want to commit myself to monodevelop for a longer period - if God
> will allow me to.
> ----------------------------------------
> Here goes the REPORT of the aforementioned problem:
> 
> PROBLEM: If you try to 'Save As...' the Welcome page, it will throw an
> exception.
> DESIRED EFFECT: a) Not to enable 'Save As...' in the Welcome page at all
> or b) fail silently.
> GENERALIZATION OF THE PROBLEM: Not to enable saving for documents which
> don't make sense to be saved.
> 
> REPORT OF THE SOLUTION:
> - I have added an IsSavable property to IViewContent
> - I have added a SavableChanged event to IViewContent
> - I have added an update handler for the SaveAs command in
> ViewCommandHandlers
> - I have changed the behaviour of methods 'Save' and 'SaveAs' in
> MonoDevelop.Ide.Gui.Document to make proper use the newly added
> IsSavable property
> - I have changed some (but possibly not all) classes in some AddIns to
> accommodate to changes made in IViewContent
> - Made some changes in the WelcomePageView to fix the exception that
> happens at 'Save As...' (also, there is a minor fix in the code that is
> not related to the problem)
> 
> Diffs are attached
> 
> See ya
> 
> P.S.: I find it a wonderful coincidence that my first attempt to
> contribute involved the WelcomePage.
> ---
> Matej Urbas
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list