1 | String dbg = ↵ | | |
|
2 | s_stringMgr.getString("WindowManager.registerSessionSheet",↵ | | |
|
3 | sheet.getClass().getName↵ | | 1 | final ISession session = getSession();↵
|
4 | ());↵ | | 2 | final IDatabaseObjectInfo doi = getDatabaseObjectInfo();↵
|
5 | s_log.debug(dbg);↵ | | 3 | if (s_log.isDebug↵
|
6 | final IIdentifier sessionIdentifier = sheet.getSession().getIdentifier(↵ | | 4 | Enabled()) {↵
|
7 | );↵ | | 5 | s_log.debug("Preparing trigger SQL statement: "+SQL);↵
|
|
8 | // Store ptr to newly open window in list of windows per session.↵ | | 6 | ↵
|
9 | final int idx↵ | | 7 | s_log.debug("trigger name = "+doi.getSimpleName());↵
|
| | | 8 | }↵
|
10 | = _sessionWindows.addFrame(sessionIdentifier, sheet);↵ | | 9 | ISQLConnection conn = session.getSQLConnection();↵
|
|
11 | // For all windows (other than the first one opened) for a session↵ | | 10 | ↵
|
12 | // add a number on the end of the title to differentiate them in↵ | | |
|
13 | // menus etc.↵ | | |
|
14 | if ( idx > 1)↵ | | |
|
15 | {↵ | | |
|
16 | sheet.setTitle(sheet.getTitle() + " (" + idx + ")");↵ | | |
|
17 | }↵ | | |
|
|
18 | sheet.addWidgetListener(_windowListener)↵ | | 11 | PreparedStatement pstmt = conn.prepareStatement(SQL);↵
|
| | | 12 | pstmt.setString(1, doi.getSimpleName());↵
|
19 | ; | | 13 | return pstmt;
|