Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 16:20:42 +0000
committerJonah Graham2018-11-22 21:47:02 +0000
commit170e654b4796bad1453ae85a427b97317d67a69a (patch)
tree6ca9b8a8fedd5fd25f97eb79c408312e256ff981 /build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui
parent35996a5c5ca5c254959ba48241eaada6dbf8628d (diff)
downloadorg.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.gz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.xz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.zip
Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Format source code - Remove trailing white spaces on all lines and completing the wizard Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GnuUIPlugin.java8
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/ProfAppCalculator.java19
2 files changed, 12 insertions, 15 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GnuUIPlugin.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GnuUIPlugin.java
index 19c36869e5a..91d30cdaf00 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GnuUIPlugin.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GnuUIPlugin.java
@@ -7,7 +7,7 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* Texas Instruments Inc. - initial API and implementation
*******************************************************************************/
@@ -22,18 +22,18 @@ import java.util.*;
/**
* The main plugin class to be used in the desktop.
- *
+ *
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class GnuUIPlugin extends Plugin {
-
+
public static final String PLUGIN_ID = "org.eclipse.cdt.managedbuilder.gnu.ui"; //$NON-NLS-1$
//The shared instance.
private static GnuUIPlugin plugin;
//Resource bundle.
private ResourceBundle resourceBundle;
-
+
/**
* The constructor.
*/
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/ProfAppCalculator.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/ProfAppCalculator.java
index 48d7c878c78..b31382b367d 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/ProfAppCalculator.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/ProfAppCalculator.java
@@ -34,21 +34,18 @@ public class ProfAppCalculator implements IOptionApplicability {
}
@Override
- public boolean isOptionEnabled(IBuildObject configuration,
- IHoldsOptions holder, IOption option) {
+ public boolean isOptionEnabled(IBuildObject configuration, IHoldsOptions holder, IOption option) {
return true;
}
@Override
- public boolean isOptionUsedInCommandLine(IBuildObject configuration,
- IHoldsOptions holder, IOption option) {
+ public boolean isOptionUsedInCommandLine(IBuildObject configuration, IHoldsOptions holder, IOption option) {
- if (! (configuration instanceof IConfiguration))
+ if (!(configuration instanceof IConfiguration))
return false; // not probable.
- IConfiguration cfg = (IConfiguration)configuration;
- outer:
- for (ITool t : cfg.getFilteredTools()){
+ IConfiguration cfg = (IConfiguration) configuration;
+ outer: for (ITool t : cfg.getFilteredTools()) {
if (t.getId().indexOf(COMPILER_PATTERN) < 0)
continue;
for (IOption op : t.getOptions()) {
@@ -57,7 +54,8 @@ public class ProfAppCalculator implements IOptionApplicability {
try {
if (op.getBooleanValue() != option.getBooleanValue())
cfg.setOption(holder, option, op.getBooleanValue());
- } catch (BuildException e) {}
+ } catch (BuildException e) {
+ }
break outer;
}
}
@@ -65,8 +63,7 @@ public class ProfAppCalculator implements IOptionApplicability {
}
@Override
- public boolean isOptionVisible(IBuildObject configuration,
- IHoldsOptions holder, IOption option) {
+ public boolean isOptionVisible(IBuildObject configuration, IHoldsOptions holder, IOption option) {
return false;
}

Back to the top