mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
Patch for Sean Evoy:
- Fixes for bugzilla 44451 and 44841
This commit is contained in:
parent
6cea59feeb
commit
f69b3bad49
9 changed files with 108 additions and 59 deletions
|
@ -8,10 +8,10 @@
|
||||||
<classpathentry kind="src" path="/org.eclipse.cdt.core.qnx"/>
|
<classpathentry kind="src" path="/org.eclipse.cdt.core.qnx"/>
|
||||||
<classpathentry kind="src" path="/org.eclipse.cdt.core.solaris"/>
|
<classpathentry kind="src" path="/org.eclipse.cdt.core.solaris"/>
|
||||||
<classpathentry kind="src" path="/org.eclipse.cdt.core.win32"/>
|
<classpathentry kind="src" path="/org.eclipse.cdt.core.win32"/>
|
||||||
<classpathentry kind="src" path="/org.eclipse.cdt.ui"/>
|
|
||||||
<classpathentry kind="src" path="/org.eclipse.cdt.managedbuilder.core"/>
|
<classpathentry kind="src" path="/org.eclipse.cdt.managedbuilder.core"/>
|
||||||
<classpathentry kind="src" path="/org.eclipse.core.boot"/>
|
<classpathentry kind="src" path="/org.eclipse.core.boot"/>
|
||||||
<classpathentry kind="src" path="/org.eclipse.core.runtime"/>
|
<classpathentry kind="src" path="/org.eclipse.core.runtime"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
|
<classpathentry kind="src" path="/org.eclipse.cdt.ui"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,3 +1,31 @@
|
||||||
|
2003-11-13 Sean Evoy
|
||||||
|
Work to implement bugzilla 44841:
|
||||||
|
Added a scrollbar to the list control inside the custom list field editor.
|
||||||
|
Also added an Edit button to the field editor to make it easier for
|
||||||
|
keyboard-only accessibility.
|
||||||
|
|
||||||
|
Work for bugzilla 44451:
|
||||||
|
Changed the method that prompts user for information so that if the
|
||||||
|
user cancels with an empty input dialog, the method always returns an
|
||||||
|
empty string. The responsibility now rests with the caller to test the
|
||||||
|
return value for length > 0 to decide whether or not to add string to
|
||||||
|
the list.
|
||||||
|
* src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionListFieldEditor.java
|
||||||
|
|
||||||
|
Moved string constants from core UI plugin to build UI plugin. These values
|
||||||
|
are duplicated in the standadrd make UI plugin anyway, so the argument for
|
||||||
|
keeping them in a common plugin seems pretty weak. This removes another
|
||||||
|
dependency between the builder UI and common UI plugin. I did have to change
|
||||||
|
the string resource lookup method in a few of the UI implementation classes
|
||||||
|
that use the constants.
|
||||||
|
* src/org/eclipse/cdt/managedbuilder/internal/ui/PluginResources.properties
|
||||||
|
* src/org/eclipse/cdt/managedbuilder/ui/properties/BrowseEntryDialog.java
|
||||||
|
* src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java
|
||||||
|
* src/org/eclipse/cdt/managedbuilder/ui/properties/ManageConfigDialog.java
|
||||||
|
|
||||||
|
Also propagated the fix for -werror to this stream
|
||||||
|
* plugin.xml
|
||||||
|
|
||||||
2003-10-01 Sean Evoy
|
2003-10-01 Sean Evoy
|
||||||
Fix for bugs 43490 (trivial), 44020, and 43980.
|
Fix for bugs 43490 (trivial), 44020, and 43980.
|
||||||
A massive change has occurred in the plugin file. I added new C tools that apply
|
A massive change has occurred in the plugin file. I added new C tools that apply
|
||||||
|
|
|
@ -302,7 +302,6 @@
|
||||||
</enumeratedOptionValue>
|
</enumeratedOptionValue>
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="-gstabs"
|
|
||||||
name="Other debugging flags"
|
name="Other debugging flags"
|
||||||
category="cygwin.gnu.c.compiler.category.debug"
|
category="cygwin.gnu.c.compiler.category.debug"
|
||||||
valueType="string"
|
valueType="string"
|
||||||
|
@ -371,9 +370,9 @@
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="false"
|
defaultValue="false"
|
||||||
name="Warnings as errors (-werror)"
|
name="Warnings as errors (-Werror)"
|
||||||
category="cygwin.c.compiler.category.warnings"
|
category="cygwin.c.compiler.category.warnings"
|
||||||
command="-werror"
|
command="-Werror"
|
||||||
valueType="boolean"
|
valueType="boolean"
|
||||||
id="cygwin.gnu.c.compiler.warnings.toerrors">
|
id="cygwin.gnu.c.compiler.warnings.toerrors">
|
||||||
</option>
|
</option>
|
||||||
|
@ -632,7 +631,6 @@
|
||||||
</enumeratedOptionValue>
|
</enumeratedOptionValue>
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="-gstabs"
|
|
||||||
name="Other debugging flags"
|
name="Other debugging flags"
|
||||||
category="cygwin.gnu.compiler.category.debug"
|
category="cygwin.gnu.compiler.category.debug"
|
||||||
valueType="string"
|
valueType="string"
|
||||||
|
@ -701,9 +699,9 @@
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="false"
|
defaultValue="false"
|
||||||
name="Warnings as errors (-werror)"
|
name="Warnings as errors (-Werror)"
|
||||||
category="cygwin.compiler.category.warnings"
|
category="cygwin.compiler.category.warnings"
|
||||||
command="-werror"
|
command="-Werror"
|
||||||
valueType="boolean"
|
valueType="boolean"
|
||||||
id="cygwin.gnu.compiler.warnings.toerrors">
|
id="cygwin.gnu.compiler.warnings.toerrors">
|
||||||
</option>
|
</option>
|
||||||
|
@ -1670,9 +1668,9 @@
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="false"
|
defaultValue="false"
|
||||||
name="Warnings as errors (-werror)"
|
name="Warnings as errors (-Werror)"
|
||||||
category="linux.c.compiler.category.warnings"
|
category="linux.c.compiler.category.warnings"
|
||||||
command="-werror"
|
command="-Werror"
|
||||||
valueType="boolean"
|
valueType="boolean"
|
||||||
id="linux.gnu.c.compiler.warnings.toerrors">
|
id="linux.gnu.c.compiler.warnings.toerrors">
|
||||||
</option>
|
</option>
|
||||||
|
@ -1969,9 +1967,9 @@
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="false"
|
defaultValue="false"
|
||||||
name="Warnings as errors (-werror)"
|
name="Warnings as errors (-Werror)"
|
||||||
category="linux.gnu.compiler.category.warnings"
|
category="linux.gnu.compiler.category.warnings"
|
||||||
command="-werror"
|
command="-Werror"
|
||||||
valueType="boolean"
|
valueType="boolean"
|
||||||
id="linux.gnu.compiler.warnings.toerrors">
|
id="linux.gnu.compiler.warnings.toerrors">
|
||||||
</option>
|
</option>
|
||||||
|
@ -2846,9 +2844,9 @@
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="false"
|
defaultValue="false"
|
||||||
name="Warnings as errors (-werror)"
|
name="Warnings as errors (-Werror)"
|
||||||
category="solaris.c.compiler.category.warnings"
|
category="solaris.c.compiler.category.warnings"
|
||||||
command="-werror"
|
command="-Werror"
|
||||||
valueType="boolean"
|
valueType="boolean"
|
||||||
id="solaris.gnu.c.compiler.warnings.toerrors">
|
id="solaris.gnu.c.compiler.warnings.toerrors">
|
||||||
</option>
|
</option>
|
||||||
|
@ -3130,9 +3128,9 @@
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="false"
|
defaultValue="false"
|
||||||
name="Warnings as errors (-werror)"
|
name="Warnings as errors (-Werror)"
|
||||||
category="solaris.gnu.compiler.category.warnings"
|
category="solaris.gnu.compiler.category.warnings"
|
||||||
command="-werror"
|
command="-Werror"
|
||||||
valueType="boolean"
|
valueType="boolean"
|
||||||
id="solaris.gnu.compiler.warnings.toerrors">
|
id="solaris.gnu.compiler.warnings.toerrors">
|
||||||
</option>
|
</option>
|
||||||
|
|
|
@ -64,4 +64,16 @@ ManageConfig.label.configs=Manage configurations
|
||||||
ManageConfig.label.restore=Restore
|
ManageConfig.label.restore=Restore
|
||||||
ManageConfig.label.configs.current=Current:
|
ManageConfig.label.configs.current=Current:
|
||||||
ManageConfig.label.configs.deleted=Deleted:
|
ManageConfig.label.configs.deleted=Deleted:
|
||||||
ManageConfig.label.new.config.dialog=Create
|
ManageConfig.label.new.config.dialog=Create
|
||||||
|
|
||||||
|
# ----------- Build Property Common -----------
|
||||||
|
BuildPropertyCommon.label.title=Enter Value
|
||||||
|
BuildPropertyCommon.label.new=New...
|
||||||
|
BuildPropertyCommon.label.remove=Remove
|
||||||
|
BuildPropertyCommon.label.up=Move Up
|
||||||
|
BuildPropertyCommon.label.down=Move Down
|
||||||
|
BuildPropertyCommon.label.editVar=Edit...
|
||||||
|
BuildPropertyCommon.label.addVar=Add
|
||||||
|
BuildPropertyCommon.label.message=Value:
|
||||||
|
BuildPropertyCommon.label.browse=Browse...
|
||||||
|
BuildPropertyCommon.label.configs=Defined configurations:
|
||||||
|
|
|
@ -11,7 +11,7 @@ package org.eclipse.cdt.managedbuilder.ui.properties;
|
||||||
* IBM Rational Software - Initial API and implementation
|
* IBM Rational Software - Initial API and implementation
|
||||||
* **********************************************************************/
|
* **********************************************************************/
|
||||||
|
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
|
||||||
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
import org.eclipse.jface.dialogs.Dialog;
|
import org.eclipse.jface.dialogs.Dialog;
|
||||||
import org.eclipse.jface.dialogs.IDialogConstants;
|
import org.eclipse.jface.dialogs.IDialogConstants;
|
||||||
|
@ -131,7 +131,7 @@ public class BrowseEntryDialog extends Dialog {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Instantiate the browse button
|
// Instantiate the browse button
|
||||||
btnBrowse = ControlFactory.createPushButton(composite, CUIPlugin.getResourceString(BROWSE));
|
btnBrowse = ControlFactory.createPushButton(composite, ManagedBuilderUIPlugin.getResourceString(BROWSE));
|
||||||
setButtonLayoutData(btnBrowse);
|
setButtonLayoutData(btnBrowse);
|
||||||
btnBrowse.addSelectionListener(new SelectionAdapter () {
|
btnBrowse.addSelectionListener(new SelectionAdapter () {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ package org.eclipse.cdt.managedbuilder.ui.properties;
|
||||||
* IBM Rational Software - Initial API and implementation
|
* IBM Rational Software - Initial API and implementation
|
||||||
* **********************************************************************/
|
* **********************************************************************/
|
||||||
|
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
|
||||||
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
import org.eclipse.jface.dialogs.IDialogConstants;
|
import org.eclipse.jface.dialogs.IDialogConstants;
|
||||||
import org.eclipse.jface.dialogs.InputDialog;
|
import org.eclipse.jface.dialogs.InputDialog;
|
||||||
|
@ -41,6 +41,7 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
private static final String REMOVE = "BuildPropertyCommon.label.remove"; //$NON-NLS-1$
|
private static final String REMOVE = "BuildPropertyCommon.label.remove"; //$NON-NLS-1$
|
||||||
private static final String UP = "BuildPropertyCommon.label.up"; //$NON-NLS-1$
|
private static final String UP = "BuildPropertyCommon.label.up"; //$NON-NLS-1$
|
||||||
private static final String DOWN = "BuildPropertyCommon.label.down"; //$NON-NLS-1$
|
private static final String DOWN = "BuildPropertyCommon.label.down"; //$NON-NLS-1$
|
||||||
|
private static final String EDIT = "BuildPropertyCommon.label.editVar"; //$NON-NLS-1$
|
||||||
|
|
||||||
// UI constants
|
// UI constants
|
||||||
private static final int VERTICAL_DIALOG_UNITS_PER_CHAR = 8;
|
private static final int VERTICAL_DIALOG_UNITS_PER_CHAR = 8;
|
||||||
|
@ -62,6 +63,8 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
|
|
||||||
// The button for adding the contents of the text field to the list
|
// The button for adding the contents of the text field to the list
|
||||||
private Button addButton;
|
private Button addButton;
|
||||||
|
// The button for editting the contents of a list item
|
||||||
|
private Button editButton;
|
||||||
// The button for removing the currently-selected list item.
|
// The button for removing the currently-selected list item.
|
||||||
private Button removeButton;
|
private Button removeButton;
|
||||||
// The button for swapping the currently selected item up
|
// The button for swapping the currently selected item up
|
||||||
|
@ -88,7 +91,7 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
String input = getNewInputObject();
|
String input = getNewInputObject();
|
||||||
|
|
||||||
// Add it to the list
|
// Add it to the list
|
||||||
if (input != null) {
|
if (input != null && input.length() > 0) {
|
||||||
int index = list.getSelectionIndex();
|
int index = list.getSelectionIndex();
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
list.add(input, index + 1);
|
list.add(input, index + 1);
|
||||||
|
@ -115,10 +118,11 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
* @param container the box for the buttons
|
* @param container the box for the buttons
|
||||||
*/
|
*/
|
||||||
private void createButtons(Composite container) {
|
private void createButtons(Composite container) {
|
||||||
addButton = createPushButton(container, CUIPlugin.getResourceString(NEW));
|
addButton = createPushButton(container, ManagedBuilderUIPlugin.getResourceString(NEW));
|
||||||
removeButton = createPushButton(container, CUIPlugin.getResourceString(REMOVE));
|
editButton = createPushButton(container, ManagedBuilderUIPlugin.getResourceString(EDIT));
|
||||||
upButton = createPushButton(container, CUIPlugin.getResourceString(UP));
|
removeButton = createPushButton(container, ManagedBuilderUIPlugin.getResourceString(REMOVE));
|
||||||
downButton = createPushButton(container, CUIPlugin.getResourceString(DOWN));
|
upButton = createPushButton(container, ManagedBuilderUIPlugin.getResourceString(UP));
|
||||||
|
downButton = createPushButton(container, ManagedBuilderUIPlugin.getResourceString(DOWN));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -166,7 +170,7 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
controlGroup.setLayoutData(groupData);
|
controlGroup.setLayoutData(groupData);
|
||||||
|
|
||||||
// Make the list
|
// Make the list
|
||||||
list = new List(controlGroup, SWT.BORDER);
|
list = new List(controlGroup, SWT.SINGLE|SWT.H_SCROLL|SWT.V_SCROLL|SWT.BORDER);
|
||||||
|
|
||||||
// Create a grid data that takes up the extra space in the dialog and spans one column.
|
// Create a grid data that takes up the extra space in the dialog and spans one column.
|
||||||
GridData listData = new GridData(GridData.FILL_HORIZONTAL);
|
GridData listData = new GridData(GridData.FILL_HORIZONTAL);
|
||||||
|
@ -209,6 +213,7 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
buttonGroup.addDisposeListener(new DisposeListener() {
|
buttonGroup.addDisposeListener(new DisposeListener() {
|
||||||
public void widgetDisposed(DisposeEvent event) {
|
public void widgetDisposed(DisposeEvent event) {
|
||||||
addButton = null;
|
addButton = null;
|
||||||
|
editButton = null;
|
||||||
removeButton = null;
|
removeButton = null;
|
||||||
upButton = null;
|
upButton = null;
|
||||||
downButton = null;
|
downButton = null;
|
||||||
|
@ -217,7 +222,6 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
|
|
||||||
// Create the buttons
|
// Create the buttons
|
||||||
createButtons(buttonGroup);
|
createButtons(buttonGroup);
|
||||||
selectionChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -231,19 +235,17 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
Widget widget = event.widget;
|
Widget widget = event.widget;
|
||||||
if (widget == addButton) {
|
if (widget == addButton) {
|
||||||
addPressed();
|
addPressed();
|
||||||
} else
|
} else if (widget == editButton) {
|
||||||
if (widget == removeButton) {
|
editPressed();
|
||||||
removePressed();
|
} else if (widget == removeButton) {
|
||||||
} else
|
removePressed();
|
||||||
if (widget == upButton) {
|
} else if (widget == upButton) {
|
||||||
upPressed();
|
upPressed();
|
||||||
} else
|
} else if (widget == downButton) {
|
||||||
if (widget == downButton) {
|
downPressed();
|
||||||
downPressed();
|
} else if (widget == list) {
|
||||||
} else
|
selectionChanged();
|
||||||
if (widget == list) {
|
}
|
||||||
selectionChanged();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -258,7 +260,14 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
*
|
* Event handler for the edit button
|
||||||
|
*/
|
||||||
|
protected void editPressed() {
|
||||||
|
editSelection();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* Pops up a dialog with the selection highlighted and ready to edit
|
||||||
*/
|
*/
|
||||||
protected void editSelection() {
|
protected void editSelection() {
|
||||||
// Edit the selection index
|
// Edit the selection index
|
||||||
|
@ -266,7 +275,7 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
String selItem = list.getItem(index);
|
String selItem = list.getItem(index);
|
||||||
if (selItem != null) {
|
if (selItem != null) {
|
||||||
InputDialog dialog = new InputDialog(getShell(), CUIPlugin.getResourceString(TITLE), fieldName, selItem, null);
|
InputDialog dialog = new InputDialog(getShell(), ManagedBuilderUIPlugin.getResourceString(TITLE), fieldName, selItem, null);
|
||||||
String newItem = null;
|
String newItem = null;
|
||||||
if (dialog.open() == InputDialog.OK) {
|
if (dialog.open() == InputDialog.OK) {
|
||||||
newItem = dialog.getValue();
|
newItem = dialog.getValue();
|
||||||
|
@ -290,6 +299,7 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
list.add(array[i]);
|
list.add(array[i]);
|
||||||
}
|
}
|
||||||
list.setSelection(0);
|
list.setSelection(0);
|
||||||
|
selectionChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,6 +314,8 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
for (int i = 0; i < array.length; i++){
|
for (int i = 0; i < array.length; i++){
|
||||||
list.add(array[i]);
|
list.add(array[i]);
|
||||||
}
|
}
|
||||||
|
list.setSelection(0);
|
||||||
|
selectionChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -318,12 +330,12 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
|
|
||||||
protected String getNewInputObject() {
|
protected String getNewInputObject() {
|
||||||
// Create a dialog to prompt for a new symbol or path
|
// Create a dialog to prompt for a new symbol or path
|
||||||
InputDialog dialog = new InputDialog(getShell(), CUIPlugin.getResourceString(TITLE), fieldName, new String(), null);
|
InputDialog dialog = new InputDialog(getShell(), ManagedBuilderUIPlugin.getResourceString(TITLE), fieldName, new String(), null);
|
||||||
String input = null;
|
String input = new String();
|
||||||
if (dialog.open() == InputDialog.OK) {
|
if (dialog.open() == InputDialog.OK) {
|
||||||
input = dialog.getValue();
|
input = dialog.getValue();
|
||||||
}
|
}
|
||||||
return input.length() == 0 ? null : input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -375,7 +387,7 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
int index = list.getSelectionIndex();
|
int index = list.getSelectionIndex();
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
list.remove(index);
|
list.remove(index);
|
||||||
list.setSelection(index - 1);
|
list.setSelection(index - 1 > 0 ? index - 1 : 0);
|
||||||
selectionChanged();
|
selectionChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -388,6 +400,8 @@ public class BuildOptionListFieldEditor extends FieldEditor {
|
||||||
int index = list.getSelectionIndex();
|
int index = list.getSelectionIndex();
|
||||||
int size = list.getItemCount();
|
int size = list.getItemCount();
|
||||||
|
|
||||||
|
// Enable the edit button if there is at least one item in the list
|
||||||
|
editButton.setEnabled(size > 0);
|
||||||
// Enable the remove button if there is at least one item in the list
|
// Enable the remove button if there is at least one item in the list
|
||||||
removeButton.setEnabled(size > 0);
|
removeButton.setEnabled(size > 0);
|
||||||
// Enable the up button IFF there is more than 1 item and selection index is not first item
|
// Enable the up button IFF there is more than 1 item and selection index is not first item
|
||||||
|
|
|
@ -19,7 +19,6 @@ import org.eclipse.cdt.managedbuilder.core.IConfiguration;
|
||||||
import org.eclipse.cdt.managedbuilder.core.ITarget;
|
import org.eclipse.cdt.managedbuilder.core.ITarget;
|
||||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
|
import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
|
||||||
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.jface.dialogs.Dialog;
|
import org.eclipse.jface.dialogs.Dialog;
|
||||||
|
@ -218,7 +217,7 @@ public class ManageConfigDialog extends Dialog {
|
||||||
Composite buttonBar = ControlFactory.createComposite(configListGroup, 1);
|
Composite buttonBar = ControlFactory.createComposite(configListGroup, 1);
|
||||||
buttonBar.setLayoutData(new GridData());
|
buttonBar.setLayoutData(new GridData());
|
||||||
|
|
||||||
newBtn = ControlFactory.createPushButton(buttonBar, CUIPlugin.getResourceString(NEW));
|
newBtn = ControlFactory.createPushButton(buttonBar, ManagedBuilderUIPlugin.getResourceString(NEW));
|
||||||
setButtonLayoutData(newBtn);
|
setButtonLayoutData(newBtn);
|
||||||
newBtn.addSelectionListener(new SelectionAdapter () {
|
newBtn.addSelectionListener(new SelectionAdapter () {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
@ -230,7 +229,7 @@ public class ManageConfigDialog extends Dialog {
|
||||||
newBtn = null;
|
newBtn = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
removeBtn = ControlFactory.createPushButton(buttonBar, CUIPlugin.getResourceString(REMOVE));
|
removeBtn = ControlFactory.createPushButton(buttonBar, ManagedBuilderUIPlugin.getResourceString(REMOVE));
|
||||||
setButtonLayoutData(removeBtn);
|
setButtonLayoutData(removeBtn);
|
||||||
removeBtn.addSelectionListener(new SelectionAdapter () {
|
removeBtn.addSelectionListener(new SelectionAdapter () {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
2003-11-13 Sean Evoy
|
||||||
|
There is a duplicate set of string resources in the standard and managed make
|
||||||
|
UI plugins, so there is little need to keep these resources in the common UI
|
||||||
|
plugin if the managed builder is the only one using them. Moving them also
|
||||||
|
reduces the dependencies between the builder UI and the core UI packages. The
|
||||||
|
managed builder UI is the only client of these strings, so there should be no
|
||||||
|
impact.
|
||||||
|
* src/org/eclipse/cdt/internal/ui/CPluginResources.properties
|
||||||
|
|
||||||
2003-11-10 Bogdan Gheorghe
|
2003-11-10 Bogdan Gheorghe
|
||||||
fix bug 45688: must highlight keyword to use "Open Declarations" or "Add Include"
|
fix bug 45688: must highlight keyword to use "Open Declarations" or "Add Include"
|
||||||
|
|
||||||
|
|
|
@ -331,14 +331,3 @@ CreateFolderAction.text = F&older
|
||||||
# ------- Drag and Drop Message Text -----------
|
# ------- Drag and Drop Message Text -----------
|
||||||
CViewDragNDrop.txt = already exists. Would you like to overwrite it?
|
CViewDragNDrop.txt = already exists. Would you like to overwrite it?
|
||||||
|
|
||||||
# ----------- Build Property Common -----------
|
|
||||||
BuildPropertyCommon.label.title=Enter Value
|
|
||||||
BuildPropertyCommon.label.new=New...
|
|
||||||
BuildPropertyCommon.label.remove=Remove
|
|
||||||
BuildPropertyCommon.label.up=Move Up
|
|
||||||
BuildPropertyCommon.label.down=Move Down
|
|
||||||
BuildPropertyCommon.label.editVar=Edit
|
|
||||||
BuildPropertyCommon.label.addVar=Add
|
|
||||||
BuildPropertyCommon.label.message=Value:
|
|
||||||
BuildPropertyCommon.label.browse=Browse...
|
|
||||||
BuildPropertyCommon.label.configs=Defined configurations:
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue