Changeset 1840 for trunk/org.modelica.mdt.ui/src/org
- Timestamp:
- 12/08/13 21:23:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/hover/AbstractAnnotationHover.java
r694 r1840 164 164 * @see org.eclipse.jface.text.IInformationControl#setInformation(java.lang.String) 165 165 */ 166 @Override 166 167 public void setInformation(String information) { 167 168 //replaced by IInformationControlExtension2#setInput … … 171 172 * @see org.eclipse.jface.text.IInformationControlExtension2#setInput(java.lang.Object) 172 173 */ 174 @Override 173 175 public void setInput(Object input) { 174 176 Assert.isLegal(input instanceof AnnotationInfo); … … 181 183 * @see org.eclipse.jface.text.IInformationControlExtension#hasContents() 182 184 */ 185 @Override 183 186 public boolean hasContents() { 184 187 return fInput != null; … … 192 195 * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover.AbstractInformationControl#setFocus() 193 196 */ 197 @Override 194 198 public void setFocus() { 195 199 super.setFocus(); … … 201 205 * @see org.eclipse.jface.text.AbstractInformationControl#setVisible(boolean) 202 206 */ 207 @Override 203 208 public final void setVisible(boolean visible) { 204 209 if (!visible) … … 220 225 * @see org.eclipse.jface.text.AbstractInformationControl#createContent(org.eclipse.swt.widgets.Composite) 221 226 */ 227 @Override 222 228 protected void createContent(Composite parent) { 223 229 fParent= parent; … … 232 238 * @see org.eclipse.jface.text.AbstractInformationControl#computeSizeHint() 233 239 */ 240 @Override 234 241 public Point computeSizeHint() { 235 242 Point preferedSize= getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT, true); … … 304 311 canvas.setLayoutData(gridData); 305 312 canvas.addPaintListener(new PaintListener() { 313 @Override 306 314 public void paintControl(PaintEvent e) { 307 315 e.gc.setFont(null); … … 393 401 final Link link= links[index]; 394 402 link.addKeyListener(new KeyListener() { 403 @Override 395 404 public void keyPressed(KeyEvent e) { 396 405 switch (e.keyCode) { … … 410 419 } 411 420 421 @Override 412 422 public void keyReleased(KeyEvent e) { 413 423 } … … 415 425 416 426 link.addFocusListener(new FocusListener() { 427 @Override 417 428 public void focusGained(FocusEvent e) { 418 429 int currentPosition= scrolledComposite.getOrigin().y; … … 430 441 } 431 442 443 @Override 432 444 public void focusLost(FocusEvent e) { 433 445 } … … 445 457 proposalImage.addMouseListener(new MouseListener() { 446 458 459 @Override 447 460 public void mouseDoubleClick(MouseEvent e) { 448 461 } 449 462 463 @Override 450 464 public void mouseDown(MouseEvent e) { 451 465 } 452 466 467 @Override 453 468 public void mouseUp(MouseEvent e) { 454 469 if (e.button == 1) { … … 467 482 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) 468 483 */ 484 @Override 469 485 public void widgetSelected(SelectionEvent e) { 470 486 apply(proposal, fInput.viewer, fInput.position.offset); … … 522 538 * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractReusableInformationControlCreator#doCreateInformationControl(org.eclipse.swt.widgets.Shell) 523 539 */ 540 @Override 524 541 public IInformationControl doCreateInformationControl(Shell parent) { 525 542 return new AnnotationInformationControl(parent, new ToolBarManager(SWT.FLAT)); … … 543 560 * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractReusableInformationControlCreator#doCreateInformationControl(org.eclipse.swt.widgets.Shell) 544 561 */ 562 @Override 545 563 public IInformationControl doCreateInformationControl(Shell parent) { 546 564 return new AnnotationInformationControl(parent, EditorsUI.getTooltipAffordanceString()) { … … 548 566 * @see org.eclipse.jface.text.IInformationControlExtension5#getInformationPresenterControlCreator() 549 567 */ 568 @Override 550 569 public IInformationControlCreator getInformationPresenterControlCreator() { 551 570 return fPresenterControlCreator; … … 557 576 * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractReusableInformationControlCreator#canReuse(org.eclipse.jface.text.IInformationControl) 558 577 */ 578 @Override 559 579 public boolean canReuse(IInformationControl control) { 560 580 if (!super.canReuse(control)) … … 590 610 * @see org.eclipse.jface.action.Action#run() 591 611 */ 612 @Override 592 613 public void run() { 593 614 Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); … … 628 649 * @see org.eclipse.jface.text.ITextHover#getHoverInfo(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion) 629 650 */ 651 @Override 630 652 public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) { 631 653 return null; … … 636 658 * @since 3.4 637 659 */ 660 @Override 638 661 public Object getHoverInfo2(ITextViewer textViewer, IRegion hoverRegion) { 639 662 IPath path; … … 706 729 * @since 3.4 707 730 */ 731 @Override 708 732 public IInformationControlCreator getHoverControlCreator() { 709 733 if (fHoverControlCreator == null) … … 716 740 * @since 3.4 717 741 */ 742 @Override 718 743 public IInformationControlCreator getInformationPresenterControlCreator() { 719 744 if (fPresenterControlCreator == null)
Note: See TracChangeset
for help on using the changeset viewer.