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);
|
||||
String s = EMPTY_STR;
|
||||
ITool[] tools = ri.getTools();
|
||||
for (int i = 0; i < tools.length; i++)
|
||||
s = s + tools[i].getUniqueRealName() + "\n"; //$NON-NLS-1$
|
||||
for (ITool tool : tools) {
|
||||
s = s + tool.getUniqueRealName() + "\n"; //$NON-NLS-1$
|
||||
}
|
||||
text.setText(s);
|
||||
}
|
||||
}
|
||||
|
@ -367,10 +368,10 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
|||
private void updateAllTools() {
|
||||
int cnt = 0;
|
||||
v_tools = new ITool[r_tools.length];
|
||||
for (int i=0; i<r_tools.length; i++) {
|
||||
if (r_tools[i].isSystemObject()) continue;
|
||||
if (r_tools[i].isAbstract()) continue;
|
||||
v_tools[cnt++] = r_tools[i];
|
||||
for (ITool r_tool : r_tools) {
|
||||
if (r_tool.isSystemObject()) continue;
|
||||
if (r_tool.isAbstract()) continue;
|
||||
v_tools[cnt++] = r_tool;
|
||||
}
|
||||
ITool[] tmp = new ITool[cnt];
|
||||
System.arraycopy(v_tools, 0, tmp, 0, cnt);
|
||||
|
@ -403,9 +404,9 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
|||
real = ManagedBuildManager.getRealTool(real);
|
||||
list.add(real);
|
||||
IToolModification tm = fim.getToolModification(real);
|
||||
IModificationOperation[] mo = tm.getSupportedOperations();
|
||||
for (int i=0; i<mo.length; i++) {
|
||||
ITool t = mo[i].getReplacementTool();
|
||||
IModificationOperation[] mos = tm.getSupportedOperations();
|
||||
for (IModificationOperation mo : mos) {
|
||||
ITool t = mo.getReplacementTool();
|
||||
if (t == null)
|
||||
result = true;
|
||||
else {
|
||||
|
@ -415,12 +416,12 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
|||
}
|
||||
} else { // Current tool is NO_TOOL
|
||||
result = true;
|
||||
IToolModification[] tm = fim.getSystemToolModifications();
|
||||
for (int i=0; i<tm.length; i++) {
|
||||
IModificationOperation[] mo = tm[i].getSupportedOperations();
|
||||
for (int j=0; j<mo.length; j++) {
|
||||
if (mo[j].getReplacementTool() == null) {
|
||||
ITool t = tm[i].getTool();
|
||||
IToolModification[] tms = fim.getSystemToolModifications();
|
||||
for (IToolModification tm : tms) {
|
||||
IModificationOperation[] mos = tm.getSupportedOperations();
|
||||
for (IModificationOperation mo : mos) {
|
||||
if (mo.getReplacementTool() == null) {
|
||||
ITool t = tm.getTool();
|
||||
if (! t.isSystemObject() && ! t.isAbstract())
|
||||
list.add(t);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue