Revision 2585
trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/ViewStackSupport.java | ||
---|---|---|
83 | 83 |
PluginServices.getMainFrame().addMenu(m, listener, PluginServices.getPluginServices(this).getClassLoader() ); |
84 | 84 |
} |
85 | 85 |
|
86 |
public void remove(View v){
|
|
86 |
public ViewInfo remove(View v){
|
|
87 | 87 |
Menu m = (Menu) viewMenu.get(v); |
88 |
if (m == null) return; |
|
88 |
if (m == null) return null;
|
|
89 | 89 |
PluginServices.getMainFrame().removeMenu(m); |
90 | 90 |
viewMenu.remove(v); |
91 |
int index = vistas.indexOf(v); |
|
91 | 92 |
vistas.remove(v); |
93 |
if (index == 0) return null; |
|
94 |
ViewInfo anterior = vis.getViewInfo((View) vistas.get(index-1)); |
|
95 |
return anterior; |
|
92 | 96 |
} |
93 | 97 |
|
94 | 98 |
public void ctrltab(){ |
trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/NewSkin.java | ||
---|---|---|
503 | 503 |
|
504 | 504 |
panel.remove(c); |
505 | 505 |
|
506 |
vss.remove(view);
|
|
506 |
activateJInternalFrame(fvs.getJInternalFrame(vis.getViewById(vss.remove(view).getId())));
|
|
507 | 507 |
|
508 | 508 |
mainFrame.enableControls(); |
509 | 509 |
|
Also available in: Unified diff