[MonoDevelop] How to Configure a Pad?
Alexandre Gomes
alexmipego@hotmail.com
Tue, 30 Nov 2004 12:45:51 +0000
Thanks, Thats was a copy paste problem somewhere.... :(
Problem solved. Anyway, I know that in 0.6 this should not be hardcoded
into SDIWorkspaceLayout. Can anyone tell me how do I get the list of
everything declared under "SharpDevelop/Workbench/Views"? After that
we'll have only one problem for what I see, there are ContentViews and
PadContents, we need to get the list of classes and make a foreach with
a is IPadContent, right? If you tell me how do I get that I'll patch and
post it.
The next thing is about this:
MonoDevelop.Gui.WorkbenchSingleton.Workbench.PadContentCollection
MonoDevelop.Gui.WorkbenchSingleton.Workbench.WorkbenchLayout.PadContentCollection
As you can see there are 2 ways, which one is the more correct. I think
that this can me a bug, no? Two ways of getting whats supposed to be the
same... Looking into SDIWorkSpaceLayout code it only uses "IPadContent
pad = workbench.PadContentCollection [padTypeName];" -
Workbench.PadContentCollection - so is there any reason for this?
Thanks,
Alexandre Miguel Pedro Gomes, Portugal
Todd Berman wrote:
>On Mon, 2004-11-29 at 22:25 +0000, Alexandre Gomes wrote:
>
>
>>The addin.xml looks like this:
>>
>>
>>
>
>Ahhh :)
>
>I think I see the problem.
>
>Look inline, with a lot of snippage.
>
>
>
>>...
>><Runtime>
>> <Import assembly="CentaurusAddin.dll"/>
>></Runtime>
>><Extension path="/SharpDevelop/Workbench/Views">
>> <Class id="CentaurusPad"
>>class="MonoDevelop.Gui.Pads.CentaurusPad"/>
>></Extension>
>>
>>
>
>Here you have said the class is called CentaurusPad in the
>MonoDevelop.Gui.Pads namespace.
>
>and then...
>
>
>
>> PadContentCollection con =
>>MonoDevelop.Gui.WorkbenchSingleton.Workbench.PadContentCollection;
>> IPadContent pad = new
>>MonoDevelop.EditorBindings.Gui.Pads.CentaurusPad();
>>
>>
>
>Here you say it is a class called CentaurusPad in
>MonoDevelop.EditorBindings.Gui.Pads namespace.
>
>The two namespaces are different. Which one is correct?
>
>
>--Todd
>
>
>.
>
>
>