Usually problems like that goes away if you refresh your project or do a clean 
on the project.  Eclipse just get confused.

I never know which one helps for sure but when this gets really bad, these are 
the steps I do.
Project->Turn off Build Automatically
Project->Clean
Highlight all projects -> Right click -> Refresh
Highlight all projects -> Right click -> Maven -> Update Project
Make sure you only highlight cloudstack maven projects, not any source files or 
other projects, inside the project or else the options may not appear. 
Project->Turn on Build automatically

When you do this, then eclipse will rebuild all binaries and it should clear up 
any problems it has recognizing class hierarchies etc.

--Alex

> -----Original Message-----
> From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
> Sent: Tuesday, November 12, 2013 9:34 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Eclipse Question
> 
> "mouseClicked(MouseEvent) must override MouseClicked(MouseEvent)"
> 
> I meant for the second mouseClicked in that line to start with a lower-case
> 'm' by the way.
> 
> 
> On Tue, Nov 12, 2013 at 10:33 AM, Mike Tutkowski <
> mike.tutkow...@solidfire.com> wrote:
> 
> > Hi,
> >
> > I fetched and rebased on top of master yesterday and noticed in
> > Eclipse that I now have 61 error messages.
> >
> > Many of them are related to @Override, but I am not sure why Eclipse
> > is complaining.
> >
> > For example:
> >
> > package common;
> >
> > import java.awt.event.MouseEvent;
> > import java.awt.event.MouseListener;
> > import java.awt.event.MouseMotionListener;
> >
> > import streamer.BaseElement;
> > import streamer.ByteBuffer;
> >
> > public class AwtMouseEventSource extends BaseElement implements
> > MouseListener, MouseMotionListener {
> >
> >   public AwtMouseEventSource(String id) {
> >     super(id);
> >   }
> >
> >   @Override
> >   public void mouseClicked(MouseEvent e) {
> >     // Nothing to do
> >   }
> >
> > Eclipse says mouseClicked(MouseEvent) must override
> > MouseClicked(MouseEvent) for us to be able to use the @Override
> annotation.
> >
> > That makes sense, of course.
> >
> > The problem is that we do override that method properly: It comes from
> > the MouseListener interface.
> >
> > Any thoughts on why Eclipse does not recognize this? It seems to only
> > be looking in the class we extend and the class that that class extends.
> >
> > Thanks!
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkow...@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *(tm)*
> >
> 
> 
> 
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *(tm)*

Reply via email to