1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-10 18:45:26 +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) public void fetchDeferredChildren(Object o, IElementCollector collector, IProgressMonitor monitor)
{ {
SystemFetchOperation operation = null; SystemFetchOperation operation = null;
monitor = Policy.monitorFor(monitor);
String taskName = SystemViewResources.RESID_FETCHING;
monitor.beginTask(taskName, 100);
operation = getSystemFetchOperation(o, collector);
try 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)); operation.run(Policy.subMonitorFor(monitor, 100));
} }
catch (InvocationTargetException e) catch (InvocationTargetException e)

View file

@ -234,6 +234,8 @@ public class SystemViewResources extends NLS {
public static String RESID_SCRATCHPAD; public static String RESID_SCRATCHPAD;
public static String RESID_REMOTE_SCRATCHPAD; public static String RESID_REMOTE_SCRATCHPAD;
public static String RESID_FETCHING;
static { static {
// load message values from bundle file // load message values from bundle file
NLS.initializeMessages(BUNDLE_NAME, SystemViewResources.class); NLS.initializeMessages(BUNDLE_NAME, SystemViewResources.class);

View file

@ -202,3 +202,5 @@ RESID_PROPERTY_LINKINGACTION_TOOLTIP = Link with Editor
RESID_SCRATCHPAD=Scratchpad RESID_SCRATCHPAD=Scratchpad
RESID_REMOTE_SCRATCHPAD=Remote Scratchpad RESID_REMOTE_SCRATCHPAD=Remote Scratchpad
RESID_FETCHING = Fetching Remote Resources