Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2001-06-06 16:36:35 +0000
committerDJ Houghton2001-06-06 16:36:35 +0000
commit66db7e1949a9623d120745d5e03f36924395f08e (patch)
treeea882b9d62ec1d3949cf7824e821baec60712fe3
parent6c45252411d769b53f5bed0dec99f885108cc76f (diff)
downloadeclipse.platform.resources-66db7e1949a9623d120745d5e03f36924395f08e.tar.gz
eclipse.platform.resources-66db7e1949a9623d120745d5e03f36924395f08e.tar.xz
eclipse.platform.resources-66db7e1949a9623d120745d5e03f36924395f08e.zip
fix for: 1GEPB3X: ITPCORE:WINNT - "Building:" prefix in build progress dialog
-rw-r--r--bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/SaveManager.java22
-rw-r--r--bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Workspace.java8
2 files changed, 11 insertions, 19 deletions
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/SaveManager.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/SaveManager.java
index 4ed368ae7..09143be34 100644
--- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/SaveManager.java
+++ b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/SaveManager.java
@@ -75,8 +75,7 @@ public ISavedState addParticipant(Plugin plugin, ISaveParticipant participant) t
protected void broadcastLifecycle(final int lifecycle, Map contexts, final MultiStatus warnings, IProgressMonitor monitor) {
monitor = Policy.monitorFor(monitor);
try {
- String taskname = Policy.bind("resources.broadcasting");
- monitor.beginTask(taskname, contexts.size());
+ monitor.beginTask(null, contexts.size());
for (final Iterator it = contexts.entrySet().iterator(); it.hasNext();) {
Map.Entry entry = (Map.Entry) it.next();
Plugin plugin = (Plugin) entry.getKey();
@@ -406,7 +405,7 @@ protected DataInputStream resetStream(DataInputStream input, IPath location, IPa
protected void restore(Project project, IProgressMonitor monitor) throws CoreException {
monitor = Policy.monitorFor(monitor);
try {
- monitor.beginTask(Policy.bind("resources.restoring"), 40);
+ monitor.beginTask(null, 40);
if (project.isOpen()) {
restoreTree(project, Policy.subMonitorFor(monitor, 10));
} else {
@@ -427,7 +426,7 @@ protected void restore(Project project, IProgressMonitor monitor) throws CoreExc
protected void restore(IProgressMonitor monitor) throws CoreException {
monitor = Policy.monitorFor(monitor);
try {
- monitor.beginTask(Policy.bind("resources.restoring"), 50);
+ monitor.beginTask(null, 50);
// need to open the tree to restore, but since we're not
// inside an operation, be sure to close it afterwards
workspace.newWorkingTree();
@@ -532,8 +531,7 @@ protected void restoreSnapshots(IProgressMonitor monitor) throws CoreException {
monitor = Policy.monitorFor(monitor);
String message;
try {
- message = Policy.bind("resources.restoring");
- monitor.beginTask(message, Policy.totalWork);
+ monitor.beginTask(null, Policy.totalWork);
IPath snapLocation = workspace.getMetaArea().getSnapshotLocationFor(workspace.getRoot());
java.io.File localFile = snapLocation.toFile();
@@ -601,8 +599,7 @@ protected void restoreTree(Project project, IProgressMonitor monitor) throws Cor
monitor = Policy.monitorFor(monitor);
String message;
try {
- message = Policy.bind("resources.restoring");
- monitor.beginTask(message, Policy.totalWork);
+ monitor.beginTask(null, Policy.totalWork);
IPath treeLocation = workspace.getMetaArea().getTreeLocationFor(project, false);
IPath tempLocation = workspace.getMetaArea().getBackupLocationFor(treeLocation);
if (!treeLocation.toFile().exists() && !tempLocation.toFile().exists())
@@ -771,8 +768,7 @@ protected void snapTree(ElementTree tree, IProgressMonitor monitor) throws CoreE
monitor = Policy.monitorFor(monitor);
String message;
try {
- message = Policy.bind("resources.snapshoting");
- monitor.beginTask(message, Policy.totalWork);
+ monitor.beginTask(null, Policy.totalWork);
// don't need to snapshot if there are no changes
if (tree == lastSnap)
return;
@@ -868,8 +864,7 @@ public void startup(IProgressMonitor monitor) throws CoreException {
protected void writeTree(Map statesToSave, DataOutputStream output, IProgressMonitor monitor) throws IOException, CoreException {
monitor = Policy.monitorFor(monitor);
try {
- String message = Policy.bind("resources.writing");
- monitor.beginTask(message, Policy.totalWork);
+ monitor.beginTask(null, Policy.totalWork);
boolean wasImmutable = false;
try {
// Create an array of trees to save. Ensure that the current one is in the list
@@ -950,8 +945,7 @@ protected void writeTree(Project project, int depth) throws CoreException {
protected void writeTree(Project project, DataOutputStream output, IProgressMonitor monitor) throws IOException, CoreException {
monitor = Policy.monitorFor(monitor);
try {
- String message = Policy.bind("resources.writing");
- monitor.beginTask(message, 10);
+ monitor.beginTask(null, 10);
boolean wasImmutable = false;
try {
/**
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Workspace.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Workspace.java
index ebbf9426d..c177345da 100644
--- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Workspace.java
+++ b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Workspace.java
@@ -109,8 +109,7 @@ private IResourceDelta broadcastChanges(IResourceDelta delta, ElementTree tree,
public void build(int trigger, IProgressMonitor monitor) throws CoreException {
monitor = Policy.monitorFor(monitor);
try {
- String message = Policy.bind("events.building.0");
- monitor.beginTask(message, Policy.opWork);
+ monitor.beginTask(null, Policy.opWork);
try {
prepareOperation();
beginOperation(true);
@@ -1242,9 +1241,8 @@ protected void shutdown(IProgressMonitor monitor) throws CoreException {
monitor = Policy.monitorFor(monitor);
try {
IManager[] managers = { buildManager, notificationManager, propertyManager, fileSystemManager, markerManager, saveManager, workManager };
- String message = Policy.bind("resources.shuttingDown");
- monitor.beginTask(message, managers.length);
- message = Policy.bind("resources.shutdownProblems");
+ monitor.beginTask(null, managers.length);
+ String message = Policy.bind("resources.shutdownProblems");
MultiStatus status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IResourceStatus.INTERNAL_ERROR, message, null);
// best effort to shutdown every object and free resources
for (int i = 0; i < managers.length; i++) {

Back to the top