Index: D:/RHDS/jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryPageViewer.java =================================================================== --- D:/RHDS/jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryPageViewer.java (revision 5938) +++ D:/RHDS/jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryPageViewer.java (working copy) @@ -175,7 +175,17 @@ composite.setLayout(layout); composite.setLayoutData(new GridData(GridData.FILL_BOTH) ); - this.tabItem.setText(this.queryPage.getQueryString().replace('\n', ' ').replace('\r', ' ') ); + String tmp = "items"; + int size = 0; + if (null != this.queryPage && null != this.queryPage.getList()) { + size = this.queryPage.getList().size(); + } + if (size <= 1) { + tmp = "item"; + } + this.tabItem.setText(Integer.toString(size) + " - " + tmp); + this.tabItem.setToolTipText(this.queryPage.getQueryString()); + /* different icon dependent on java/hql etc. if (this.queryPage.getEntity() == null) { this.tabItem.setImage(ImageStore.getImage(ImageStore.SCRIPT) );