Bug 10569 - [Workbench] user specified titles for eclipse.exe windows
Summary: [Workbench] user specified titles for eclipse.exe windows
Status: RESOLVED DUPLICATE of bug 23519
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-03-01 05:30 EST by dave- CLA
Modified: 2006-11-07 07:59 EST (History)
3 users (show)

See Also:


Attachments
Implements a title-suffix (2.72 KB, patch)
2002-03-08 23:32 EST, David Corbin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dave- CLA 2002-03-01 05:30:18 EST
Eclipse requires a new command line argument so the user can specify a titles 
for eclipse.exe windows as follows:
      -title aString

----------------------------------------------------------------------------

"John Arthorne" <john_arthorne@o_ti.com> wrote in message 
news:3C7EB740.22732468@o_ti.com...
> The main title is supplied by the product configuration.  It can be changed 
> by editing:
> 
> plugins/org.eclipse.sdk/product.ini
> 
> You can also change the icon in this file, which is really useful for
> distinguishing between different installs.
> 
> 
> 
> David Corbin wrote:
> 
> > dave- wrote:
> > > It appears we are requesting a new feature, a new command line argument
> > >      -title aString
> >
> > Yep.  you came up with it.  Why don't you file the "bug".
> >
> > >
> > > "David Corbin" <dcorbin@mperitek.com> wrote in message
> > > news:3C7E632A.5080307@mperitek.com...
> > >
> > >>Veronika Irvine wrote:
> > >>
> > >>>Use Shell.setText().
> > >>>
> > >>>Note that you need to have the correct style bits when you create the
> > >>>
> > > Shell
> > >
> > >>>to get the title displayed.  The correct style bits are any of:
> > >>>    - new Shell(display) - no style bits specified, get the default
> > >>>    - SWT.TITLE (can be combined with several other styles such as
> > >>>SWT.RESIZE and SWT.CLOSE)
> > >>>    - SWT.DIALOG_TRIM
> > >>>
> > >>>Here is a quick example:
> > >>>
> > >>>public static void main(String[] args) {
> > >>>    Display display = new Display();
> > >>>    //Shell shell = new Shell(display);
> > >>>    //Shell shell = new Shell(display, SWT.TITLE | SWT.CLOSE |
> > >>>
> > > SWT.RESIZE);
> > >
> > >>>    Shell shell = new Shell(display, SWT.DIALOG_TRIM);
> > >>>    shell.setText("Hello");
> > >>>    shell.open();
> > >>>    while (!shell.isDisposed()) {
> > >>>        if (!display.readAndDispatch())
> > >>>            display.sleep();
> > >>>    }
> > >>>    display.dispose();
> > >>>}
> > >>>
> > >>>
> > >>>
> > >>>
> > >>I can't speak for the original poster, but I want to know if there is an
> > >>argument for eclipse.exe that will control this.  I often have two
> > >>different workspaces in play, and would like to be able to tell them
> > >>apart by just the title.
> > >>
> > >>
> > >
> > >
>
Comment 1 John Arthorne CLA 2002-03-01 13:11:20 EST
What he really wants is the ability to distinguish what underlying workspace is 
being used by a particular runtime instance of Eclipse.  This is a good point, 
because I don't think that it's possible to find out the workspace location from 
anywhere in the UI.

Moving to UI for consideration.
Comment 2 Kevin Haaland CLA 2002-03-07 22:36:06 EST
Are any of you interested in implementing this feature and contributing it to 
the eclipse project? 
Comment 3 David Corbin CLA 2002-03-08 23:32:13 EST
Created attachment 455 [details]
Implements a title-suffix
Comment 4 David Corbin CLA 2002-03-08 23:35:30 EST
I've uploaded a patch that uses "-title foo" on the commandline.  The title is
normally "<perspective> - <product>"  What I've done is make so the -title
argument is appended to this, rather than replacing.  So it would be
"<perspective - <product> foo" in this case.

If someone else wants to do it differently, it will be pretty easy to do so.
Comment 5 Nick Edgar CLA 2002-05-02 09:52:46 EDT
I had a look at the patch.
BootLoader should not be modified to have UI-specific attributes.

The Workbench can get the command line arguments itself.
See the current code in the WorkbenchWindow constructor.

Note that there is currently a command line arg: -showlocation which shows the 
workspace location in the title.  Does this suffice?

Comment 6 David Corbin CLA 2002-05-08 15:20:47 EDT
Yes, that's fine as 90% (if not more) of the problem solution, for me.
Comment 7 Nick Edgar CLA 2002-05-08 16:59:16 EDT
We need to document this command line (there's a PR for this already).
Defering consideration of user-specified titles to v3.
Comment 8 Randy Giffen CLA 2002-08-12 09:23:33 EDT
Reopen to investigate
Comment 9 Eduardo Pereira CLA 2002-09-05 16:40:20 EDT
We have another PR about documeting this commant line but I could not find it 
now.
Comment 10 Kevin Haaland CLA 2003-02-07 12:46:23 EST

*** This bug has been marked as a duplicate of 23513 ***
Comment 11 Kevin Haaland CLA 2003-02-07 12:47:24 EST
Wrong defect #
Comment 12 Kevin Haaland CLA 2003-02-07 12:48:30 EST

*** This bug has been marked as a duplicate of 23519 ***
Comment 13 nikolaus heger CLA 2006-03-31 00:21:30 EST
This is an absolutely great feature, thanks! [use -showlocation to show workspace]

It was quite confusing working with 2 different workspaces before. My setup is that the workspaces correspond to two actively developed branches of the same code base, so all the files are the same and without -showlocation it was very difficult to tell them apart, resulting in me actually sometimes editing the wrong versions...