Hi Andriy, if you have two editors open and one of them is used for navigation purposes, you should look into making the navigating window an Eclipse View instead of an Editor. Otherwise if you call setSelectedResource the graph itself may disappear.
Calling setSelectedResource should be fine (you can use TBC.getSession () to get the TBCSession directly), and I am not sure what's happening. Probably some confusion because there are two editors open? Holger On Oct 22, 2009, at 9:17 AM, Andriy Sokolov wrote: > > Hello! > > I'm going in to work on an additional graphical tab for TBC-Editor. > When I select an object on my graphical tab, the corresponding > resource should be automatically selected in the second editor, that > was allready opened paralell to the first one. > > For that purpose I'm trying first to select a resource in the first > editor, for testing how does it function, by the following code: > ((TBCSession)TB.getSession()).setSelectedResource(...); > > As I've tested my plugin, I choosed an object in my graphical tab and > clicked on "Model->Refresh all caches and views", but only "Graph" tab > has changed Resource; in tabs "Form" and "Source Code" have nothing > changed. Is it a bug or maybe I'm making something wrong? > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
