[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Hi e4 developers,
I have some minor proposals for the e4 code, but I don't know where to put them; opening bugs for them seems overkill to me.
Therefore I am posting them here. Could please someone pick up what is acceptable?
- PrimaryObjectSupplier should be replaced by IObjectSupplier
Class PrimaryObjectSupplier provides no functionality, and the name
is clumsy. I cannot see why there needs to be an abstract class instead of
an interface. If the abstract class needs to stay, I would rename
it to ObjectSupplier.
- Rename PrimaryObjectSupplier.get(...) to PrimaryObjectSupplier.getObjects(...)
This improves readability of the code.
- Question: The ContextObjectSupplier.get(...) checks the 'track' parameter
and creates a RunAndTrack when 'track' is true'. In this case, however, it
does not compute the actual arguments for the IObjectDescriptors. Doesn't
that mean that there should be two different methods on an object supplier?
PrimaryObjectSupplier.getObjects(IObjectDescriptors ...)
PrimaryObjectSupplier.trackObjects(IObjectDescriptors ...)
- "abstract public" should be replaced by "public abstract"
There are a lot of classes where I found this.
- EclipseContext.removeListenersTo(Object) should be renamed
removeListenersFor(Object).
Stefan