Commit 42017dcc authored by Tiziano Munaro's avatar Tiziano Munaro

GREEN

Issue-Ref: 3838
Issue-Url: https://af3-developer.fortiss.org/issues/3838Signed-off-by: Tiziano Munaro's avatarTiziano Munaro <munaro@fortiss.org>
parent 33ff0da9
AbstractComponentToImage.java 2da368d234415e072899b1827c83fa78b5523ffc GREEN
ExportComponentToImage.java 9f2c80bdb1af3bf3a6e6e7f8576785bd651e2d58 GREEN
ExportModelToDocument.java 0713f4e689780ac8675a1b8574998407ade3f890 YELLOW
ExportModelToDocument.java 8365d2e970db8a4badd3324d0f14ad7aa8d340ec GREEN
......@@ -17,13 +17,13 @@
package eu.fbk.af3.tools.diagram.ui.commands;
import static java.util.Collections.emptyList;
import static org.eclipse.core.resources.ResourcesPlugin.getWorkspace;
import static org.eclipse.ui.PlatformUI.getWorkbench;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.getFirstParentWithType;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
......@@ -81,7 +81,7 @@ public class ExportModelToDocument extends AbstractComponentToImage {
} else if(selection instanceof Component) {
selectedComponent = (Component)selection;
} else {
return Collections.emptyList();
return emptyList();
}
final List<IContributionItem> contributionItems = new ArrayList<IContributionItem>();
......@@ -90,7 +90,7 @@ public class ExportModelToDocument extends AbstractComponentToImage {
return contributionItems;
}
return Collections.emptyList();
return emptyList();
}
/** The action. */
......
ExportProjectUtils.java 95b02d271335e46ce89f78c912f85236fc852988 GREEN
FileNameValidatorUtil.java c566595d083e756c20c919458d81e8a91ab0e10e GREEN
FolderOrProjectDialogUtils.java 14823ea1da085d019e21e50703f6f4e3fff8aa83 GREEN
ImportProjectUtils.java de53006b760a99c1bbcd13a70e99b1a56a4bacbd YELLOW
ImportProjectUtils.java 0acc94710654741db24297a204761f465a2b1cc2 GREEN
NewProjectUiUtils.java cd17cec67769d1c62c9923869c43293036d103e4 GREEN
ParsingUtils.java 7bbc27436511ee9d88f8a31f0b19462406d01517 GREEN
......@@ -24,6 +24,7 @@ import static org.fortiss.af3.project.storage.LocationProvider.CURRENT_AF3_PROJE
import static org.fortiss.af3.project.ui.AF3ProjectUIActivator.getDefault;
import static org.fortiss.af3.project.ui.utils.NewProjectUiUtils.requestFileNameDialog;
import static org.fortiss.af3.project.utils.FileUtils.getDefaultGeneralProjectURI;
import static org.fortiss.af3.project.utils.ProjectUtils.importFileProject;
import static org.fortiss.tooling.kernel.ui.util.MessageUtilsExtended.showErrorInUIThread;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.error;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.showError;
......@@ -37,7 +38,6 @@ import org.eclipse.emf.common.util.URI;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Shell;
import org.fortiss.af3.project.utils.ProjectUtils;
/**
* Utility methods for importing projects into workspace.
......@@ -155,7 +155,7 @@ public class ImportProjectUtils {
// Copy the file, its associated library, and external documents.
try {
ProjectUtils.importFileProject(sourceFileURI, targetFileURI);
importFileProject(sourceFileURI, targetFileURI);
} catch(IOException e) {
error(getDefault(), "Error, cannot import AF3 project!", e);
showErrorInUIThread("Error, cannot import AF3 project!",
......
......@@ -3,7 +3,7 @@ FileUtils.java 70e81c85ae7c2d8076e190ebad7eae648451b645 GREEN
FunctionScopeUtils.java 054c92406affa0c0ad8ac7a067de9608d0bbca2b GREEN
LibraryModelElementFactory.java a5a30a0e6b274d220c397d9bf0f14756d49bd19f GREEN
ProjectModelElementFactory.java 2963d3a1fe651025bae3ae4dc0b6e0b77bbaadd5 GREEN
ProjectUtils.java d8dc2b3d19ce46961b83f20e7669007381865d8c YELLOW
ProjectUtils.java d8dc2b3d19ce46961b83f20e7669007381865d8c GREEN
TestCaseProjectUtils.java 83dc50f1fc28c7f1d9dcde9e4e0d02480656b7aa YELLOW
TypeScopeUtils.java 54f2397f0d6720c90948ccc295f1a63b7319daac GREEN
VariableScopeUtils.java 031591687c2461a990d0534cf4ed4d6df39b1551 GREEN
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment