mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Made Source Folder Exclusion Patterns dialog resizable.
This commit is contained in:
parent
f210364ccd
commit
f15afe121e
1 changed files with 1 additions and 11 deletions
|
@ -193,7 +193,6 @@ public class ListDialogField<T> extends DialogField {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ------ adapter communication
|
// ------ adapter communication
|
||||||
|
|
||||||
private void buttonPressed(int index) {
|
private void buttonPressed(int index) {
|
||||||
|
@ -239,7 +238,7 @@ public class ListDialogField<T> extends DialogField {
|
||||||
Control list= getListControl(parent);
|
Control list= getListControl(parent);
|
||||||
gd= new GridData();
|
gd= new GridData();
|
||||||
gd.horizontalAlignment= GridData.FILL;
|
gd.horizontalAlignment= GridData.FILL;
|
||||||
gd.grabExcessHorizontalSpace= false;
|
gd.grabExcessHorizontalSpace= true;
|
||||||
gd.verticalAlignment= GridData.FILL;
|
gd.verticalAlignment= GridData.FILL;
|
||||||
gd.grabExcessVerticalSpace= true;
|
gd.grabExcessVerticalSpace= true;
|
||||||
gd.horizontalSpan= nColumns - 2;
|
gd.horizontalSpan= nColumns - 2;
|
||||||
|
@ -645,7 +644,6 @@ public class ListDialogField<T> extends DialogField {
|
||||||
dialogFieldChanged();
|
dialogFieldChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an element at a position.
|
* Adds an element at a position.
|
||||||
*/
|
*/
|
||||||
|
@ -692,7 +690,6 @@ public class ListDialogField<T> extends DialogField {
|
||||||
public int getSize() {
|
public int getSize() {
|
||||||
return fElements.size();
|
return fElements.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void selectElements(ISelection selection) {
|
public void selectElements(ISelection selection) {
|
||||||
fSelectionWhenEnabled= selection;
|
fSelectionWhenEnabled= selection;
|
||||||
|
@ -718,7 +715,6 @@ public class ListDialogField<T> extends DialogField {
|
||||||
selectElements(new StructuredSelection(element));
|
selectElements(new StructuredSelection(element));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void postSetSelection(final ISelection selection) {
|
public void postSetSelection(final ISelection selection) {
|
||||||
if (isOkToUse(fTableControl)) {
|
if (isOkToUse(fTableControl)) {
|
||||||
|
@ -787,7 +783,6 @@ public class ListDialogField<T> extends DialogField {
|
||||||
return reverse;
|
return reverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void remove() {
|
private void remove() {
|
||||||
removeElements(getSelectedElements());
|
removeElements(getSelectedElements());
|
||||||
}
|
}
|
||||||
|
@ -872,10 +867,8 @@ public class ListDialogField<T> extends DialogField {
|
||||||
public void doubleClick(DoubleClickEvent event) {
|
public void doubleClick(DoubleClickEvent event) {
|
||||||
doDoubleClick(event);
|
doDoubleClick(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void doListSelected(SelectionChangedEvent event) {
|
protected void doListSelected(SelectionChangedEvent event) {
|
||||||
updateButtonState();
|
updateButtonState();
|
||||||
if (fListAdapter != null) {
|
if (fListAdapter != null) {
|
||||||
|
@ -888,7 +881,4 @@ public class ListDialogField<T> extends DialogField {
|
||||||
fListAdapter.doubleClicked(this);
|
fListAdapter.doubleClicked(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue