Skip to main content



      Home
Home » Eclipse Projects » GEF » Should interfaces be prefixed with I?
Should interfaces be prefixed with I? [message #47701] Thu, 05 December 2002 09:03 Go to next message
Eclipse UserFriend
After some programming with the Eclipse SDK, I kind of like the
convention to begin interface names with an uppercase I - as in
"IStatus" - together with an implementation "class Status implements
IStatus".

With the exception of IFigure, it seems, that GEF doesn't follow this
convention. Implementations of interfaces XXX are some times called
XXImpl, sometimes DefaultXXX, often there're prefixed with a project
specific prefix LogicXXX. Was there any reason not to follow the
eclipse conventions (other than historical ones)?

It's probably too late now, but I wished, it would be changed.


bye
--
Stefan Matthias Aust
www.3plus4software.de // Inter Deum Et Diabolum Semper Musica Est
Re: Should interfaces be prefixed with I? [message #47916 is a reply to message #47701] Thu, 05 December 2002 15:42 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

We are trying to follow the Java coding standards. I would like to avoid
IFigure, but then I couldn't decide what to call the default implementation.
We have had suggestions to completely remove interfaces for Figure and
EditPart. What do you think?

We plan to delete all of the PaletteXxx interfaces, and rename the classes
to the interface names.
originally, Draw2d only required SWT, and SWT does not use I prefix for
interfaces.

"Stefan Matthias Aust" <sma@3plus4.de> wrote in message
news:asnlun$nmd$2@rogue.oti.com...
> After some programming with the Eclipse SDK, I kind of like the
> convention to begin interface names with an uppercase I - as in
> "IStatus" - together with an implementation "class Status implements
> IStatus".
>
> With the exception of IFigure, it seems, that GEF doesn't follow this
> convention. Implementations of interfaces XXX are some times called
> XXImpl, sometimes DefaultXXX, often there're prefixed with a project
> specific prefix LogicXXX. Was there any reason not to follow the
> eclipse conventions (other than historical ones)?
>
> It's probably too late now, but I wished, it would be changed.
>
>
> bye
> --
> Stefan Matthias Aust
> www.3plus4software.de // Inter Deum Et Diabolum Semper Musica Est
>
Previous Topic:Connection anchors to an emulated draw2d list of labels?
Next Topic:How to limit edit part size for resizing?
Goto Forum:
  


Current Time: Thu Jul 24 15:42:40 EDT 2025

Powered by FUDForum. Page generated in 0.02907 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top