for (int i = 0; i < frames.length; i++)
{
if(frames[i] instanceof SQLInternalFrame)
{
ISQLPanelAPI sqlPanelAPI = ((SQLInternalFrame)frames[i]).getSQLPanelAPI();
IIdentifier id = sqlPanelAPI.getSQLEntryPanel().getIdentifier();
if(id.equals(entryPanelIdentifier))
{
return sqlPanelAPI;
}
}
if(frames[i] instanceof SessionInternalFrame)
{
ISQLPanelAPI sqlPanelAPI = ((SessionInternalFrame)frames[i]).getSQLPanelAPI();
IIdentifier sqlEditorID = sqlPanelAPI.getSQLEntryPanel().getIdentifier();
if(sqlEditorID.equals(entryPanelIdentifier))
{
return sqlPanelAPI;
}
IObjectTreeAPI objectTreeApi = ((SessionInternalFrame)frames[i]).getObjectTreeAPI();
IIdentifier findEditorID = objectTreeApi.getFindController().getFindEntryPanel().getIdentifier();
if(findEditorID.equals(entryPanelIdentifier))
{
return null;
}
}
if(frames[i] instanceof ObjectTreeInternalFrame)
{
IObjectTreeAPI objectTreeApi = ((ObjectTreeInternalFrame)frames[i]).getObjectTreeAPI();
IIdentifier findEditorID = objectTreeApi.getFindController().getFindEntryPanel().getIdentifier();
if(findEditorID.equals(entryPanelIdentifier))
{
return null;
}
}
}