Skip to content

Commit 43f5af9

Browse files
committed
Whitespace clean-up in pde ui
Using the JDT clean-up for unnecessary whitespace
1 parent dd904a1 commit 43f5af9

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/autocomplete/processors/AttributeNameCompletionProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030

3131
/**
3232
* Class that computes autocompletions for attribute names. Example:
33-
*
33+
*
3434
* <pre>
3535
* &lt;unit ver^
3636
* </pre>
37-
*
37+
*
3838
* where ^ is autocomplete call.
3939
*/
4040
public class AttributeNameCompletionProcessor extends DelegateProcessor {

ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/autocomplete/processors/AttributeValueCompletionProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434

3535
/**
3636
* Class that computes autocompletions for attribute values. Example:
37-
*
37+
*
3838
* <pre>
3939
* &lt;unit id="org.^"
4040
* </pre>
41-
*
41+
*
4242
* where ^ is autocomplete call.
4343
*/
4444
public class AttributeValueCompletionProcessor extends DelegateProcessor {

ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/autocomplete/processors/TagCompletionProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545

4646
/**
4747
* Class that computes autocompletions for tags. Example:
48-
*
48+
*
4949
* <pre>
5050
* &lt;un^
5151
* </pre>
52-
*
52+
*
5353
* where ^ is autocomplete call.
5454
*/
5555
public class TagCompletionProcessor extends DelegateProcessor {

ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/autocomplete/processors/TagValueCompletionProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929

3030
/**
3131
* Class that computes autocompletions for tag content. Example:
32-
*
32+
*
3333
* <pre>{@code <nl>ar^<\nl> }</pre>
34-
*
34+
*
3535
* where ^ is autocomplete call.
3636
*/
3737
public class TagValueCompletionProcessor extends DelegateProcessor {

ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/command/UpdateUnitVersions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
7777
locationNodes.stream().map(LocationNode::getRepositoryLocations).flatMap(List::stream)
7878
.forEach(RepositoryCache::prefetchP2MetadataOfRepository);
7979

80-
for (LocationNode locationNode : locationNodes) {
80+
for (LocationNode locationNode : locationNodes) {
8181
List<String> repositoryLocations = locationNode.getRepositoryLocations();
8282
if (repositoryLocations.isEmpty()) {
8383
continue;

ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/model/RepositoryCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private static record RepositoryMetadata(Map<String, List<IVersionedId>> units,
6464
* {@link IVersionedId versioned IDs} for that ID. All keys are sorted in
6565
* alphabetical order and all versions are sorted in descending order.
6666
* </p>
67-
*
67+
*
6868
* @return all available units in the specified {@code repository} in a map
6969
* mapping all IDs to all available versions.
7070
*/

ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/BundleLauncherHelper.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ private BundleLauncherHelper() { // static use only
8787

8888
public static final char VERSION_SEPARATOR = '*';
8989
private static final char START_LEVEL_SEPARATOR = '@';
90-
private static final String AUTO_START_SEPARATOR = ":"; //$NON-NLS-1$
90+
private static final String AUTO_START_SEPARATOR = ":"; //$NON-NLS-1$
9191
private static final String DEFAULT = "default"; //$NON-NLS-1$
9292
private static final String DEFAULT_START_LEVELS = DEFAULT + AUTO_START_SEPARATOR + DEFAULT;
93-
private static final String FEATURE_PLUGIN_RESOLUTION_SEPARATOR = ":"; //$NON-NLS-1$
94-
private static final String FEATURES_ADDITIONAL_PLUGINS_DATA_SEPARATOR = ":"; //$NON-NLS-1$
93+
private static final String FEATURE_PLUGIN_RESOLUTION_SEPARATOR = ":"; //$NON-NLS-1$
94+
private static final String FEATURES_ADDITIONAL_PLUGINS_DATA_SEPARATOR = ":"; //$NON-NLS-1$
9595

9696
/**
9797
* When creating a mapping of bundles to their start levels, update configurator is set
@@ -312,7 +312,7 @@ private static Map<String, List<List<IFeature>>> getPrioritizedAvailableFeatures
312312
private static void addFeatureIfAbsent(IFeature feature, String resolution, Map<IFeature, String> featurePluginResolution, Queue<IFeature> pendingFeatures) {
313313
if (feature != null && featurePluginResolution.putIfAbsent(feature, resolution) == null) {
314314
// Don't add feature more than once to not override the resolution if already present (e.g. a child was specified explicitly)
315-
pendingFeatures.add(feature); // ... and to not process it more than once
315+
pendingFeatures.add(feature); // ... and to not process it more than once
316316
}
317317
}
318318

@@ -392,7 +392,7 @@ private static <E> E getIncluded(List<List<E>> containers, Predicate<E> filter,
392392
return getMaxElement(containers, filter, compareVersion);
393393
}
394394

395-
/**
395+
/**
396396
* Selects and returns an {@code required} element for the specified version (may be null) and match-rule from the given containers using the following logic:
397397
* <p>
398398
* <ol>
@@ -505,7 +505,7 @@ private static void addPlugin(Map<IPluginModelBase, String> map, IPluginModelBas
505505
} else {
506506
List<Version> pluginVersions = idVersions.computeIfAbsent(model.getPluginBase().getId(), n -> new ArrayList<>());
507507
Version version = getVersion(model);
508-
if (!containsVersion.test(pluginVersions, version)) { // apply version filter
508+
if (!containsVersion.test(pluginVersions, version)) { // apply version filter
509509
pluginVersions.add(version);
510510
addBundleToMap(map, model, startData);
511511
}
@@ -584,7 +584,7 @@ private static Set<BundleDescription> reresolveBundlesPreferringIncludedBundles(
584584
.forEach(plugin -> addPluginBundle(plugin, launchState, launchBundlePlugins, tpState));
585585

586586
launchState.getResolver().setSelectionPolicy(Comparator
587-
// prefer bundles explicitly included in the launch
587+
// prefer bundles explicitly included in the launch
588588
.comparing((BaseDescription d) -> !launchBundles.contains(d.getSupplier())) //false<true
589589
.thenComparing(d -> { // choose bundles originating from the preferred location (workspace or TP)
590590
boolean isWorkspaceBundle = launchBundlePlugins.get(d.getSupplier()).getUnderlyingResource() != null;

ui/org.eclipse.pde.launching/src/org/eclipse/pde/launching/IPDELauncherConstants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ public interface IPDELauncherConstants {
243243
* Launch configuration attribute key. The value is a boolean specifying
244244
* whether required plug-ins and/or features should be added automatically
245245
* to the list of plug-ins to launch with.
246-
*
247-
* @since 3.10
246+
*
247+
* @since 3.10
248248
*/
249-
String AUTOMATIC_INCLUDE_REQUIREMENTS = "automaticIncludeRequirements"; //$NON-NLS-1$
249+
String AUTOMATIC_INCLUDE_REQUIREMENTS = "automaticIncludeRequirements"; //$NON-NLS-1$
250250

251251
/**
252252
* Launch configuration attribute key. The value is a boolean indicating

ui/org.eclipse.pde.launching/src/org/eclipse/pde/launching/JUnitLaunchConfigurationDelegate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private IPluginBase getTestPlugin(ILaunchConfiguration configuration) throws Cor
158158
}
159159

160160
private IPluginBase getFragmentHostModel(String hostId, String hostVersion, int hostVersionMatchRule) {
161-
// return host plug-in model with matching version from bundles selected for launch
161+
// return host plug-in model with matching version from bundles selected for launch
162162
List<IPluginModelBase> hosts = fAllBundles.getOrDefault(hostId, Collections.emptyList());
163163
Stream<IPluginBase> hostPlugins = hosts.stream().map(IPluginModelBase::getPluginBase);
164164
return hostPlugins.filter(h -> VersionUtil.compare(h.getVersion(), hostVersion, hostVersionMatchRule)) //
@@ -173,7 +173,7 @@ protected void abort(String message, Throwable exception, int code) throws CoreE
173173
@Override
174174
public String getModuleCLIOptions(ILaunchConfiguration configuration) throws CoreException {
175175
// The JVM options should be specified in target platform, see getVMArguments()
176-
return ""; //$NON-NLS-1$
176+
return ""; //$NON-NLS-1$
177177
}
178178

179179
@Override

ui/org.eclipse.pde.spy.core/src/org/eclipse/pde/spy/core/SpyHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private MWindow prepareSpyWindow(MApplication appli, EModelService modelService)
9595
// from the
9696
// snippet.
9797
MTrimmedWindow tws = (MTrimmedWindow) modelService.findSnippet(appli, E4_SPIES_WINDOW);
98-
98+
9999
// Fix #579332 : must copy the snippet to keep it in the snippet list if it must be re-created later.
100100
EObject eObj = (EObject) tws;
101101
MTrimmedWindow tw = (MTrimmedWindow) EcoreUtil.copy(eObj);

0 commit comments

Comments
 (0)