Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » subgroups in a toolgroup
subgroups in a toolgroup [message #203813] Fri, 29 August 2008 08:01 Go to next message
Guillaume SOLDERA is currently offline Guillaume SOLDERAFriend
Messages: 23
Registered: July 2009
Junior Member
Hi !

I work on an RCP application build with EMF/GMF.

So I created a gmftool file.
In this file, I have many ToolGroups.
And in these ToolGroups I have other ToolGroups

<tools
        xsi:type="gmftool:ToolGroup"
        title="JBoss"
        collapsible="true"
        stack="true">
      <tools
          xsi:type="gmftool:CreationTool"
          title="JBoss AS"
          description="Add new JBoss Application Server">
        <smallIcon
            xsi:type="gmftool:DefaultImage"/>
        <largeIcon
            xsi:type="gmftool:DefaultImage"/>
      </tools>
      <tools
          xsi:type="gmftool:ToolGroup"
          title="Container"
          collapsible="true"
          stack="true">
        <tools
            xsi:type="gmftool:CreationTool"
            title="JBossWebContainer"
            description="Add new web Containers">
          <smallIcon
              xsi:type="gmftool:DefaultImage"/>
          <largeIcon
              xsi:type="gmftool:DefaultImage"/>
        </tools>
      </tools>
      <tools
          xsi:type="gmftool:ToolGroup"
          title="Services">
        <tools
            xsi:type="gmftool:CreationTool"
            title="JBoss Binding"
            description="Define JBoss Binding Service">
          <smallIcon
              xsi:type="gmftool:DefaultImage"/>
          <largeIcon
              xsi:type="gmftool:DefaultImage"/>
        </tools>
      </tools>
      <tools
          xsi:type="gmftool:CreationTool"
          title="JBossWebConnectors"
          description="Add new web connectors">
        <smallIcon
            xsi:type="gmftool:DefaultImage"/>
        <largeIcon
            xsi:type="gmftool:DefaultImage"/>
      </tools>
      <tools
          xsi:type="gmftool:ToolGroup"
          title="Shared Configuration">
        <tools
            xsi:type="gmftool:CreationTool"
            title="JBoss_HA_Group"
            description="Add new JBoss HA Group">
          <smallIcon
              xsi:type="gmftool:DefaultImage"/>
          <largeIcon
              xsi:type="gmftool:DefaultImage"/>
        </tools>
        <tools
            xsi:type="gmftool:CreationTool"
            title="JBoss_HTTP_RepGroup"
            description="Add new JBoss Http Replication Groups">
          <smallIcon
              xsi:type="gmftool:DefaultImage"/>
          <largeIcon
              xsi:type="gmftool:DefaultImage"/>
        </tools>
      </tools>
      <tools
          xsi:type="gmftool:ToolGroup"
          title="Links"
          collapsible="true"
          stack="true">
        <tools
            xsi:type="gmftool:CreationTool"
            title="JBoss_HA_link"
            description="Add new JBoss HA connection">
          <smallIcon
              xsi:type="gmftool:DefaultImage"/>
          <largeIcon
              xsi:type="gmftool:DefaultImage"/>
        </tools>
        <tools
            xsi:type="gmftool:CreationTool"
            title="JBoss_HTTP_Rep_link"
            description="Add new JBoss HTTP Rep connection">
          <smallIcon
              xsi:type="gmftool:DefaultImage"/>
          <largeIcon
              xsi:type="gmftool:DefaultImage"/>
        </tools>
      </tools>
    </tools>


I can generate my gmfgen file and diagram code.
But when I launch my application, I have an IllegalArgumentException and
my tools are not built.
This is the stack trace :

java.lang.IllegalArgumentException: This container can not contain this 
type of child: $Palette Drawer
	at org.eclipse.gef.palette.PaletteContainer.add(PaletteContainer.java:77)
	at org.eclipse.gef.palette.PaletteStack.add(PaletteStack.java:67)
	at org.eclipse.gef.palette.PaletteContainer.add(PaletteContainer.java:67)
	at 
org.ow2.jasmine.model.jasmineall.diagram.part.Jasmine_allPaletteFactory.createJOnAS1Group(Jasmine_allPaletteFactory.java:64)
	at 
org.ow2.jasmine.model.jasmineall.diagram.part.Jasmine_allPaletteFactory.fillPalette(Jasmine_allPaletteFactory.java:46)



Is it possible to have subgroups in a ToolGroup ?
An idea ?

Thanks

Guillaume
[resolved] Re: subgroups in a toolgroup [message #203865 is a reply to message #203813] Fri, 29 August 2008 12:57 Go to previous message
Guillaume SOLDERA is currently offline Guillaume SOLDERAFriend
Messages: 23
Registered: July 2009
Junior Member
Hi !

I found the solution.
The first ToolGroup (not the subgroup) must disable its 'Stack' property.
and it works !

Guillaume



Guillaume SOLDERA wrote:

> Hi !

> I work on an RCP application build with EMF/GMF.

> So I created a gmftool file.
> In this file, I have many ToolGroups.
> And in these ToolGroups I have other ToolGroups

>
> <tools
>         xsi:type="gmftool:ToolGroup"
>         title="JBoss"
>         collapsible="true"
>         stack="true">
>       <tools
>           xsi:type="gmftool:CreationTool"
>           title="JBoss AS"
>           description="Add new JBoss Application Server">
>         <smallIcon
>             xsi:type="gmftool:DefaultImage"/>
>         <largeIcon
>             xsi:type="gmftool:DefaultImage"/>
>       </tools>
>       <tools
>           xsi:type="gmftool:ToolGroup"
>           title="Container"
>           collapsible="true"
>           stack="true">
>         <tools
>             xsi:type="gmftool:CreationTool"
>             title="JBossWebContainer"
>             description="Add new web Containers">
>           <smallIcon
>               xsi:type="gmftool:DefaultImage"/>
>           <largeIcon
>               xsi:type="gmftool:DefaultImage"/>
>         </tools>
>       </tools>
>       <tools
>           xsi:type="gmftool:ToolGroup"
>           title="Services">
>         <tools
>             xsi:type="gmftool:CreationTool"
>             title="JBoss Binding"
>             description="Define JBoss Binding Service">
>           <smallIcon
>               xsi:type="gmftool:DefaultImage"/>
>           <largeIcon
>               xsi:type="gmftool:DefaultImage"/>
>         </tools>
>       </tools>
>       <tools
>           xsi:type="gmftool:CreationTool"
>           title="JBossWebConnectors"
>           description="Add new web connectors">
>         <smallIcon
>             xsi:type="gmftool:DefaultImage"/>
>         <largeIcon
>             xsi:type="gmftool:DefaultImage"/>
>       </tools>
>       <tools
>           xsi:type="gmftool:ToolGroup"
>           title="Shared Configuration">
>         <tools
>             xsi:type="gmftool:CreationTool"
>             title="JBoss_HA_Group"
>             description="Add new JBoss HA Group">
>           <smallIcon
>               xsi:type="gmftool:DefaultImage"/>
>           <largeIcon
>               xsi:type="gmftool:DefaultImage"/>
>         </tools>
>         <tools
>             xsi:type="gmftool:CreationTool"
>             title="JBoss_HTTP_RepGroup"
>             description="Add new JBoss Http Replication Groups">
>           <smallIcon
>               xsi:type="gmftool:DefaultImage"/>
>           <largeIcon
>               xsi:type="gmftool:DefaultImage"/>
>         </tools>
>       </tools>
>       <tools
>           xsi:type="gmftool:ToolGroup"
>           title="Links"
>           collapsible="true"
>           stack="true">
>         <tools
>             xsi:type="gmftool:CreationTool"
>             title="JBoss_HA_link"
>             description="Add new JBoss HA connection">
>           <smallIcon
>               xsi:type="gmftool:DefaultImage"/>
>           <largeIcon
>               xsi:type="gmftool:DefaultImage"/>
>         </tools>
>         <tools
>             xsi:type="gmftool:CreationTool"
>             title="JBoss_HTTP_Rep_link"
>             description="Add new JBoss HTTP Rep connection">
>           <smallIcon
>               xsi:type="gmftool:DefaultImage"/>
>           <largeIcon
>               xsi:type="gmftool:DefaultImage"/>
>         </tools>
>       </tools>
>     </tools>
> 


> I can generate my gmfgen file and diagram code.
> But when I launch my application, I have an IllegalArgumentException and
> my tools are not built.
> This is the stack trace :

>
> java.lang.IllegalArgumentException: This container can not contain this 
> type of child: $Palette Drawer
> 	at org.eclipse.gef.palette.PaletteContainer.add(PaletteContainer.java:77)
> 	at org.eclipse.gef.palette.PaletteStack.add(PaletteStack.java:67)
> 	at org.eclipse.gef.palette.PaletteContainer.add(PaletteContainer.java:67)
> 	at 
> 
org.ow2.jasmine.model.jasmineall.diagram.part.Jasmine_allPaletteFactory.createJOnAS1Group(Jasmine_allPaletteFactory.java:64)
> 	at 
> 
org.ow2.jasmine.model.jasmineall.diagram.part.Jasmine_allPaletteFactory.fillPalette(Jasmine_allPaletteFactory.java:46)

> 


> Is it possible to have subgroups in a ToolGroup ?
> An idea ?

> Thanks

> Guillaume
Previous Topic:ocl link constraint
Next Topic:Auto resize of figures/compartments
Goto Forum:
  


Current Time: Sat Apr 20 04:58:24 GMT 2024

Powered by FUDForum. Page generated in 0.03334 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top