Bug 3200 - JavaBuilder - Build progress message could be shortened (1GEAWH9)
Summary: JavaBuilder - Build progress message could be shortened (1GEAWH9)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 98
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:51 EDT by Nick Edgar CLA
Modified: 2002-02-11 06:46 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2001-10-10 22:51:11 EDT
When building a project containing the Eclipse UI plugin, the progress message often gets split into two lines, 
then goes back to one line.  It's more flashy than you would like.
The message could be shortened from, e.g. "Building: Compiling contents of Eclipse UI Standard Components/org/eclipse/ui/views/navigator"
to something like: "Compiling org.eclipse.ui.views.navigator".
From a Java perspective, the package names are more interesting than the folder names.
So parent folders need not be included, and it should use '.' instead of '/'.


NOTES:

PM (6/19/2001 12:28:22 PM)
	Agreed, but the build progress should then be more indicative about the project being processed, so that we can show progress with relative path info.
Comment 1 DJ Houghton CLA 2001-10-23 23:51:21 EDT
PRODUCT VERSION:
110 JDK

Comment 2 Kent Johnson CLA 2001-12-10 15:29:06 EST
The message is now shorter but still includes the Project & source folder.
Comment 3 Kent Johnson CLA 2002-01-07 13:59:27 EST
Can you remove the 'Building:' prefix which only occurs when a project is 
explicitly told to build ("Rebuild project" from pop-up menu).

Full builds & normal incremental builds do not have a prefix.
Comment 4 John Arthorne CLA 2002-01-07 14:22:41 EST
That prefix is added by the UI operation that invokes the build (BuildAction).  
I believe you can manipulate this using IProgressMonitor.setTaskName().  I've 
found the following to work well:

String mainTaskLabel = ...;
monitor.beginTask(mainTaskLabel, work);
monitor.setTaskName(mainTaskLabel);

This replaces the default task name supplied by the outer context (the UI in 
this case).
Comment 5 Nick Edgar CLA 2002-01-07 15:02:02 EST
Normally clients should not have to call setTaskName.
See IProgressMonitor.setTaskName for more details.

I've removed the "Building: " prefix from BuildAction.
Comment 6 Kent Johnson CLA 2002-01-23 11:37:53 EST
The message details everything we need & is no longer "flashy".