Lines 28-33
Link Here
|
28 |
example we will generate our own set of random strings as follows: |
28 |
example we will generate our own set of random strings as follows: |
29 |
<pre> |
29 |
<pre> |
30 |
private static ArrayList resources = new ArrayList(); |
30 |
private static ArrayList resources = new ArrayList(); |
|
|
31 |
|
31 |
static { |
32 |
static { |
32 |
generateRescourcesTestCases('A', 'C', 8, ""); //$NON-NLS-1$ |
33 |
generateRescourcesTestCases('A', 'C', 8, ""); //$NON-NLS-1$ |
33 |
generateRescourcesTestCases('a', 'c', 4, ""); //$NON-NLS-1$ |
34 |
generateRescourcesTestCases('a', 'c', 4, ""); //$NON-NLS-1$ |
Lines 91-96
Link Here
|
91 |
information about how the dialog information is persisted. This method can't |
92 |
information about how the dialog information is persisted. This method can't |
92 |
return null, so we'll just return a simple settings object: |
93 |
return null, so we'll just return a simple settings object: |
93 |
<pre> |
94 |
<pre> |
|
|
95 |
private static final String DIALOG_SETTINGS = "FilteredResourcesSelectionDialogExampleSettings"; |
96 |
|
94 |
protected IDialogSettings getDialogSettings() { |
97 |
protected IDialogSettings getDialogSettings() { |
95 |
IDialogSettings settings = Activator.getDefault().getDialogSettings() |
98 |
IDialogSettings settings = Activator.getDefault().getDialogSettings() |
96 |
.getSection(DIALOG_SETTINGS); |
99 |
.getSection(DIALOG_SETTINGS); |
Lines 126-131
Link Here
|
126 |
|
129 |
|
127 |
</ul> |
130 |
</ul> |
128 |
</li> |
131 |
</li> |
|
|
132 |
|
133 |
<li> |
134 |
At the end you can add title of our dialog:<pre> |
135 |
public FilteredResourcesSelectionDialogExample(Shell shell) { |
136 |
super(shell, true); |
137 |
setTitle("Filtered Resources Selection Dialog Example"); |
138 |
} |
139 |
</pre></li> |
129 |
|
140 |
|
130 |
<li> |
141 |
<li> |
131 |
The resulting dialog looks as follows: |
142 |
The resulting dialog looks as follows: |