mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics: white spaces/enhanced loops
This commit is contained in:
parent
14b2916811
commit
6bd17c4f77
1 changed files with 88 additions and 87 deletions
|
@ -358,8 +358,9 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
||||||
tools_group.setVisible(true);
|
tools_group.setVisible(true);
|
||||||
String s = EMPTY_STR;
|
String s = EMPTY_STR;
|
||||||
ITool[] tools = ri.getTools();
|
ITool[] tools = ri.getTools();
|
||||||
for (int i = 0; i < tools.length; i++)
|
for (ITool tool : tools) {
|
||||||
s = s + tools[i].getUniqueRealName() + "\n"; //$NON-NLS-1$
|
s = s + tool.getUniqueRealName() + "\n"; //$NON-NLS-1$
|
||||||
|
}
|
||||||
text.setText(s);
|
text.setText(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -367,10 +368,10 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
||||||
private void updateAllTools() {
|
private void updateAllTools() {
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
v_tools = new ITool[r_tools.length];
|
v_tools = new ITool[r_tools.length];
|
||||||
for (int i=0; i<r_tools.length; i++) {
|
for (ITool r_tool : r_tools) {
|
||||||
if (r_tools[i].isSystemObject()) continue;
|
if (r_tool.isSystemObject()) continue;
|
||||||
if (r_tools[i].isAbstract()) continue;
|
if (r_tool.isAbstract()) continue;
|
||||||
v_tools[cnt++] = r_tools[i];
|
v_tools[cnt++] = r_tool;
|
||||||
}
|
}
|
||||||
ITool[] tmp = new ITool[cnt];
|
ITool[] tmp = new ITool[cnt];
|
||||||
System.arraycopy(v_tools, 0, tmp, 0, cnt);
|
System.arraycopy(v_tools, 0, tmp, 0, cnt);
|
||||||
|
@ -403,9 +404,9 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
||||||
real = ManagedBuildManager.getRealTool(real);
|
real = ManagedBuildManager.getRealTool(real);
|
||||||
list.add(real);
|
list.add(real);
|
||||||
IToolModification tm = fim.getToolModification(real);
|
IToolModification tm = fim.getToolModification(real);
|
||||||
IModificationOperation[] mo = tm.getSupportedOperations();
|
IModificationOperation[] mos = tm.getSupportedOperations();
|
||||||
for (int i=0; i<mo.length; i++) {
|
for (IModificationOperation mo : mos) {
|
||||||
ITool t = mo[i].getReplacementTool();
|
ITool t = mo.getReplacementTool();
|
||||||
if (t == null)
|
if (t == null)
|
||||||
result = true;
|
result = true;
|
||||||
else {
|
else {
|
||||||
|
@ -415,12 +416,12 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
||||||
}
|
}
|
||||||
} else { // Current tool is NO_TOOL
|
} else { // Current tool is NO_TOOL
|
||||||
result = true;
|
result = true;
|
||||||
IToolModification[] tm = fim.getSystemToolModifications();
|
IToolModification[] tms = fim.getSystemToolModifications();
|
||||||
for (int i=0; i<tm.length; i++) {
|
for (IToolModification tm : tms) {
|
||||||
IModificationOperation[] mo = tm[i].getSupportedOperations();
|
IModificationOperation[] mos = tm.getSupportedOperations();
|
||||||
for (int j=0; j<mo.length; j++) {
|
for (IModificationOperation mo : mos) {
|
||||||
if (mo[j].getReplacementTool() == null) {
|
if (mo.getReplacementTool() == null) {
|
||||||
ITool t = tm[i].getTool();
|
ITool t = tm.getTool();
|
||||||
if (! t.isSystemObject() && ! t.isAbstract())
|
if (! t.isSystemObject() && ! t.isAbstract())
|
||||||
list.add(t);
|
list.add(t);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue