SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Porting addin from 1.0 to 2.2

Last post 11-23-2007 12:00 PM by vinvin. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 11-07-2007 10:23 AM

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Porting addin from 1.0 to 2.2

    Hello folks ! You made a good job with the addin tutorial videos, but I did not find how classes were replaced in new versions, so I have a few questions ! I can't find anymore the ToolComponent and ComponentAssembly classes which were formerly in ICSharpCode.FormsDesigner.Gui. Do you have any clue for replacement locations ? Thank you so much for your great job !
    Filed under: , ,
  • 11-08-2007 4:32 PM In reply to

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Re: Porting addin from 1.0 to 2.2

    I finally found them in ICSharpCode.FormsDesigner, but the reference needed for this namespace is not is the bin directory of SharpDevelop builds, so the addin I'm developping cannot be compiled without the source distribution of SharpDevelop, which is not an improvement compared to SharpDevelop 1.1. There are other things I'm not finding now: - CSharpDesignerDisplayBindingWrapper which was in ICSharpCode.SharpDevelop.FormDesigner - the ProjectReference class and the AddReferenceToProject function - ProjectReferences in the IProject interface - the IDocument textAreaControlProvider.TextEditorControl.Document - SetupFromXml If someone can help a bit... thanks
  • 11-08-2007 4:40 PM In reply to

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Re: Porting addin from 1.0 to 2.2

    why the hell my posts are not formatted ?
  • 11-08-2007 7:31 PM In reply to

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Re: Porting addin from 1.0 to 2.2

    OK, i found that CSharpDesignerDisplayBindingWrapper is replaced by FormsDesignerViewContent and AbstractDesignerGenerator, but I don't have any idea on how can I use the two at the same time... I have to access the c, initializeComponents and Reparse() from AbstractDesignerGenerator, but I have to implement the AbstractSecondaryViewContent implemented by AbstractDesignerGenerator for the addin. Do you know how this can be done folks ? thanks !
  • 11-08-2007 7:45 PM In reply to

    Re: Porting addin from 1.0 to 2.2

    Can you describe what you are trying to accomplish? What does the SharpDevelop 1.0 AddIn do? 

    Daniel Grunwald
  • 11-08-2007 7:57 PM In reply to

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Re: Porting addin from 1.0 to 2.2

    This AddIn appears in a secondary view content (a new tab, between code and designer) and is a visualisation of the code as an assembly of components. So it is a frame in which we draw some boxes and links, we can drag and drop new components from a toolbox, click them to create links, and we keep the visualization up to date with the code and we update the code when components are changed. I did not mention that I use FormsDesignerViewContent instead of AbstractSecondaryViewContent because we use the host attribute, and i found this class to have it and still implement AbstractSecondaryViewContent.
  • 11-16-2007 11:55 AM In reply to

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Re: Porting addin from 1.0 to 2.2

    I have troubles using the property pad now. I am not able to create selectable objects and get their properties. There used to be PropertyPad.SetSelectableObjects(), but it does not exists anymore. How can I get properties (same as components properties) for objects in my secondary view addin ?
  • 11-16-2007 12:54 PM In reply to

    Re: Porting addin from 1.0 to 2.2

     Create a new instance in your view content. Implement IHasPropertyContainer and return that instance.

    You can set selectable objects by using the container's SelectedObjects property. The property grid will display the contents of your container while your view content has the focus. 

    Daniel Grunwald
  • 11-16-2007 7:02 PM In reply to

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Re: Porting addin from 1.0 to 2.2

    Thank you, I could make this work :) FormsDesignerViewContent implements IHasPropertyContainer so that was finally easy.
  • 11-23-2007 12:00 PM In reply to

    • vinvin
    • Top 500 Contributor
    • Joined on 11-06-2007
    • Sophia Antipolis, France
    • Posts 10

    Re: Porting addin from 1.0 to 2.2

    The last thing I could not find how I could port it concerns the code generation in forms designers. My addin now herits from FormsDesignerViewContent, with #D1.0 it was CSharpDesignerDisplayBindingWrapper. The thing is that in the new FormsDesignerViewContent, there is no code generator, and for example the Reparse() method, and stuff that updates the source code from the view design are missing. AbstractDesignerGenerator has the c, initializeComponents, mergeFromChanges(), Reparse() but how can I use it in my addin while I use the FormsDesignerViewContent ? I am quite lost with this... Thanks
Page 1 of 1 (10 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.