Hi,
Just started using vldocking and so far it has been great. I am creating an app that will allow a user to create ssh sesisons and move them around in a tabbed/docked manner.
My current issue is adding a new ssh session to the DockingDesktop.
I currently do this
public void launchSshSession(SshConnectionConfig sshConfig) {
TerminalPanel terminalPanel = new TerminalPanel(sshConfig);
terminalsDesktop.addDockable(terminalPanel);
}
this will add the new terminal directly below the top left terminal in my current layout.
I would like it to do one of the following (preferably 1).
1. Add the new terminal on top of the currently active terminal.
If I could do something like this, I think it would work great
TerminalPanel terminalPanel = new TerminalPanel(sshConfig);
Dockable active = terminalsDesktop.getActive();
terminalsDesktop.createTab(active, terminalPanel, 0, true);
But the method getActive does not exist. Any way to get the currently active Dockable ?
2. Alternately I would be ok with adding it on top of the top left dockable, but not sure how to get this either.
Any ideas ? I am quite sure this is probably possible, but I've been through the tutorials and browsed the javadocs and haven't been able to figure it out yet.
Thanks, great framework.