Bug 79379 - [JFace] JFace application.....Task Bar
Summary: [JFace] JFace application.....Task Bar
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 08:55 EST by Jayalakshmi CLA
Modified: 2019-09-06 15:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jayalakshmi CLA 2004-11-24 08:55:48 EST
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?
Comment 1 Steve Northover CLA 2004-11-24 17:22:43 EST
You will need to provide a small stand alone code snippet for us to debug.
Comment 2 Jayalakshmi CLA 2004-11-25 03:23:49 EST
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
Comment 3 Steve Northover CLA 2004-11-25 12:01:43 EST
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.
Comment 4 Steve Northover CLA 2005-02-24 18:01:24 EST
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.
Comment 5 Susan McCourt CLA 2007-06-29 13:02:46 EDT
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.
Comment 6 Susan McCourt CLA 2009-07-09 15:32:10 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 7 Eclipse Webmaster CLA 2019-09-06 15:37:52 EDT
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.