Bug 155424 - [api][rulers] need better names for RulerColumn and AbstractRulerColumn
Summary: [api][rulers] need better names for RulerColumn and AbstractRulerColumn
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M2   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2006-08-28 12:46 EDT by Dani Megert CLA
Modified: 2006-09-13 10:39 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2006-08-28 12:46:09 EDT
3.3

We need better names for RulerColumn and AbstractRulerColumn, especially because
1. RulerColumn is abstract as well
2. AbstractRulerColumnRulerColumn extends RulerColumn

I suggest to rename RulerColumn to AbstractContributedRuler.

The other question is whether AbstractRulerColumn needs to be abstract at all. There is no method marked abstract. If so, we could name it DefaultRulerColumn.
Comment 1 Tom Hofmann CLA 2006-09-11 01:22:12 EDT
+1 to changing the names.

AbstractContributedRuler is not precise IMO as traditionally the *ruler* ist the entire thing (e.g. the CompositeRuler that holds all columns) and the column is one element in the ruler.

DefaultRulerColumn makes no sense either, IMO, as while it has no abstract methods, it also does nothing without subclassing. A default implementation should at least offer some basic behavior.
Comment 2 Dani Megert CLA 2006-09-11 05:08:33 EDT
>AbstractContributedRuler
Typo, I meant AbstractContributedRulerColumn.

But an even better solution is to
- move RulerColumn stuff into IContributedRulerColumn and remove RulerColumn
- change the extension point to use an IContributedRulerColumn.
- AbstractRulerColumn no longer depends on the contributed ruler column an
  gets pushed down to JFace Text
Comment 3 Dani Megert CLA 2006-09-13 10:39:33 EDT
Fixed in HEAD.
Available in builds > N20060914-0010.