Ignore:
Timestamp:
12/08/13 21:23:52 (11 years ago)
Author:
masberg
Message:

Add missing override annotations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/hover/AbstractAnnotationHover.java

    r694 r1840  
    164164         * @see org.eclipse.jface.text.IInformationControl#setInformation(java.lang.String)
    165165         */
     166        @Override
    166167        public void setInformation(String information) {
    167168            //replaced by IInformationControlExtension2#setInput
     
    171172         * @see org.eclipse.jface.text.IInformationControlExtension2#setInput(java.lang.Object)
    172173         */
     174        @Override
    173175        public void setInput(Object input) {
    174176            Assert.isLegal(input instanceof AnnotationInfo);
     
    181183         * @see org.eclipse.jface.text.IInformationControlExtension#hasContents()
    182184         */
     185        @Override
    183186        public boolean hasContents() {
    184187            return fInput != null;
     
    192195         * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover.AbstractInformationControl#setFocus()
    193196         */
     197        @Override
    194198        public void setFocus() {
    195199            super.setFocus();
     
    201205         * @see org.eclipse.jface.text.AbstractInformationControl#setVisible(boolean)
    202206         */
     207        @Override
    203208        public final void setVisible(boolean visible) {
    204209            if (!visible)
     
    220225         * @see org.eclipse.jface.text.AbstractInformationControl#createContent(org.eclipse.swt.widgets.Composite)
    221226         */
     227        @Override
    222228        protected void createContent(Composite parent) {
    223229            fParent= parent;
     
    232238         * @see org.eclipse.jface.text.AbstractInformationControl#computeSizeHint()
    233239         */
     240        @Override
    234241        public Point computeSizeHint() {
    235242            Point preferedSize= getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
     
    304311            canvas.setLayoutData(gridData);
    305312            canvas.addPaintListener(new PaintListener() {
     313                @Override
    306314                public void paintControl(PaintEvent e) {
    307315                    e.gc.setFont(null);
     
    393401                final Link link= links[index];
    394402                link.addKeyListener(new KeyListener() {
     403                    @Override
    395404                    public void keyPressed(KeyEvent e) {
    396405                        switch (e.keyCode) {
     
    410419                    }
    411420
     421                    @Override
    412422                    public void keyReleased(KeyEvent e) {
    413423                    }
     
    415425
    416426                link.addFocusListener(new FocusListener() {
     427                    @Override
    417428                    public void focusGained(FocusEvent e) {
    418429                        int currentPosition= scrolledComposite.getOrigin().y;
     
    430441                    }
    431442
     443                    @Override
    432444                    public void focusLost(FocusEvent e) {
    433445                    }
     
    445457                proposalImage.addMouseListener(new MouseListener() {
    446458
     459                    @Override
    447460                    public void mouseDoubleClick(MouseEvent e) {
    448461                    }
    449462
     463                    @Override
    450464                    public void mouseDown(MouseEvent e) {
    451465                    }
    452466
     467                    @Override
    453468                    public void mouseUp(MouseEvent e) {
    454469                        if (e.button == 1) {
     
    467482                 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
    468483                 */
     484                @Override
    469485                public void widgetSelected(SelectionEvent e) {
    470486                    apply(proposal, fInput.viewer, fInput.position.offset);
     
    522538         * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractReusableInformationControlCreator#doCreateInformationControl(org.eclipse.swt.widgets.Shell)
    523539         */
     540        @Override
    524541        public IInformationControl doCreateInformationControl(Shell parent) {
    525542            return new AnnotationInformationControl(parent, new ToolBarManager(SWT.FLAT));
     
    543560         * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractReusableInformationControlCreator#doCreateInformationControl(org.eclipse.swt.widgets.Shell)
    544561         */
     562        @Override
    545563        public IInformationControl doCreateInformationControl(Shell parent) {
    546564            return new AnnotationInformationControl(parent, EditorsUI.getTooltipAffordanceString()) {
     
    548566                 * @see org.eclipse.jface.text.IInformationControlExtension5#getInformationPresenterControlCreator()
    549567                 */
     568                @Override
    550569                public IInformationControlCreator getInformationPresenterControlCreator() {
    551570                    return fPresenterControlCreator;
     
    557576         * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractReusableInformationControlCreator#canReuse(org.eclipse.jface.text.IInformationControl)
    558577         */
     578        @Override
    559579        public boolean canReuse(IInformationControl control) {
    560580            if (!super.canReuse(control))
     
    590610         * @see org.eclipse.jface.action.Action#run()
    591611         */
     612        @Override
    592613        public void run() {
    593614            Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
     
    628649     * @see org.eclipse.jface.text.ITextHover#getHoverInfo(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)
    629650     */
     651    @Override
    630652    public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
    631653        return null;
     
    636658     * @since 3.4
    637659     */
     660    @Override
    638661    public Object getHoverInfo2(ITextViewer textViewer, IRegion hoverRegion) {
    639662        IPath path;
     
    706729     * @since 3.4
    707730     */
     731    @Override
    708732    public IInformationControlCreator getHoverControlCreator() {
    709733        if (fHoverControlCreator == null)
     
    716740     * @since 3.4
    717741     */
     742    @Override
    718743    public IInformationControlCreator getInformationPresenterControlCreator() {
    719744        if (fPresenterControlCreator == null)
Note: See TracChangeset for help on using the changeset viewer.