RSE
Release 3.4

org.eclipse.rse.ui.operations
Class Policy

java.lang.Object
  extended by org.eclipse.rse.ui.operations.Policy

public class Policy
extends Object


Field Summary
protected static ResourceBundle bundle
           
 
Constructor Summary
Policy()
           
 
Method Summary
static String bind(String key)
          Gets a string from the resource bundle.
static String bind(String key, Object[] args)
          Gets a string from the resource bundle and binds it with the given arguments.
static String bind(String id, String binding)
          Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.
static String bind(String id, String binding1, String binding2)
          Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings.
static void cancelOperation()
           
static void checkCanceled(IProgressMonitor monitor)
          Progress monitor helpers
static ResourceBundle getBundle()
           
static void localize(String bundleName)
          Creates a NLS catalog for the given locale.
static IProgressMonitor monitorFor(IProgressMonitor monitor)
           
static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks)
           
static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks, int style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundle

protected static ResourceBundle bundle
Constructor Detail

Policy

public Policy()
Method Detail

localize

public static void localize(String bundleName)
Creates a NLS catalog for the given locale.


bind

public static String bind(String id,
                          String binding)
Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.


bind

public static String bind(String id,
                          String binding1,
                          String binding2)
Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings.


bind

public static String bind(String key)
Gets a string from the resource bundle. We don't want to crash because of a missing String. Returns the key if not found.


bind

public static String bind(String key,
                          Object[] args)
Gets a string from the resource bundle and binds it with the given arguments. If the key is not found, return the key.


checkCanceled

public static void checkCanceled(IProgressMonitor monitor)
Progress monitor helpers


cancelOperation

public static void cancelOperation()

monitorFor

public static IProgressMonitor monitorFor(IProgressMonitor monitor)

subMonitorFor

public static IProgressMonitor subMonitorFor(IProgressMonitor monitor,
                                             int ticks)

subMonitorFor

public static IProgressMonitor subMonitorFor(IProgressMonitor monitor,
                                             int ticks,
                                             int style)

getBundle

public static ResourceBundle getBundle()

RSE
Release 3.4

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.