|
Lines 67-80
Link Here
|
| 67 |
|
67 |
|
| 68 |
|
68 |
|
| 69 |
public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) { |
69 |
public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) { |
| 70 |
return getInformationControlCreator(sourceViewer, true); |
|
|
| 71 |
} |
| 72 |
|
| 73 |
private IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer, final boolean cutDown) { |
| 74 |
return new IInformationControlCreator() { |
70 |
return new IInformationControlCreator() { |
| 75 |
public IInformationControl createInformationControl(Shell parent) { |
71 |
public IInformationControl createInformationControl(Shell parent) { |
| 76 |
int style = cutDown ? SWT.NONE : (SWT.V_SCROLL | SWT.H_SCROLL); |
72 |
int style = true ? SWT.NONE : (SWT.V_SCROLL | SWT.H_SCROLL); |
| 77 |
return new DefaultInformationControl(parent, style, new HTMLTextPresenter(cutDown)); |
73 |
return new DefaultInformationControl(parent, style, new HTMLTextPresenter(true)); |
| 78 |
} |
74 |
} |
| 79 |
}; |
75 |
}; |
| 80 |
} |
76 |
} |
|
Lines 123-128
Link Here
|
| 123 |
fInformationPresenter = new JavaScriptInformationPresenter(getInformationPresenterControlCreator(sourceViewer)); |
119 |
fInformationPresenter = new JavaScriptInformationPresenter(getInformationPresenterControlCreator(sourceViewer)); |
| 124 |
|
120 |
|
| 125 |
fInformationPresenter.setSizeConstraints(60, 10, true, true); |
121 |
fInformationPresenter.setSizeConstraints(60, 10, true, true); |
|
|
122 |
fInformationPresenter.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer)); |
| 126 |
} |
123 |
} |
| 127 |
return fInformationPresenter; |
124 |
return fInformationPresenter; |
| 128 |
} |
125 |
} |