mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug #187338: externalize string and sort variables
This commit is contained in:
parent
d110311f48
commit
e123b8bf15
2 changed files with 4 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
package org.eclipse.cdt.ui.newui;
|
package org.eclipse.cdt.ui.newui;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -372,7 +373,7 @@ public class EnvironmentTab extends AbstractCPropertyTab {
|
||||||
Map v = EnvironmentReader.getEnvVars();
|
Map v = EnvironmentReader.getEnvVars();
|
||||||
MyListSelectionDialog dialog = new MyListSelectionDialog(usercomp.getShell(), v, createSelectionDialogContentProvider());
|
MyListSelectionDialog dialog = new MyListSelectionDialog(usercomp.getShell(), v, createSelectionDialogContentProvider());
|
||||||
|
|
||||||
dialog.setTitle("Select variables"); //$NON-NLS-1$
|
dialog.setTitle(UIMessages.getString("EnvironmentTab.14")); //$NON-NLS-1$
|
||||||
if (dialog.open() == Window.OK) {
|
if (dialog.open() == Window.OK) {
|
||||||
Object[] selected = dialog.getResult();
|
Object[] selected = dialog.getResult();
|
||||||
ICConfigurationDescription[] cfgs;
|
ICConfigurationDescription[] cfgs;
|
||||||
|
@ -417,6 +418,7 @@ public class EnvironmentTab extends AbstractCPropertyTab {
|
||||||
els[index] = k + LBR + (String)m.get(k) + RBR;
|
els[index] = k + LBR + (String)m.get(k) + RBR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Arrays.sort(els, CDTListComparator.getInstance());
|
||||||
return els;
|
return els;
|
||||||
}
|
}
|
||||||
public void dispose() {}
|
public void dispose() {}
|
||||||
|
|
|
@ -445,6 +445,7 @@ EnvironmentTab.10=New variable
|
||||||
EnvironmentTab.11=Edit variable
|
EnvironmentTab.11=Edit variable
|
||||||
EnvironmentTab.12=Variables list
|
EnvironmentTab.12=Variables list
|
||||||
EnvironmentTab.13=Add to all configurations
|
EnvironmentTab.13=Add to all configurations
|
||||||
|
EnvironmentTab.14=Select variables
|
||||||
IncludeTab.0=Include paths
|
IncludeTab.0=Include paths
|
||||||
IncludeTab.1=Add directory path
|
IncludeTab.1=Add directory path
|
||||||
IncludeTab.2=Change directory path
|
IncludeTab.2=Change directory path
|
||||||
|
|
Loading…
Add table
Reference in a new issue