Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Include Page
TOOLS:Header, DesignTOOLS:
Header, Design
Wiki Markup
{scrollbar}

Introduction
To extend menu and toolbar of DelftShell some interfaces are added to DelftTools (ICommand, IMenuItem, IToolBar, part of IMainWindow). Implementations of these interfaces can be found in
DelftShell.Gui.Forms.MenuItem,
DelftShell.Gui.Forms.ToolBar,
DelftShell.Gui.Forms.ToolBarManager and
DelftShell.Gui.Forms.MainWindow.MainWindow (DelftShell).

...

To implement this scenario

  • Add a config file to the plugin if not already available (Add New Item - Application configuration file)
  • To <configuration> add a section <configSections> and add in this a section with name "plugin"
    and type="DelftTools.Gui.PluginConfigurationSectionHandler, DelftTools.Gui"
    example:
    <configSections>
    <section name="plugin" type="DelftTools.Gui.PluginConfigurationSectionHandler, DelftTools.Gui" />
    </configSections>
  • Add a plugin section with contains the xml to extend the UI.
  • Modify the afterbuild event to copy the app.config file to plugin.dll.config
    copy "$(TargetDir)*.dll.config" "$(SolutionDir)apps\DelftShell\modules\DelftShell.Loader\bin\plugins\$(ProjectName)\"

Images
PluginConfigurator supports three sources for images.

...