Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[geclipse-dev] Collect all classes implementing one functionality into one package

Hello!

I have proposition about packages structure in ui.

Now I'm developing filters for "Jobs" view.
We have rule that given class should be in package appropriate to its base class.

E.g. GridJobView is in package eu.geclipse.ui.views
JobViewLabelProvider - eu.geclipse.ui.providers

Other example:
GridConnectionView is in package: eu.geclipse.ui.views
ConnectionViewActions: eu.geclipse.ui.internal.actions
ConnectionViewLabelProvider: eu.geclipse.ui.providers


To implement view we have to write many classes:
ViewPart, ContentProvider, LabelProvider, Actions, Filters etc.

Problem is that all these classes are in different packages.


Maybe it would be better to gather all classes implementing one functionality into one package?


E.g. For Jobs view we will have package eu.geclipse.ui.views.JobsView with following classes inside:

GridJobView
JobViewLabelProvider
JobStatusFilter
JobSubmissionDateFilter
ConfigureFiltersAction
ConfigureFiltersDialog


I think we can talk shortly about it during our VRVS meeting.

Regards,
--
Mariusz Wojtysiak


Back to the top