Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-08-21 11:43:07 +0000
committerCamille Letavernier2014-08-21 13:50:25 +0000
commitdbc038b44bcbb890ae256d15eb09eb285512f020 (patch)
tree757e736583eea3ae352ad9ac91a81df7e59b79ff /plugins/facet/org.eclipse.papyrus.emf.facet.util.core
parentea48a20561464c3cbb7895d430583669a9f82fcc (diff)
downloadorg.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.gz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.xz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.zip
[Code style] Apply clean-up and formatter on Main plug-ins
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.core')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/DebugUtils.java9
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/Logger.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/Activator.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/AbstractRegistry.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FileUtils.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FolderUtils.java8
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/IFilter.java2
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/StringUtils.java2
8 files changed, 24 insertions, 21 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/DebugUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/DebugUtils.java
index dfc45a7009b..40af5d97fb4 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/DebugUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/DebugUtils.java
@@ -32,14 +32,14 @@ public final class DebugUtils {
private DebugUtils() {
// Must not be used
}
-
+
public static void debug(final boolean condition) {
if (condition) {
String location = getCallerLocation(0);
System.out.println(location);
}
}
-
+
public static void debug(final boolean condition, final String message) {
if (condition) {
String location = getCallerLocation(0);
@@ -50,6 +50,7 @@ public final class DebugUtils {
/**
* This methods returns the qualified name of the calling method.
+ *
* @param stackOffset
* @return
*/
@@ -69,7 +70,7 @@ public final class DebugUtils {
final String debugOption = getDebugOption(plugin) + '/' + suboption;
return internalGetDebugStatus(plugin, debugOption);
}
-
+
private static boolean internalGetDebugStatus(final Plugin plugin,
final String debugOption) {
final String debugOptionValue = Platform.getDebugOption(debugOption);
@@ -100,7 +101,7 @@ public final class DebugUtils {
String location = getCallerLocation(stackOffset);
System.out.println(location + ": " //$NON-NLS-1$
+ message);
-
+
}
}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/Logger.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/Logger.java
index 1310834457a..c26d79d7dee 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/Logger.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/Logger.java
@@ -24,9 +24,9 @@ import org.eclipse.papyrus.emf.facet.util.core.internal.Activator;
/**
* Helper for logging using Eclipse API
- *
+ *
* @author fgiquel
- *
+ *
*/
public final class Logger {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/Activator.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/Activator.java
index a88958f6a6a..f3310819cac 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/Activator.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/Activator.java
@@ -1,11 +1,11 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Gregoire Dupe (Mia-Software) - Bug 338811 - A model registration method in the interface ICatalogSetManager
* Nicolas Bros (Mia-Software) - Bug 340031 - NPE in org.eclipse.papyrus.emf.facet.util.core.Logger#log
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/AbstractRegistry.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/AbstractRegistry.java
index f77485f4904..34b69a8ce3d 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/AbstractRegistry.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/AbstractRegistry.java
@@ -24,18 +24,16 @@ import org.eclipse.papyrus.emf.facet.util.core.internal.Messages;
import org.eclipse.osgi.util.NLS;
/**
- * Provides common functionality for extension registries. Call
- * {@link #initialize()} in a sub-class to read the extension points. Implement
- * {@link #handleRootElement(IConfigurationElement)} to read the root
+ * Provides common functionality for extension registries. Call {@link #initialize()} in a sub-class to read the extension points. Implement {@link #handleRootElement(IConfigurationElement)} to read the root
* configuration elements of each extension.
+ *
* @since 0.2
*/
public abstract class AbstractRegistry {
-// copy of org.eclipse.papyrus.emf.facet.infra.common.core.internal.extensions.AbstractRegistry
+ // copy of org.eclipse.papyrus.emf.facet.infra.common.core.internal.extensions.AbstractRegistry
/**
* Initialize the registry by reading the extension point to discover
- * extensions. This method calls
- * {@link #handleRootElement(IConfigurationElement)} on each root
+ * extensions. This method calls {@link #handleRootElement(IConfigurationElement)} on each root
* configuration element.
*/
protected void initialize() {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FileUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FileUtils.java
index 674da368e83..8e4719c0411 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FileUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FileUtils.java
@@ -10,7 +10,7 @@
* Nicolas Guyomar (Mia-Software) - Bug 340339 - Need some Utils class for Folder/File/Project management
* Nicolas Guyomar (Mia-Software) - Bug 342451 - To be able to edit derived facet attributes and derived facet references in a table
* Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
- * Thomas Cicognani (Soft-Maint) - Bug 398079 - org.eclipse.papyrus.emf.facet.util.core.internal.exported.FileUtils.copyFolderFromBundle
+ * Thomas Cicognani (Soft-Maint) - Bug 398079 - org.eclipse.papyrus.emf.facet.util.core.internal.exported.FileUtils.copyFolderFromBundle
*******************************************************************************/
package org.eclipse.papyrus.emf.facet.util.core.internal.exported;
@@ -76,10 +76,10 @@ public final class FileUtils {
reader.close();
return builder.toString();
}
-
+
/**
* Copy a folder contents from a bundle
- *
+ *
* @param folderPath
* Folder path to copy
* @param project
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FolderUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FolderUtils.java
index 0d147891047..e602ad6d1fd 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FolderUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/FolderUtils.java
@@ -35,7 +35,9 @@ public final class FolderUtils {
/**
* This method delete the content of the folder
- * @param folder The folder that has to be emptied
+ *
+ * @param folder
+ * The folder that has to be emptied
*/
public static final void clearFolder(final File folder) {
assert folder != null;
@@ -57,7 +59,9 @@ public final class FolderUtils {
/**
* This method create a folder and it parents if they do not exists.
- * @param folder The folder that have to be created.
+ *
+ * @param folder
+ * The folder that have to be created.
* @throws CoreException
*/
public static void createFolder(final IFolder folder) throws CoreException {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/IFilter.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/IFilter.java
index 9c25f54fa6f..f7377d116ba 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/IFilter.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/IFilter.java
@@ -18,7 +18,7 @@ package org.eclipse.papyrus.emf.facet.util.core.internal.exported;
*/
public interface IFilter<T> {
// This class has been copied from org.eclipse.papyrus.emf.facet.infra.common.core.internal.utils.IFilter
-
+
/**
* @param object
* an element to be filtered
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/StringUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/StringUtils.java
index 4b06dc0d04e..76b401ae82d 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/StringUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.core/src/org/eclipse/papyrus/emf/facet/util/core/internal/exported/StringUtils.java
@@ -60,7 +60,7 @@ public final class StringUtils {
* Truncate the given String before the first newline or a maximum number of
* characters, whichever comes first. Adds an ellipsis ("...") if it was
* effectively truncated.
- *
+ *
* @param str
* the string to truncate
* @return the part of the given string before the first newline

Back to the top