Bug 340307 - A simple way of ordering IASTListeners
Summary: A simple way of ordering IASTListeners
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IMP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Robert M. Fuhrer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 08:56 EDT by Jurgen Vinju CLA
Modified: 2014-01-09 15:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jurgen Vinju CLA 2011-03-17 08:56:04 EDT
The current ordering is implemented using AnalysisRequired levels is ad-hoc.

Let's have every IASTListener implement Comparable<IASTListener>. Now, if an IASTListener thinks it has to run before or after some other IASTListener it can use its implementation of compareTo to order it.

Cheers