1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +02:00

Bug 153255 - replaced the Policy.bind that was being used with a constant string from SystemViewResources.

This commit is contained in:
David Dykstal 2006-09-21 16:59:52 +00:00
parent c1059e956d
commit f3510bfea4
3 changed files with 9 additions and 4 deletions

View file

@ -1757,11 +1757,12 @@ public abstract class AbstractSystemViewAdapter
public void fetchDeferredChildren(Object o, IElementCollector collector, IProgressMonitor monitor)
{
SystemFetchOperation operation = null;
monitor = Policy.monitorFor(monitor);
String taskName = SystemViewResources.RESID_FETCHING;
monitor.beginTask(taskName, 100);
operation = getSystemFetchOperation(o, collector);
try
{
monitor = Policy.monitorFor(monitor);
monitor.beginTask(Policy.bind("RemoteFolderElement.fetchingRemoteChildren", getLabel(o)), 100); //$NON-NLS-1$
operation = getSystemFetchOperation(o, collector);
operation.run(Policy.subMonitorFor(monitor, 100));
}
catch (InvocationTargetException e)

View file

@ -233,6 +233,8 @@ public class SystemViewResources extends NLS {
public static String RESID_SCRATCHPAD;
public static String RESID_REMOTE_SCRATCHPAD;
public static String RESID_FETCHING;
static {
// load message values from bundle file

View file

@ -201,4 +201,6 @@ RESID_PROPERTY_LINKINGACTION_TOOLTIP = Link with Editor
RESID_SCRATCHPAD=Scratchpad
RESID_REMOTE_SCRATCHPAD=Remote Scratchpad
RESID_REMOTE_SCRATCHPAD=Remote Scratchpad
RESID_FETCHING = Fetching Remote Resources