Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 97516 Details for
Bug 227128
Leverage new compiler cancellation support into BuildNotifier
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed patch
patch.txt (text/plain), 1.91 KB, created by
Kent Johnson
on 2008-04-24 15:35:17 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2008-04-24 15:35:17 EDT
Size:
1.91 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/builder/BuildNotifier.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/BuildNotifier.java,v >retrieving revision 1.33 >diff -u -r1.33 BuildNotifier.java >--- model/org/eclipse/jdt/internal/core/builder/BuildNotifier.java 12 Sep 2007 17:52:01 -0000 1.33 >+++ model/org/eclipse/jdt/internal/core/builder/BuildNotifier.java 24 Apr 2008 19:34:23 -0000 >@@ -18,7 +18,7 @@ > import org.eclipse.jdt.internal.compiler.problem.AbortCompilation; > import org.eclipse.jdt.internal.core.util.Messages; > >-public class BuildNotifier { >+public class BuildNotifier extends org.eclipse.jdt.core.compiler.CompilationProgress { > > protected IProgressMonitor monitor; > protected boolean cancelling; >@@ -64,8 +64,12 @@ > } > > public void begin() { >+ begin(totalWork); >+} >+ >+public void begin(int amountOfWork) { > if (monitor != null) >- monitor.beginTask("", totalWork); //$NON-NLS-1$ >+ monitor.beginTask("", amountOfWork); //$NON-NLS-1$ > this.previousSubtask = null; > } > >@@ -114,6 +118,11 @@ > this.previousSubtask = null; > } > >+public boolean isCanceled() { >+ checkCancelWithinCompiler(); >+ return false; >+} >+ > /** > * Returns a string describing the problems. > */ >@@ -192,6 +201,10 @@ > this.progressPerCompilationUnit = progress; > } > >+public void setTaskName(String message) { >+ subTask(message); >+} >+ > public void subTask(String message) { > String pm = problemsMessage(); > String msg = pm.length() == 0 ? message : pm + " " + message; //$NON-NLS-1$ >@@ -274,4 +287,8 @@ > public void updateProgressDelta(float percentWorked) { > updateProgress(percentComplete + percentWorked); > } >+ >+public void worked(int workIncrement, int remainingWork) { >+ // we use updateProgress(int) instead >+} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 227128
: 97516