mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-10 10:35:23 +02:00
Bug 153255 - replaced the Policy.bind that was being used with a constant string from SystemViewResources.
This commit is contained in:
parent
c1059e956d
commit
f3510bfea4
3 changed files with 9 additions and 4 deletions
|
@ -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)
|
||||||
|
|
|
@ -233,6 +233,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
|
||||||
|
|
|
@ -201,4 +201,6 @@ 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
|
Loading…
Add table
Reference in a new issue