Skip to content
jeremiaheinle edited this page Apr 11, 2021 · 25 revisions

TargetFocus, SourceFocus, ResourceChanges

Tree{ TreeNode }

ResourceTree, ProjectTree, FeatureTree are all the same datastructure that stores info for these views.

The Trees receive patches from the PatchesManager, process these and store the provided info.

ITreeContentProvider -> ResourceChangesTreeContentProvider, SourceFocusTreeContentProvider, TargetFocusTreeContentProvider

The views all have a ITreeContentProvider class. This is a necessary class that gets set by the View to provide the content of the Trees to the view.

The ResourceChanges class also uses ResourceChangesColumnLabelProvider class.

This class processes the deltas from the ResourceTree. It then uses the information from inside the deltas to fill the info inside the columns, in the ResourceChanges tab.

FeatureContext

Wizard{ WizardPage }, FeatureContextManager{ FeatureContextManagerPage }, FeatureContextWizard{ FeatureContextWizard }, FeatureContextHandler

The FeatureContext view has two kinds of Wizards. The FeatureContextWizard is for editing, adding and removing FeatureContext. The FeatureContextManger gives and overview of the existing FeatureContext.

A Wizard contains one or several pages of the type WizardPage.

Gets infos about Feautures from FeatureContextManager.

PartAdapter

PartAdapter for the editor. Creates and updates the eclipse.Markers of the current file of the editor. Uses information from the MappingManager and the MarkerUtils class to do so.

view.Context

ActiveContextHandler

Contributes the start and stop button to the menu bar. Sets MappingManager to active and non-active.

DynamicContextPopupItems

Contributes right-click Menue in editor, called "Map selection to Feature". Uses FeatureContextManager to receive info about the FeatureContexts. Add CodeMappings via CodeMappingHanlder.

SelectContextContribution

Contributes the combobox in the menu bar for selecting the current FeatureContext. The displayed FeatureContexts are taken from the FeatureContextManager, and a selection of FeatureContext sets the current Actual Context field in the FeatureContextManager;

Views

Views all implement the IEventListener.

Clone this wiki locally