public void renameContext(Context c) { for (AbstractParamPanel panel : contextPanels) { if (panel instanceof ContextGeneralPanel) { ContextGeneralPanel ctxPanel = (ContextGeneralPanel) panel; if (ctxPanel.getContextIndex() == c.getIndex()) { getSessionDialog().renamePanel(ctxPanel, c.getName()); break; } } } }