Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private void setColorAndFont(Control control, Color foreground, Color background

private void createAnnotationInformation(Composite parent, final Annotation annotation) {
Composite composite= new Composite(parent, SWT.NONE);
composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
GridLayout layout= new GridLayout(2, false);
layout.marginHeight= 2;
layout.marginWidth= 2;
Expand All @@ -313,17 +313,19 @@ public void paintControl(PaintEvent e) {
}
});

StyledText text= new StyledText(composite, SWT.MULTI | SWT.WRAP | SWT.READ_ONLY);
GridData data= new GridData(SWT.FILL, SWT.FILL, true, true);
StyledText text = new StyledText(composite, SWT.V_SCROLL| SWT.MULTI | SWT.WRAP | SWT.READ_ONLY);

GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);
text.setLayoutData(data);
String annotationText= annotation.getText();
if (annotationText != null)
String annotationText = annotation.getText();
if (annotationText != null){
text.setText(annotationText);
}
}

private void createCompletionProposalsControl(Composite parent, ICompletionProposal[] proposals) {
Composite composite= new Composite(parent, SWT.NONE);
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
GridLayout layout2= new GridLayout(1, false);
layout2.marginHeight= 0;
layout2.marginWidth= 0;
Expand Down
Loading