|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.refractions.udig.catalog.google.Policy
public class Policy
Policy implements Internationalization convenience methods for the plugin and makes progress monitor policy decisions.
| 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 id,
java.lang.Object 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 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.Object binding1,
java.lang.Object binding2)
Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings. |
static java.lang.String |
bind(java.lang.String id,
java.lang.Object binding1,
java.lang.Object binding2,
java.lang.Object binding3)
Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings. |
static java.lang.String |
bind(java.lang.String key,
java.util.ResourceBundle b)
Gets a string from the resource bundle. |
static void |
checkCanceled(IProgressMonitor monitor)
Checks if the progress monitor is canceled. |
static void |
cleanup()
Clean up after bundle. |
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)
Returns a monitor for the given monitor |
static IProgressMonitor |
subMonitorFor(IProgressMonitor monitor,
int ticks)
Set up a monitor - for a sub taks. |
static java.lang.String |
toTruncatedPath(IPath path,
int split)
Search backwards until split separators are found |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Policy()
| Method Detail |
|---|
public static void localize(java.lang.String bundleName)
bundleName - the name of the bundlepublic static void cleanup()
public static java.lang.String bind(java.lang.String id,
java.lang.Object binding)
id - the id to look upbinding - the string to bind to the result
public static java.lang.String bind(java.lang.String id,
java.lang.Object binding1,
java.lang.Object binding2)
id - the id to look upbinding1 - the first string to bind to the resultbinding2 - the second string to bind to the result
public static java.lang.String bind(java.lang.String id,
java.lang.Object binding1,
java.lang.Object binding2,
java.lang.Object binding3)
id - the id to look upbinding1 - the first string to bind to the resultbinding2 - the second string to bind to the resultbinding3 - the third string to bind to the result
public static java.lang.String bind(java.lang.String key,
java.util.ResourceBundle b)
key - the id to look upb - nudle used for key binding
public static java.lang.String bind(java.lang.String key)
key - the id to look up
public static java.lang.String bind(java.lang.String key,
java.lang.Object[] args)
key - the id to look upargs - the strings to bind to the result
public static void checkCanceled(IProgressMonitor monitor)
monitor - the onitor to check for cancellation
OperationCanceledException - if the monitor is canceledpublic static IProgressMonitor monitorFor(IProgressMonitor monitor)
monitor - the monitor to return a monitor for
public static IProgressMonitor subMonitorFor(IProgressMonitor monitor,
int ticks)
monitor - ticks -
public static java.lang.String toTruncatedPath(IPath path,
int split)
path - split -
public static java.util.ResourceBundle getBundle()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||