#1809 Flux - Tab Reuse

SlimerDude Mon 5 Mar 2012

I feel a couple of easy Flux questions coming on today...(!)

In flux, is it possible to programmatically open a URI in a new tab, or re-use a named tab? (Similar to re-using an editor in RCP.)

For it'd be nice to have a new tab per view type.

brian Mon 5 Mar 2012

frame.load( `new-file.txt`, LoadMode { newTab=true } )

SlimerDude Mon 5 Mar 2012

Cheers. It is then possible to re-use that tab / view and load a new resource into it? (Preferably from a Uri)

brian Mon 5 Mar 2012

If you don't pass newTab, then current tab is loaded with new URI - it works just like a browser. In fact that is how Flux is designed - a file editing "browser"

SlimerDude Mon 5 Mar 2012

Cool, I was just thinking that in the same way the Uri can be used to select a View, you may have been able to select a named tab (or open a new one).

file:/home/file.txt?tab=wotevr

Login or Signup to reply.