|
Lines 11-18
Link Here
|
| 11 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
| 12 |
package org.eclipse.ui.internal.forms.widgets; |
12 |
package org.eclipse.ui.internal.forms.widgets; |
| 13 |
|
13 |
|
| 14 |
import com.ibm.icu.text.BreakIterator; |
|
|
| 15 |
|
| 16 |
import org.eclipse.swt.SWT; |
14 |
import org.eclipse.swt.SWT; |
| 17 |
import org.eclipse.swt.custom.ScrolledComposite; |
15 |
import org.eclipse.swt.custom.ScrolledComposite; |
| 18 |
import org.eclipse.swt.events.MouseEvent; |
16 |
import org.eclipse.swt.events.MouseEvent; |
|
Lines 35-44
Link Here
|
| 35 |
import org.eclipse.swt.widgets.ScrollBar; |
33 |
import org.eclipse.swt.widgets.ScrollBar; |
| 36 |
import org.eclipse.swt.widgets.Text; |
34 |
import org.eclipse.swt.widgets.Text; |
| 37 |
import org.eclipse.ui.forms.widgets.ColumnLayout; |
35 |
import org.eclipse.ui.forms.widgets.ColumnLayout; |
|
|
36 |
import org.eclipse.ui.forms.widgets.ExpandableComposite; |
| 38 |
import org.eclipse.ui.forms.widgets.Form; |
37 |
import org.eclipse.ui.forms.widgets.Form; |
| 39 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
38 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
| 40 |
import org.eclipse.ui.forms.widgets.ILayoutExtension; |
39 |
import org.eclipse.ui.forms.widgets.ILayoutExtension; |
| 41 |
|
40 |
|
|
|
41 |
import com.ibm.icu.text.BreakIterator; |
| 42 |
|
| 42 |
public class FormUtil { |
43 |
public class FormUtil { |
| 43 |
public static final String PLUGIN_ID = "org.eclipse.ui.forms"; //$NON-NLS-1$ |
44 |
public static final String PLUGIN_ID = "org.eclipse.ui.forms"; //$NON-NLS-1$ |
| 44 |
|
45 |
|
|
Lines 399-405
Link Here
|
| 399 |
if ((c.getStyle() & SWT.WRAP) != 0) |
400 |
if ((c.getStyle() & SWT.WRAP) != 0) |
| 400 |
return true; |
401 |
return true; |
| 401 |
if (c instanceof Composite) { |
402 |
if (c instanceof Composite) { |
| 402 |
return ((Composite) c).getLayout() instanceof ILayoutExtension; |
403 |
if (((Composite) c).getLayout() instanceof ILayoutExtension) |
|
|
404 |
return true; |
| 405 |
for (Composite parent = c.getParent(); parent != null; parent = parent.getParent()) { |
| 406 |
if (parent instanceof ExpandableComposite) |
| 407 |
return true; |
| 408 |
} |
| 403 |
} |
409 |
} |
| 404 |
return false; |
410 |
return false; |
| 405 |
} |
411 |
} |