RSE
Release 3.2

org.eclipse.rse.ui.operations
Class Policy

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

public class Policy
extends java.lang.Object


Field Summary
protected static java.util.ResourceBundle bundle
           
 
Constructor Summary
Policy()
           
 
Method Summary
static java.lang.String bind(java.lang.String key)
          Gets a string from the resource bundle.
static java.lang.String bind(java.lang.String key, java.lang.Object[] args)
          Gets a string from the resource bundle and binds it with the given arguments.
static java.lang.String bind(java.lang.String id, java.lang.String binding)
          Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.
static java.lang.String bind(java.lang.String id, java.lang.String binding1, java.lang.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 java.util.ResourceBundle getBundle()
           
static void localize(java.lang.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 java.util.ResourceBundle bundle
Constructor Detail

Policy

public Policy()
Method Detail

localize

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


bind

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


bind

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


bind

public static java.lang.String bind(java.lang.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 java.lang.String bind(java.lang.String key,
                                    java.lang.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 java.util.ResourceBundle getBundle()

RSE
Release 3.2

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