rcputils
rcputils is a collection of utility classes for Eclipse RCP development. It contains all general-purpose code I deemed useful in my projects. If you need something or have ideas for new or enhanced functionality feel free to add a bug report, to fork the github project or to contribute patches!
-
p2 repository:
http://www.ralfebert.de/projects/releases/rcputils/ -
Clone the git repository:
git clone git://github.com/ralfebert/rcputils.git
Releases / Stability
I’m following the Eclipse Version Numbering scheme for releasing rcputils. All releases except major ones (1.0.0 -> 2.0.0) will be backward compatible. I will release major versions whenever I feel like it, the p2 repository will hold all old versions for backward compatibility. Please prefer using Import-Package to refer to the rcputils packages, the bundle structure might change.
License
Overview
JFace Structured Viewers
- TableViewerBuilder A convenient builder class for creating TableViewers with support for nested properties, sorting and editing
- ContextMenu is an utility class to create context menus for structured viewers.
- SelectionUtils.getIterable(): Iterate over a JFace selection in a for each loop
Concurrent UIs
UIProcessis a Job base class which allows to update the UI after the job was completed.
JFace Data Binding
ChangeTrackerallows to react on changes in all model or target observables in a DataBindingContext globally. Can be used to set the dirty flag of an editor when something changes.DataBindingEditorPartis a base class for EditorParts that want to use DataBinding. Provides a observable for partname and has a dirty attribute that can be registered as change listener to ChangeTracker.ModelDataBindingEditorPartis base class for editors that use data binding to edit a single model object.
Nested properties
PropertyValue: Resolves nested property Strings like “company.country.name”.PropertyLabelProvider: LabelProvider that gets labels using a bean property.PropertyCellLabelProvider: CellLabelProvider that gets labels using a bean property.PropertyEditingSupport: EditingSupport that gets / sets the values using a bean property.
SWT
CrossPlatformSupport.isStyleSupported
OSGi Services
de.ralfebert.rcputils.wiredprovides base classes for RCP classes like views, editors, handlers which get OSGi services injected using Eclipse Riena Wiring.
Mockups
- RandomData: RandomData generates random data. This is helpful for generating test data for UI mockup prototypes and test cases.
Lang
Colocatedloads resources from the classpath that are stored together with java classes (co-located).DateHelperprovides methods to work withjava.util.Dateobjects.
Commands / Handler
- ToggleHandler Handler base class for style=”toggle” command contributions.

