Changeset 56 for java/FramclipsePlugin/src/main/java/com/framsticks/framclipse/editors/hover/FramscriptTextHover.java
- Timestamp:
- 01/25/10 12:55:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/FramclipsePlugin/src/main/java/com/framsticks/framclipse/editors/hover/FramscriptTextHover.java
r13 r56 5 5 import org.eclipse.jface.internal.text.html.BrowserInformationControl; 6 6 import org.eclipse.jface.internal.text.html.HTMLTextPresenter; 7 import org.eclipse.jface.resource.JFaceResources; 7 8 import org.eclipse.jface.text.AbstractReusableInformationControlCreator; 8 9 import org.eclipse.jface.text.BadLocationException; … … 35 36 36 37 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); 43 46 } 44 47 } … … 47 50 48 51 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 // } 53 59 } 54 60
Note: See TracChangeset
for help on using the changeset viewer.