Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.operations
Class Policy

java.lang.Object
  extended bycom.ibm.etools.systems.core.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 IProgressMonitor infiniteSubMonitorFor(IProgressMonitor monitor, int ticks)
           
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)

infiniteSubMonitorFor

public static IProgressMonitor infiniteSubMonitorFor(IProgressMonitor monitor,
                                                     int ticks)

getBundle

public static ResourceBundle getBundle()

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.