Community
Participate
Working Groups
Hi , I developed an application using JFace and once i executed this application in Linux platform i found that the name of the application not displayed in the Task Bar.... should i have to add any code to make the application name displayed in the task bar?
You will need to provide a small stand alone code snippet for us to debug.
hi here is code snippet...we will take the following example... quite a big snippet..... when i run the following program i am not able to see the title "Essai JFace" in the Task Bar.... //start of program import org.eclipse.jface.action.Action; import org.eclipse.jface.action.GroupMarker; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.ToolBarManager; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.window.ApplicationWindow; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.MenuItem; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Table; public class TestJFace extends ApplicationWindow { public TestJFace(Shell parentShell) { super (parentShell); } public static void main(String[] args) { Display display = new Display(); Shell aShell = new Shell(display); TestJFace application = new TestJFace(aShell); application.createComponents(); application.open(); application.setStatus( "sdqds" ); } public void createComponents() { addMenuBar(); addStatusLine(); addToolBar(SWT.FLAT | SWT.WRAP); setBlockOnOpen( true ); }; protected MenuManager createMenuManager() { MenuManager menuManager = new MenuManager(); menuManager.add(createHelpMenu()); return menuManager; } private MenuManager createHelpMenu() { MenuManager menu = new MenuManager( "Help" , "Id01" ); menu.add( new GroupMarker( "About" )); menu.add(createAboutAction()); return menu; } private Action createAboutAction() { return new Action() { public String getText() { return "Essai" ; } public void run() { String[] tab = { IDialogConstants.OK_LABEL }; MessageDialog dialog = new MessageDialog( getShell(), "Essai JFace" , null , "Ceci est une fenêtre d''information" , MessageDialog.INFORMATION, tab, 0); dialog.open(); } }; } protected void configureShell(Shell shell) { super .configureShell(shell); shell.setText( "Essai JFace" ); } protected Point getInitialSize() { return new Point(600, 400); } protected Point getInitialLocation() { return new Point(600, 400); } protected void handleShellCloseEvent() { String[] tab = { IDialogConstants.OK_LABEL }; MessageDialog dialog = new MessageDialog( getShell(), "Fin de l'essai" , null , "Nous allons quitter l'application" , MessageDialog.INFORMATION, tab, 0); dialog.open(); setReturnCode(CANCEL); close(); } protected ToolBarManager createToolBarManager( int style) { return new ToolBarManager(style); } protected Control createContents(Composite parent) { Table aComposite = new Table(parent, SWT.BORDER); return aComposite; } } //end of program Regards, jaya
Sorry to be a pain but SWT is not JFace, even though the problem is most likely in SWT. Could you remove the JFace calls from your code? Thanks.
Sorry but I can't look at this right now and will be at EclipseCon. I'm moving this to UI to get them to run it. As far as I can tell, the name in the task bar should be the name of the shell. Since the message dialog is a dialog shell, it won't appear. Please move this back to SWT if you either understand more or find that it's actually our bug. Thanks.
This message is part of a mass update on bugs that have been reviewed for several releases, but not fixed. The bug is legitimate, but not a priority. Marking P5. Patches would be entertained.
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.