Ignore:
Timestamp:
01/25/10 12:55:18 (14 years ago)
Author:
tmaciejewski
Message:

Framclipse updates:

  • added information where parsing errors occured
  • removed deprecated API from hover support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/FramclipsePlugin/src/main/java/com/framsticks/framclipse/editors/hover/FramscriptTextHover.java

    r13 r56  
    55import org.eclipse.jface.internal.text.html.BrowserInformationControl;
    66import org.eclipse.jface.internal.text.html.HTMLTextPresenter;
     7import org.eclipse.jface.resource.JFaceResources;
    78import org.eclipse.jface.text.AbstractReusableInformationControlCreator;
    89import org.eclipse.jface.text.BadLocationException;
     
    3536
    3637                public IInformationControl doCreateInformationControl(Shell parent) {
    37                         int shellStyle= SWT.RESIZE | SWT.TOOL;
    38                         int style= SWT.V_SCROLL | SWT.H_SCROLL;
    39                         if (BrowserInformationControl.isAvailable(parent))
    40                                 return new BrowserInformationControl(parent, shellStyle, style);
    41                         else
    42                                 return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false));
     38//                      int shellStyle= SWT.RESIZE | SWT.TOOL;
     39//                      int style= SWT.V_SCROLL | SWT.H_SCROLL;
     40//                      if (BrowserInformationControl.isAvailable(parent)) {
     41//                              return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, true);
     42//                              return new BrowserInformationControl(parent, shellStyle, style);
     43//                      } else
     44//                              return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false));
     45                                return new DefaultInformationControl(parent, true);
    4346                }
    4447        }
     
    4750               
    4851                public IInformationControl doCreateInformationControl(Shell parent) {
    49                         if (BrowserInformationControl.isAvailable(parent))
    50                                 return new BrowserInformationControl(parent, SWT.TOOL | SWT.NO_TRIM, SWT.NONE, EditorsUI.getTooltipAffordanceString());
    51                         else
    52                                 return new DefaultInformationControl(parent, SWT.NONE, new HTMLTextPresenter(true), EditorsUI.getTooltipAffordanceString());
     52//                      if (BrowserInformationControl.isAvailable(parent)) {
     53//                              return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, true);
     54//                              return new BrowserInformationControl(parent, SWT.TOOL | SWT.NO_TRIM, SWT.NONE, EditorsUI.getTooltipAffordanceString());
     55//                      } else {
     56//                              return new DefaultInformationControl(parent, SWT.NONE, new HTMLTextPresenter(true), EditorsUI.getTooltipAffordanceString());
     57                                return new DefaultInformationControl(parent, true);
     58//                      }
    5359                }
    5460
Note: See TracChangeset for help on using the changeset viewer.