Hello!
On 23 Okt., 22:08, Holger Knublauch <[email protected]> wrote:
> Andriy,
>
> I did try this (using the TBC Graph view) and the behavior appears to
> be fine. Whenever I change the selected Resource in one Editor, then
> only one of the editors switches, but the other remains the same. All
> tabs were adjusting correctly. Are you sure you have registered a
> IResourceSelectionListener with the TBC.getSession to get notified
> when the selected resource changes?
Yes, I have used IResourceSelectionListener. My EditPart class extends
this interface and it does react on the changed global selection of
resources. But my problem is quite opposite: I want let TB react on my
selection in my graphical editor. Therefore I use following command:
((TBCSession)TB.getSession()).setSelectedResource(
TB.getSession().getSelectedBaseModel().getResource(uriOWL));
But it works only partially - when it command runs, then:
1)above a ResourceEditor there is a field to enter a resource name
(with a house-button) --> it changes!
2)In the view "Instances" is a correct instance choosen!
but!!
In the Editor (tabs Form, Graph, Source Code) changes nothing!
After i click on "Model->Refresh all caches and views", only Graph-tab
changes it resource!!
I become desperate!!
>
> Regards
> Holger
>
> On Oct 23, 2009, at 6:22 AM, Andriy Sokolov wrote:
>
>
>
> > Hello Holger!
>
> > I already checked the issue without my additional tab that I am
> > developing on another computer. I took just TBC and choosed one
> > instance "Inst_A" and the tab Form was active. Then I opened new
> > editor (right mouse-click New Editor) and dragged on the right side of
> > the screen in order to see two editors and therewith two Forms
> > paralelly for the instance "Inst_A". I choosed as active the left
> > editor (left form) and then choosed another instance "Inst_B". The
> > left form, graph and source_code tabs were respecitvelly updated
> > showing the instance "Inst_B". Of course on the right editor (tab
> > From) was active showing the previous instance "Inst_A". Choosing
> > directly the tab Graph on the right editor shows "Inst_B" but tabs
> > Form and Source_Code of the right editor show still "Inst_A". Can you
> > please check the issue?
>
> > Thank You
> > Andriy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---