Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » ModelService.find cannot find part stacks(The service finds the containing sash but not the stacks within it)
ModelService.find cannot find part stacks [message #795562] Fri, 10 February 2012 16:01 Go to next message
Phill Perryman is currently offline Phill PerrymanFriend
Messages: 214
Registered: July 2009
Senior Member
I have a sash container which contains two part stacks.

<children xsi:type="basic:PartSashContainer" elementId="com.mitel.swb3.container"..
<children xsi:type="basic:PartStack" elementId="com.mitel.swb3.detailpart"..
<children xsi:type="basic:Part" ..> </children>
<children xsi:type="basic:PartStack" elementId="com.mitel.swb3.editorpart"/>
</children>

The following code

Object stack = modelService.find("com.mitel.swb3.container", application);
stack = modelService.find("com.mitel.swb3.parteditor", application);
stack = modelService.find("com.mitel.swb3.detailpart", application);

finds the container but returns null for the parteditor and detailpart. I actually want to dynamically add a part to the detail part.

When I debug the container I can see its elementsId and its two children. When I examine the children I see an elementId for both similar to PartStack@a23610

What am I doing wrong or is there another way to do this. I have set the elementId in the application model as shown above.
Re: ModelService.find cannot find part stacks [message #797588 is a reply to message #795562] Mon, 13 February 2012 17:13 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1049
Registered: July 2009
Senior Member

Works for me, I just tested. Which version are you using? I suggest to use M5 or a later integration build.
Previous Topic:How to access the osgi console for the application
Next Topic:Problem using StartupMonitor to show a login dialog
Goto Forum:
  


Current Time: Sun Nov 23 00:10:52 GMT 2014

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

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