Package Name | Comment |
org.eclipse.core.tests.databinding | |
org.eclipse.core.tests.databinding.beans | |
org.eclipse.core.tests.databinding.conversion | |
org.eclipse.core.tests.databinding.observable | |
org.eclipse.core.tests.databinding.observable.list | |
org.eclipse.core.tests.databinding.observable.map | |
org.eclipse.core.tests.databinding.observable.set | |
org.eclipse.core.tests.databinding.observable.value | |
org.eclipse.core.tests.databinding.validation | |
org.eclipse.core.tests.internal.databinding | |
org.eclipse.core.tests.internal.databinding.conversion | |
org.eclipse.core.tests.internal.databinding.internal.beans | |
org.eclipse.core.tests.internal.databinding.observable | |
org.eclipse.core.tests.internal.databinding.observable.masterdetail | |
org.eclipse.core.tests.internal.databinding.validation | |
org.eclipse.jface.action |
Package-level Javadoc
Provides support for shared UI resources such as menus,
tool bars, and status lines.
Package Specification
Contribution managers coordinate contributions to shared UI resources such
as menus, menu bars, tool bars, and status lines. ContributionManager
maintains the contributions as a dynamic list of contribution items (IContributionItems).
Separators (Separator) can be included in contribution lists to
break up the list's visual representation. Internally, contribution lists
can be organized into named groups via special group markers (GroupMarker)
to facilitate programatic insertion at specific positions within the list.
Three specific contribution managers are provided: a status line manager
(StatusLineManager), a tool bar manager (ToolBarManager),
and a hierarchical menu manager (MenuManager).
Actions (IAction) are commands which can be triggered from
the UI, like the ones found in menus, toolbars, and buttons. Menus and
tools bars are typically populated with contribution items that delegate
to actions (ActionContributionItem).
Note: None of the classes in this package maintain global state.
|
org.eclipse.jface.bindings |
Package-level Javadoc
Provides support for bindings between commands and various user input events
(e.g., keyboard shortcuts).
Package Specification
This package provides the common classes and abstract classes required to
provide binding support.
All the real work in this package is carried out by the
BindingManager , and most work with bindings can be carried out
directly with it. The binding manager manages a collection of bindings, and
decides which bindings are active at any point in time. By changes the various
properties of the manager, the active bindings will change. The binding
manager implements a caching scheme that is optimized for an infreqeuntly
changing set of bindings, but frequently changing properties.
The binding manager also manages schemes. A scheme is a grouping of bindings.
To create a scheme, use BindingManager.getScheme(String) . The
scheme must then be defined before it can be used.
If you wish to implement your own type of binding, then you must subclass
Trigger and TriggerSequence . Then, simply use these
subclasses with the BindingManager .
|
org.eclipse.jface.bindings.keys |
Package-level Javadoc
Provides support for bindings between commands and keys.
Package Specification
This just a key-specific implementation of the generic bindings and trigger
support. This package provides an abstraction layer between the SWT key events
and key bindings within JFace.
KeySequence is a TriggerSequence that has
KeyStroke instances as triggers. A KeyStroke is
composed of one or more keys held down at the same time. A key stroke ends
when the keys are released. A key stroke can contain zero or more modifiers
keys, but it always contains exactly one natural key. A modifier key is one of
Ctrl, Shift, Alt, or Command. A natural key is anything else.
Natural keys are further subdivided into special keys and character keys.
Character keys are keys that have an ASCII representation (e.g., Space, 'A' and
Backspace). Special keys are ones that do not (e.g., Arrow Up, F11, and
NumLock).
SWTKeySupport is a static class that provides the link between SWT
and these internal representations. It has methods for converting between SWT
key events and the internal representation, and vice versa. It also provides
access to the native-style key formatting facilities.
|
org.eclipse.jface.bindings.keys.formatting |
Package-level Javadoc
Provides support for formatting key sequences.
Package Specification
This is a collection fo various formatters for key sequences. The formatters
are accessible through the KeyFormatterFactory . To change how
keys are formatted in the user interface, call
KeyFormatterFactory.setDefault(IKeyFormatter) . They provided
formatters are:
- FormalKeyFormatter
- Provides a formal grammar for reading and writing key sequences.
- NativeKeyFormatter
- Provide a native-looking, human-readable format for keys.
- CompactKeyFormatter
- A variation of the native formatter that provides a more compact representation.
- EmacsKeyFormatter
- An Xemacs-style formatter (e.g., C^x C^x).
|
org.eclipse.jface.commands |
Package-level Javadoc
Provides JFace-specific support for commands.
Package Specification
This package provides a handler that wraps a legacy instance of
IAction , as well as a manager for associating images with commands.
|
org.eclipse.jface.conformance.databinding | |
org.eclipse.jface.contentassist |
Package-level Javadoc
Provides a content assist add-on for implementors of IContentAssistSubjectControl.
Content assist supports the user in writing by proposing context
sensitive completions at a given position. A completion can also
be a incomplete in itself and content assist provides means to deal with
nested completions.
Package Specification
ISubjectControlContentAssistant defines the concept of the content assist add-on.
It collaborates with content type specific completion processors (ISubjectControlContentAssistProcessor)
in order to generate completion proposals (ICompletionProposal)
valid at the current document position. The package provides a default
implementation SubjectControlContentAssistant which completely defines and implements
the UI and the control flow for content assist.
Deprecated, as of 3.2, replaced by Platform UI's field assist support
|
org.eclipse.jface.contexts |
Package-level Javadoc
Provides JFace-specific support for contexts.
Package Specification
This package provides some context identifiers that have special meaning in the
context of JFace.
|
org.eclipse.jface.databinding.swt |
Package-level Javadoc
Provides classes that can be used to observe changes in SWT widgets.
Package Specification
This package provides classes that can be used to observe changes in SWT widgets.
|
org.eclipse.jface.databinding.viewers |
Package-level Javadoc
Provides classes that can be used to observe the JFace Viewer framework.
Package Specification
This package provides classes that can be used to observe the JFace Viewer framework.
|
org.eclipse.jface.databinding.wizard |
Package-level Javadoc
Provides classes that bridge between data binding and the JFace Wizard framework.
Package Specification
This package provides classes that bridge between data binding and the JFace Wizard framework.
|
org.eclipse.jface.dialogs |
Package-level Javadoc
Provides support for dialogs.
Package Specification
A dialog is a specialized window, typically consisting of a dialog area
and a button bar, designed for narrow-focussed communication with the user.
The dialog framework consists of an abstract base class (Dialog),
along with more concrete dialog subclasses for displaying messages (MessageDialog),
soliciting text input (InputDialog), and displaying progress during
a long-running operation (ProgressMonitorDialog).
Dialog stores (IDialogStore, DialogStore) provide
a general framework for organizing a dialog's settings into key/value pairs.
Multi-page dialogs are made easier through the use of dialog pages (IDialogPage,
DialogPage).
Note: None of the classes in this package maintain global state.
|
org.eclipse.jface.fieldassist |
Package-level Javadoc
Provides classes that help communicate proper content for fields in dialogs and wizards.
Package Specification
This package provides classes that can be used to guide a dialog user through choosing
appropriate content for fields in a dialog or wizard.
A ContentProposalAdapter can be attached to an arbitrary control to provide
a popup showing content proposals. These proposals appear when the defined
assist keystroke is invoked. The ContentProposalAdapter manages the creation,
hiding, and showing of the proposal popup, as well as the proper handling of key events
between the adapted control and its popup. Implementors of IControlContentAdapter
allow the adapter to set and retrieve the contents of the supplied control.
An AutoCompleteField configures a ContentProposalAdapter in a manner
that supports automatic field completion popups that filter based on the control's
contents.
ControlDecoration can be used to decorate an arbitrary control with
an image that communicates information about the control's content. Decorations can be
used to show additional information about a field, such as its status, or a cue
that shows availability of content proposals. Decorations are defined in pre-defined
locations relative to the control, and can be set up to show at all times, or only
when the control has focus. It is up to the client to ensure there is enough
space allocated to render the control decoration. Decorations can optionally show
descriptive text when the user hovers over them.
DecoratedField can also be used to decorate a control. The main difference
is that decorated fields reserve space for multiple decorations in particular
locations around the control. To do this, the field manages the creation of the
field's control, using a specialized layout to ensure there is adequate space
reserved for decorations around the control. Other than using the field to manage
the decorations themselves, clients are expected to interact
directly with the control.
Note: None of the classes in this package maintain global state.
|
org.eclipse.jface.internal | |
org.eclipse.jface.internal.databinding.internal.swt | |
org.eclipse.jface.internal.databinding.internal.viewers | |
org.eclipse.jface.internal.databinding.provisional.swt | |
org.eclipse.jface.internal.databinding.provisional.viewers | |
org.eclipse.jface.internal.provisional.action | |
org.eclipse.jface.internal.text | |
org.eclipse.jface.internal.text.html | |
org.eclipse.jface.internal.text.link.contentassist |
Linked Position Infrastructure - Internal Copy of Content Assistant
This package is a modified copy of org.eclipse.jface.text.contentassist that supports the linked mode proposals.
This package is internal and may disappear if the changes are merged with the API content assist package. Subject to change without notice.
|
org.eclipse.jface.internal.text.revisions |
Revision model - Internal Classes
Internal classes and helpers to implement the revision model and its UI presentation. See
the org.eclipse.jface.text.revisions
package for the API classes implementing the revision model.
Contains everything needed to:
- paint revision information in the vertical ruler
- adapt the revision information to (quick) diff scripts
This package is internal and may be subject to change without notice.
|
org.eclipse.jface.internal.text.source |
Revision model - Internal Classes
Internal support classes and helpers for the org.eclipse.jface.text.source package.
|
org.eclipse.jface.layout |
Package-level Javadoc
Provides support for layout generation.
Package Specification
This package provides classes that can be used to generate layouts.
|
org.eclipse.jface.menus |
Package-level Javadoc
Provides support for trim specification.
Package Specification
This package provides classes for trim widgets.
|
org.eclipse.jface.operation |
Package-level Javadoc
Provides JFace support for long-running operations.
Package Specification
Long-running operations must be dealt with specially in order to keep the
UI helpful and responsive. Typically this involves temporarily disabling
most controls and displaying a busy cursor and progress indicator; while
the operation is in progress, the only requests that will be accepted will
be ones to cancel the operation.
The IRunnableWithProgress interface should be implemented by
any class whose instances are intended to be executed as long-running operations.
These objects can then be run in any runnable context (IRunnableContext),
including such standard JFace UI components as application windows (ApplicationWindow),
wizard dialogs (WizardDialog), and progress monitor dialogs (ProgressMonitorDialog).
The utility class ModalContext defines the basic mechanism and
UI event loop for modal operations.
|
org.eclipse.jface.preference |
Package-level Javadoc
Provides a framework for preferences.
Package Specification
A preference manager (class PreferenceManager) maintains
a tree of preference nodes. Preferences are presented to the end
user in a preference dialog consisting of preference pages.
A preference page consists of multiple preference fields, which can be
displayed and modified though field editors. The framework contains
an abstract base class for preference dialogs (PreferenceDialog),
and an abstract preference page class (FieldEditorPreferencePage)
for hosting these field editors.
The individual preference values are maintained in a preference store
(IPreferenceStore). Each preference has a current value and a
default value use to (re-)initialize it. The framework provides a concrete
preference store implementation (PreferenceStore) based on an
internal java.util.Properties object, with support for persisting
the non-default preference values to files or streams.
A field editor presents the value of a single preference to the end
user. The value is loaded from the preference store; if modified by the
end user, the value is validated and eventually stored back to the preference
store.
This package contains ready-to-use field editors for various types of
preferences:
-
BooleanFieldEditor - booleans
-
IntegerFieldEditor - integers
-
StringFieldEditor - text strings
-
RadioGroupFieldEditor - enumerations
-
ColorFieldEditor - RGB colors
-
FontFieldEditor - fonts
-
DirectoryFieldEditor - directories
-
FileFieldEditor - files
-
PathEditor - paths
All field editors are subclasses of the abstract base class FieldEditor;
the framework allows new kinds of field editors to be defined by subclassing
this class or one of its subclasses.
Note: None of the classes in this package maintain global state.
|
org.eclipse.jface.resource |
Package-level Javadoc
Provides support for managing resources such as SWT
fonts and images.
Package Specification
This package contains support for managing resources, including:
-
font registries (FontRegistry) - for hanging on to the SWT font
objects needed by an application
-
color registries (ColorRegistry) - for hanging on to the SWT color
objects needed by an application
-
image registries (ImageRegistry) - for hanging on to the SWT image
objects needed by an application
-
image descriptors (ImageDescriptor) - surrogate object for creating
SWT images
-
string conversion (StringConverter) - for parsing property files
The JFace resources module is an independent JFace module requiring a basic
knowledge of SWT and the JFace property change event mechanism. Familiarity
with other JFace modules is not required.
Image descriptors are objects that knows how to create an image on demand.
They serve as a lightweight representation of images in situations where
no SWT display exists yet, and are used mainly in conjunction with image
registries. This package contains the image descriptor framework, which
is a simple hierarchy rooted at the abstract class ImageDescriptor.
The framework includes abstract subclasses for composing images (CompositeImageDescriptor)
as well as a ready-made concrete subclass for loading images from files
(FileImageDescriptor).
The class JFaceResources maintains global state on behalf of
JFace itself consisting of JFace's own image registry, font registry, resource
bundle, and preference store.
|
org.eclipse.jface.tests.databinding | |
org.eclipse.jface.tests.databinding.scenarios | |
org.eclipse.jface.tests.databinding.swt | |
org.eclipse.jface.tests.databinding.viewers | |
org.eclipse.jface.tests.examples.databinding.mask.internal | |
org.eclipse.jface.tests.examples.model | |
org.eclipse.jface.tests.internal.databinding.internal.swt | |
org.eclipse.jface.tests.internal.databinding.internal.viewers | |
org.eclipse.jface.text |
Package-level Javadoc
Provides a framework for editing text documents.
Package Specification
The packages defines and implements a viewer for text documents.
ITextViewer defines the concept of a document based, editiable viewer.
ITextViewer offers the following functionality:
-
present a document
-
event consumption (IEventConsumer)
-
viewport tracking and notification (IIViewportListener)
-
change notification (ITextListener, ITextInputListener)
-
listeners (combined view/model notification, input document)
-
standard text editing functions plus text hover support
-
visual region support
An ITextViewer supports the following plugins
-
IUndoManager for the undo/redo mechanism
-
IDoubleClickStrategy for partition type specific behavior on mouse
double click
-
IAutoIndentStrategy for content type specific behavior on
inserting a line break
-
ITextHover for content type specific behavior when overing over
text
The package provides default implementations for all these interfaces.
|
org.eclipse.jface.text.contentassist |
Package-level Javadoc
Provides a content assist add-on for an ITextViewer.
Content assist supports the user in writing by proposing context
sensitive completions at a given document position. A completion can also
be a incomplete in itself and content assist provides means to deal with
nested completions.
Package Specification
IContentAssistant defines the concept of the content assist add-on.
It collaborates with content type specific completion processors (IContentAssistProcessor)
in order to generate completion proposals (ICompletionProposal)
valid at the current document position. The package provides a default
implementation ContentAssistant which completely defines and implements
the UI and the control flow for content assist.
|
org.eclipse.jface.text.formatter |
Package-level Javadoc
Provides a content formatter add-on for an ITextViewer.
A content formatter changes the formatting of a document region while
preserving and correctly updating the positions of the document.
Package Specification
IContentFormatter defines the concept of a text formatter. It
collaborates with content type specific formatting stratgies (IFormattingStrategy)
which for a given document region format the subregion with the
matching
content type. The package contains a default implementation of IContentFormatter
(ContentFormatter).
Additionally, an implementation of IContentFormatterExtension
is provided
for text edit based formatting strategies. This implementation only
accepts formatting strategies
implementing the extension interface IFormattingStrategyExtension.
These formatting strategies are required to handle the position
updating of the document. To facilitate the work with these text edit
based formatting strategies, a default implementation called ContextBasedFormattingStrategy
is provided. Formatting strategies inheriting from this class are text
edit based and behave context dependent. Depending on the formatting
context that is passed
to the content formatter, different preferences and modes can be used
to format different parts of a document.
To set up a proper working text edit based content formatter, the
following steps are needed:
- Create an instance of IFormattingContext. The default
implementation FormattingContext already
provides support for the conversion of preferences from a preference
store to a map and vice versa. The method getPreferenceKeys
usually has to be overridden to return the appropriate keys of the
preferences used during the formatting process. Then register a map of
preferences
with the formatting context by calling setProperty(String, Object)
with the property identifier FormattingContextProperties.CONTEXT_PREFERENCES.
- Create an instance of the text edit based content formatter class
MultiPassContentFormatter. The document partitioning and
its associated
default content type have to be passed to the constructor. This
information is needed since the content formatter is able to format
documents
according to arbitrary partitionings and default content types.
- Register the formatting strategies for the content types that
have to be formatted. If a formatting strategy is
registered as master strategy, it is automatically associated with the
default content type of the specified partitioning.
If the formatting strategy is registered as slave strategy, it is
associated with the indicated content type during the registration.
Note that the master strategy can also be registered as a slave
strategy for a content type other than the default content type.
- Specify the proper formatting mode (see
FormattingContextProperties):
- For whole document formatting set the property CONTEXT_DOCUMENT
of the created formatting context to true. This is
equivalent to setting
CONTEXT_REGION with a region
spanning the whole document.
- For multiple region formatting set the property
CONTEXT_REGION
of the formatting context. Note that the content formatter
automatically aligns the offset of a region to a line start for the
master formatting strategy, it also completes eventual partitions
covered only partially by the region for the slave formatting
strategies.
- For explicit formatting of a partition with the formatting
strategy registered for a certain content type use the
property CONTEXT_PARTITION. Note that the region denoted by
this property must correspond to a partition relative to the specified
partitioning in the document to be formatted. The content type of this
property overrides the content type of the partition
in the document.
- Call the method MultiPassContentFormatter#format(IDocument,
IFormattingContext) with the created formatting context
and the document to be formatted.
|
org.eclipse.jface.text.hyperlink |
Package-level Javadoc
Provides support for detecting and displaying hyperlinks in ISourceViewers.
SourceViewer supports hyperlinked text regions inline in the displayed text. It delegates
the detection and presentation of hyperlinks to IHyperlinkDetector and IHyperlinkPresenter, respectively.
Override the following methods in SourceViewerConfiguration to customize the hyperlink behavior of a source viewer:
- getHyperlinkDetectors() to specify the set of hyperlink detectors used by the viewer
- getHyperlinkPresenter() to specify the set of hyperlink presenters used by the viewer
- getHyperlinkStateMask() to specify when hyperlinks are activated
|
org.eclipse.jface.text.information |
Package-level Javadoc
Provides an information provider add-on for an ITextViewer.
An information provider presents information for a certain subject in a
specific information control. An information control usually is a floating
window.
Package Specification
IInformationPresenter defines the concept of an information provider.
It collaborates with content type specific information providers (IInformationProvider)
which determine for a certain offset in a text viewer an information subject
and the information available about this subject.. The package contains
a default implementation of IInformationPresenter (InformationPresenter).
|
org.eclipse.jface.text.link |
Linked Position Infrastructure
Provides support for linked editing of documents.
The Linked Position Infrastructure lets one set up a mode in an editor
in which regions in a document (or several documents) are linked,
i.e. editions
of one linked position will be reflected in the others.
Classes
LinkedPositionGroup : a set of linked positions. Add
positions to a group using the addPosition method. See LinkedPosition and ProposalPosition
for a position type that lets one attach ICompletionProposal s to
be shown when the position is hit.
LinkedModeModel : umbrellas several LinkedPositionGroup s,
e.g. in a template that has several groups of linked positions. Handles
the forwarding of updates received via an IDocumentListener . Add LinkedPositionGroup s
to
an model using the addGroup method. Existence of a LinkedModeModel can be
tested by one of the static methods.
LinkedModeUI : The UI for linked mode (for one
model, to be precise). Monitors key etc. activity, monitors exit
conditions, creates a painter etc.
Properties:
- cycling mode (whether to jump to the first position
after the last): either of
CYCLE_ALWAYS , CYCLE_NEVER
and CYCLE_WHEN_NO_PARENT (default).
- exit position: where to jump upon leaving the linked
mode (e.g. using Enter, or Tab from the last position when not
cycling). Set
isTabStop to true if tabbing
should stop over when cycling.
- position listener:
extending classes may register a position listener which will get
notified whenever
the focus position changes. An example is
org.eclipse.ui.texteditor.link.EditorLinkedModeUI.EditorHistoryUpdater
which will store the edit location in the editor navigation history.
Example
IDocument doc1, doc2;
ITextViewer viewer1, viewer2;
/* create groups - this step is independent of the linked mode */
LinkedPositionGroup group1= new LinkedPositionGroup();
group1.addPosition(new LinkedPosition(doc1, 3, 4));
group1.addPosition(new LinkedPosition(doc1, 7, 8));
LinkedPositionGroup group2= new LinkedPositionGroup();
group2.addPosition(new LinkedPosition(doc1, 15, 25));
group2.addPosition(new LinkedPosition(doc2, 0, 10));
/* set up linked mode */
LinkedModeModel model= new LinkedModeModel();
model.addGroup(group1);
model.addGroup(group2);
model.forceInstall();
/* create UI */
LinkedModeUI ui= new LinkedModeUI(model, new ITextViewer[] { viewer1, viewer2 });
ui.enter();
|
org.eclipse.jface.text.presentation |
Package-level Javadoc
Provides a presentation reconciler add-on for an ITextViewer.
A presentation reconciler keep the presentation (styles and colors) in
sync with the content of the document serving as the ITextViewer's
input.
Package Specification
IPresentationReconciler defines the concept of a presentation
reconciler. It collaborates with content type specific presentation damagers
(IPresentationDamager) which for a given document change determine
the region of the presentation which must be rebuild, and content type
specific presentation repairers (IPresentationRepairer) which
construct for a given damage region the document presentation. The package
contains a default implementation of IPresentationReconciler (PresentationReconciler).
|
org.eclipse.jface.text.quickassist |
Package-level Javadoc
This package provides the quick assist assistant add-on for an ISourceViewer.
The quick assist assistant's purpose is to propose, display, and insert quick assists and quick fixes
available at the current source viewer's quick assist invocation context.
A quick fix is a completion that can correct a problem reported and visible through an Annotation
while a quick assist is not related to a problem or Annotation. Since quick assists can be proposed
where appropriate they are normally not visible in the viewer. The quick assist assistant implementation in
this package can show the quick assists that are available on the current line.
Package Specification
IQuickAssistAssistant defines the concept of the quick assist assistant add-on.
It collaborates with a quick assist processor (IQuickAssistProcessor)
in order to generate quick fix and quick assist completion proposals (ICompletionProposal)
available at the current quick assist invocation context (IQuickAssistInvocationContext).
The package provides a default implementation QuickAssistAssistant which completely defines
and implements the UI and the control flow for a quick assist assistant.
|
org.eclipse.jface.text.reconciler |
Package-level Javadoc
Provides a reconciler add-on for an ITextViewer.
A reconciler provides generic synchronization support with
the content of the document serving as the ITextViewer's input.
There is no explicit model of what is synchronized.
Package Specification
IReconciler defines the concept of a reconciler. It collaborates
with content type specific reconciling strategies (IReconcilingStrategy)
which perform the synchronization for a given dirty region. The package
contains a default implementation of IReconciler (Reconciler).
Reconciler and MonoReconciler implements reconciling
as a periodic background activity and folds co-located changes while being
inactive.
|
org.eclipse.jface.text.revisions |
Package-level Javadoc
Provides a revision model and a protocol to display revision information in a vertical ruler column.
Package Specification
IRevisionRulerColumn is the protocol that a team provider can use to display line based revision control information to a document.
RevisionInformation defines the revision model, which contains a list of Revisions, which in turn contain RevisionRanges.
|
org.eclipse.jface.text.rules |
Package-level Javadoc
Provides a framework for rule based text scanning
and uses the framework to provide rule-driven default implementations of
IPresentationDamager, IPresentationRepairer and IDocumentPartitioner.
Package Specification
RuleBasedScanner is a document-based scanner controlled by IRule
objects. When evaluated an IRule always returns an IToken.
The package provides a set of rules whereby PatternRule is the
most important one. PatternRule defines a pattern-configurable
rule.
|
org.eclipse.jface.text.source |
Package-level Javadoc
Provides a framework for connecting document regions
with annotations and for displaying those annotations in combination with
an ITextViewer. ISourceViewer combines annotation support
and all text viewer add-ons.
Package Specification
ISourceViewer defines the concept of a document based, editable
viewer supporting visual annotations. ISourceViewer supports document-specific
and viewer-specific annotations attached to the viewer's input document.
An ISourceViewer uses an IAnnotationModel to manage annotations
and to inform implementers of IAnnotationModelListener about changes
in respect to annotations. An IVerticalRuler represents an IAnnotationModel
access adapter for an SWT widget capapble of display annotations.
This package also provides default implementations for all defined interfaces.
|
org.eclipse.jface.text.templates |
Templates
Provides support for templates in text based editors.
Packages
- org.eclipse.jface.text.templates
- org.eclipse.ui.workbench.texteditor.templates
- org.eclipse.ui.editors.templates
Introduction
Templates are shortcuts for frequently used fragments of text such as
code patterns or complex text entities. They may contain variables
which are only resolved at the time when the template is inserted
within a context. Together with linked mode, inserting a template can
create a on-the-fly edit mask within a text viewer.
Templates are specified as text, variables are defined using the ${variable}
notation known from
Ant, for example. The following snippet shows an example template for
an instance check in Java:
if (${name} instanceof ${type}) {
${type} ${new_name} = (${type})${name};
${cursor}
}
In this template, the variables (name,type, ...) are resolved
when inserted into java source and changing one variable instance will
also change the other. When leaving linked mode, the caret is placed at
the cursor variable.
Template functionality can be added to a custom text editor by offering
TemplateProposals as content assist choices, which is
simplified by using a subclass of TemplateCompletionProcessor. User template management can be
offered by including a TemplatePreferencePage which uses a TemplateStore and ContextTypeRegistry as the
underlying model to store templates. The org.eclipse.ui.editors.templates
extension point can be used to allow other plug-ins to contribute
templates to an editor. This is accomplished by using the ContributionTemplateStore and ContributionContextTypeRegistry
subclasses of the above types.
Template variables are resolved by a TemplateVariableResolver. GlobalTemplateVariables offers
some default variables such as date, user, and selection, but advanced
features such as resolving to language constructs can be performed in
subclasses.
Classes
- Template a template consists of name, context
type identifier, and a pattern.
- TemplateTranslator and TemplateBuffer are used to
parse the template grammar and don't need to be used usually.
- A TemplateProposal can be
offered in content assist, possibly created by a subclass of TemplateCompletionProcessor.
- TemplateStore and ContextTypeRegistry manage a
set of templates within a plug-in and offer ways to store them in the
preferences or externally in XML streams via a TemplateReaderWriter.
- ContributionTemplateStore and ContributionContextTypeRegistry
add awareness for the org.eclipse.ui.editors.templates
extension point.
- TemplatePreferencePage allows
the user to access the templates within a TemplateStore.
Example
See the Template Editor Example in the org.eclipse.ui.examples.javaeditor project.
|
org.eclipse.jface.text.templates.persistence |
Templates
Provides persistence support for templates.
Packages
- org.eclipse.jface.text.templates
- org.eclipse.ui.workbench.texteditor.templates
- org.eclipse.ui.editors.templates
Introduction
Templates are shortcuts for frequently used fragments of text such as
code patterns or complex text entities. They may contain variables
which are only resolved at the time when the template is inserted
within a context. Together with linked mode, inserting a template can
create a on-the-fly edit mask within a text viewer.
Templates are specified as text, variables are defined using the ${variable}
notation known from
Ant, for example. The following snippet shows an example template for
an instance check in Java:
if (${name} instanceof ${type}) {
${type} ${new_name} = (${type})${name};
${cursor}
}
In this template, the variables (name,type, ...) are resolved
when inserted into java source and changing one variable instance will
also change the other. When leaving linked mode, the caret is placed at
the cursor variable.
Template functionality can be added to a custom text editor by offering
TemplateProposals as content assist choices, which is
simplified by using a subclass of TemplateCompletionProcessor. User template management can be
offered by including a TemplatePreferencePage which uses a TemplateStore and ContextTypeRegistry as the
underlying model to store templates. The org.eclipse.ui.editors.templates
extension point can be used to allow other plug-ins to contribute
templates to an editor. This is accomplished by using the ContributionTemplateStore and ContributionContextTypeRegistry
subclasses of the above types.
Template variables are resolved by a TemplateVariableResolver. GlobalTemplateVariables offers
some default variables such as date, user, and selection, but advanced
features such as resolving to language constructs can be performed in
subclasses.
Classes
- Template a template consists of name, context
type identifier, and a pattern.
- TemplateTranslator and TemplateBuffer are used to
parse the template grammar and don't need to be used usually.
- A TemplateProposal can be
offered in content assist, possibly created by a subclass of TemplateCompletionProcessor.
- TemplateStore and ContextTypeRegistry manage a
set of templates within a plug-in and offer ways to store them in the
preferences or externally in XML streams via a TemplateReaderWriter.
- ContributionTemplateStore and ContributionContextTypeRegistry
add awareness for the org.eclipse.ui.editors.templates
extension point.
- TemplatePreferencePage allows
the user to access the templates within a TemplateStore.
Example
See the Template Editor Example in the org.eclipse.ui.examples.javaeditor project.
|
org.eclipse.jface.text.tests | |
org.eclipse.jface.text.tests.reconciler | |
org.eclipse.jface.text.tests.rules | |
org.eclipse.jface.util |
Package-level Javadoc
Provides useful building blocks used throughout JFace,
including property change events, a listener list implementation, and runtime
checked assertions.
|
org.eclipse.jface.viewers |
Package-level Javadoc
Provides a framework for viewers, which are model-based
content adapters for SWT widgets.
Package Specification
A viewer is a model-based adapter on an SWT widget. Each viewer has
four parts:
an input - the object that serves as the viewer's model
a widget - the SWT control through which the viewer's model is displayed
a content provider - mediates between the model and viewer
a label provider - maps model objects to displayable labels containing
text and/or an image
This package contains the viewer framework. The viewer framework is an
independent JFace module. Using it requires a knowledge of SWT, but does
not require familiarity with any of the other JFace modules. The framework
consists of abstract base classes for viewers (Viewer, StructuredViewer,
AbstractTreeViewer) together with concrete viewer classes (ListViewer,
TreeViewer,
TableViewer,
TableTreeViewer, CheckboxTreeViewer,
and CheckboxTableViewer),
and various lesser support classes. The concrete structured viewer classes
are ready-to-use and have built-in support for drag-and-drop, filtering
(IViewerFilter and ViewerFilter), and sorting (IViewerSorter
and ViewerSorter); these classes may also be subclassed further
if required.
In general terms, creating a viewer involves the following steps:
-
instantiating a viewer on some pre-existing SWT widget,
-
setting the viewer's content provider (an object implementing IContentProvider),
-
setting the viewer's label provider (an object implementing
ILabelProvider),
-
and, finally, setting the viewer's input.
Once a viewer's input is set, the viewer becomes active. As the model changes,
it is the content provider's responsibility to respond to changes to the
model by telling the viewer what to change (done by calling add and remove
methods on the viewer). An existing viewer may be retargeted by giving
it a different object as input; the viewer is responsible for informing
the content provider of these kinds of wholesale changes (IContentProvider.inputChanged).
Also, each viewer registers with its label provider for notification of
changes that would affect what the viewer displays (see ILabelProviderListener.stateChanged).
Note: None of the classes in this package maintain global state.
|
org.eclipse.jface.viewers.deferred |
Package-level Javadoc
Provides a framework for viewers that handle deferred contents.
Package Specification
The deferred viewers are viewers that can handle concurrent updates from a
variety of Threads.
|
org.eclipse.jface.window |
Package-level Javadoc
Provides a general framework for creating and managing
windows.
Package Specification
A JFace window is an object that has no visual representation (no widgets)
until it is told to open. All JFace windows, including dialogs, are instances
of the abstract class Window or a subclass. This package contains
the base window classes:
Window itself, which provides support
for a basic windows; and ApplicationWindow, which provides ready-to-use
support for a high-level "main window" with standard menus, tool bar, and
status line. Both of these classes may be subclassed to define additional
types of window as required.
This package also contains WindowManager, instance of which
are used for managing a group of windows. Window managers are useful in
applications which create many different windows (dialogs, wizards, etc.)
in addition to a main window. Window managers are not required for simple
applications.
The only global state maintained by classes in this package is a default
image for window title bars (Window.setDefaultImage).
|
org.eclipse.jface.wizard |
Package-level Javadoc
Provides a framework for wizards.
Package Specification
A wizard dialog is a specialized window for walking the end user through
a sequence of steps; each step is presented on a separate page.
At the most abstract level, the protocol is given by 3 interfaces:
-
IWizard - a wizard consisting of several wizard pages
-
IWizardPage - an individual wizard page
-
IWizardContainer - the outside world from the point of view of
a wizard
A wizard is any object implementing IWizard. The abstract base
class Wizard is provided as a starting point; it is simpler to
subclass Wizard than to implement IWizard from scratch.
The main responsibility of a Wizard subclass is doing the real
work when the wizard finishes.
Similarly, a wizard page is any object implementing IWizardPage.
The abstract base class WizardPage is provided as a starting point.
The main responsibility of a WizardPage subclass is providing
the SWT controls and the backing logic for a single wizard page.
WizardDialog is a ready-to-use JFace dialog that is instantiated
with a wizard and acts as the wizard's container. This dialog has a standard
layout: an area at the top containing the wizard's title, description,
and image; the actual wizard page appears in the middle; below it is a
progress indicator; and at the bottom is an area with a message line and
a button bar containing Next, Back, Finish, Cancel, and Help buttons.
WizardSelectionPage, a special abstract subclass of WizardPage,
allows whole other wizards to be connected to a root page.
Note: None of the classes in this package maintain global state.
|