public final class KeyFormatterFactory extends Object
A cache for formatters. It keeps a few instances of pre-defined instances of
IKeyFormatter
available for use. It also allows the default
formatter to be changed.
IKeyFormatter
Modifier and Type | Method and Description |
---|---|
static IKeyFormatter |
getDefault()
An accessor for the current default key formatter.
|
static IKeyFormatter |
getEmacsKeyFormatter()
Provides an instance of
EmacsKeyFormatter . |
static IKeyFormatter |
getFormalKeyFormatter()
Provides an instance of
FormalKeyFormatter . |
static void |
setDefault(IKeyFormatter defaultKeyFormatter)
Sets the default key formatter.
|
public static final IKeyFormatter getDefault()
null
.public static final IKeyFormatter getEmacsKeyFormatter()
EmacsKeyFormatter
.null
.public static final IKeyFormatter getFormalKeyFormatter()
FormalKeyFormatter
.null
.public static final void setDefault(IKeyFormatter defaultKeyFormatter)
defaultKeyFormatter
- the default key formatter. Must not be null
.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.