When developing a plugin for an IDE Eclipse environment, you have several design considerations. These considerations ensure that you:
- Do not lock up the user interface thread.
- Decorate the UI without impacting performance.
- Process data in the background.
This tutorial discusses how to process and display data associated with resources stored in the workspace with these design considerations. We will examine how Eclipse provides a marker interface to store and handle information about a resource.
We provide best practices for handling data markers against a resource. First, we show how to mark data, then build knowledge to represent the marker on the user interface, and then update the marker as the resource changes. In this context, resources are Eclipse objects that implement the IResource interface, such as projects, files, folders, and Java™ objects (including packages, classes, and source).
This tutorial is intended for developers who can write a basic plugin but want to learn best practices when dealing with Eclipse resources.
Eclipse.org documents individual extension points and interfaces. This article provides assistance in choosing the best practice of using them in combination. Read more to learn how to take advantage of existing Eclipse functions to provide new features.