Replace references to tabbedPane since that may not exist.

git-svn-id: file:///home/svn/framework3/trunk@13746 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2011-09-17 15:09:04 +00:00
parent 56025609f0
commit 9ada448a16
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -176,7 +176,7 @@ public class MainFrame extends FrameView {
if(show){
DraggableTabbedPane.show(iw.mainPanel);
if(MsfguiApp.getPropertiesNode().get("tabWindowPreference").equals("tab"))
((DraggableTabbedPane)iw.tabbedPane).moveTabTo(0, (DraggableTabbedPane)tabbedPane);
((DraggableTabbedPane)iw.tabbedPane).moveTabTo(0, DraggableTabbedPane.getTabPane(sessionsPane));
iw.activate();
}
final String id = res.get("id").toString();
@ -224,7 +224,7 @@ public class MainFrame extends FrameView {
&& sessionWindowMap.get(session.get("id")+"console") == null){
InteractWindow win = new InteractWindow(rpcConn, session, session.get("type").toString());
if(MsfguiApp.getPropertiesNode().get("tabWindowPreference").equals("tab")){
((DraggableTabbedPane)win.tabbedPane).moveTabTo(0, (DraggableTabbedPane)tabbedPane);
((DraggableTabbedPane)win.tabbedPane).moveTabTo(0, DraggableTabbedPane.getTabPane(sessionsPane));
win.activate();
}
sessionWindowMap.put(session.get("id")+"console", win.mainPanel);