diff options
Diffstat (limited to 'tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/FilesUtils.java')
-rw-r--r-- | tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/FilesUtils.java | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/FilesUtils.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/FilesUtils.java index a93f603c901..f3ba910ea0b 100644 --- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/FilesUtils.java +++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/FilesUtils.java @@ -1,48 +1,48 @@ -/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * 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:
- * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.junit.utils;
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-
-/**
- *
- * Useful methods to manipulate files
- *
- */
-public class FilesUtils {
-
- /**
- *
- * @param testProject
- * the destination projecr
- * @param newFilename
- * the new name of the copied file
- * @param fileURL
- * the URl of the file to copy
- * @throws IOException
- * @throws CoreException
- */
- public static final void copyFiles(final IProject testProject, final String newFilename, final URL fileURL) throws CoreException, IOException {
- // Copy EmptyModel from bundle to the test project
- final IFile emptyModel = testProject.getFile(newFilename);
- emptyModel.create(fileURL.openStream(), true, new NullProgressMonitor());
-
- }
-}
+/***************************************************************************** + * Copyright (c) 2012 CEA LIST. + * + * + * 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: + * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.junit.utils; + +import java.io.IOException; +import java.net.URL; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.NullProgressMonitor; + +/** + * + * Useful methods to manipulate files + * + */ +public class FilesUtils { + + /** + * + * @param testProject + * the destination projecr + * @param newFilename + * the new name of the copied file + * @param fileURL + * the URl of the file to copy + * @throws IOException + * @throws CoreException + */ + public static final void copyFiles(final IProject testProject, final String newFilename, final URL fileURL) throws CoreException, IOException { + // Copy EmptyModel from bundle to the test project + final IFile emptyModel = testProject.getFile(newFilename); + emptyModel.create(fileURL.openStream(), true, new NullProgressMonitor()); + + } +} |