FR [ 1783955 ] Add Information To Window Title
http://sourceforge.net/tracker/index.php?func=detail&aid=1783955&group_id=176962&atid=879335
This commit is contained in:
parent
c62d9e709a
commit
37a8e961de
|
@ -1045,8 +1045,21 @@ public final class Env
|
|||
public static String getHeader(Properties ctx, int WindowNo)
|
||||
{
|
||||
StringBuffer sb = new StringBuffer();
|
||||
if (WindowNo > 0)
|
||||
if (WindowNo > 0){
|
||||
sb.append(getContext(ctx, WindowNo, "WindowName", false)).append(" ");
|
||||
final String documentNo = getContext(ctx, WindowNo, "DocumentNo", false);
|
||||
final String value = getContext(ctx, WindowNo, "Value", false);
|
||||
final String name = getContext(ctx, WindowNo, "Name", false);
|
||||
if(!"".equals(documentNo)) {
|
||||
sb.append(documentNo).append(" ");
|
||||
}
|
||||
if(!"".equals(value)) {
|
||||
sb.append(value).append(" ");
|
||||
}
|
||||
if(!"".equals(name)) {
|
||||
sb.append(name).append(" ");
|
||||
}
|
||||
}
|
||||
sb.append(getContext(ctx, "#AD_User_Name")).append("@")
|
||||
.append(getContext(ctx, "#AD_Client_Name")).append(".")
|
||||
.append(getContext(ctx, "#AD_Org_Name"))
|
||||
|
|
|
@ -818,6 +818,7 @@ public final class APanel extends CPanel
|
|||
if (m_curTab != null && m_curTab.isQueryActive())
|
||||
dbInfo = "[ " + dbInfo + " ]";
|
||||
statusBar.setStatusDB(dbInfo, e);
|
||||
m_window.setTitle(getTitle());
|
||||
|
||||
// Set Message / Info
|
||||
if (e.getAD_Message() != null || e.getInfo() != null)
|
||||
|
|
Loading…
Reference in New Issue