Commit a9f7f0d6 authored by Chen Wenwen's avatar Chen Wenwen
Browse files

code clear

parent 2c6113c9
......@@ -20,16 +20,15 @@ package org.fortiss.af3.mira.ui.action;
import static org.eclipse.jface.dialogs.MessageDialog.openError;
import static org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin;
import static org.fortiss.af3.mira.ui.AF3MiraUIActivator.PLUGIN_ID;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickFirstInstanceOf;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.swt.widgets.Shell;
import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.mira.command.CreateRequirementSpecificationCommand;
import org.fortiss.af3.mira.model.Requirement;
import org.fortiss.af3.mira.model.RequirementSpecification;
import org.fortiss.af3.mira.model.usecase.ScopeSpecification;
import org.fortiss.af3.mira.model.usecase.UseCase;
import org.fortiss.af3.mira.ui.utils.SelectionDialogUtils;
import org.fortiss.af3.state.model.State;
import org.fortiss.tooling.kernel.service.ICommandStackService;
......@@ -42,9 +41,9 @@ import org.fortiss.tooling.kernel.ui.extension.base.EObjectActionBase;
* @author mou
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: EF54DB65A562E1A5E7F97671411FC3EC
* @ConQAT.Rating YELLOW Hash: 8DEE7E9601E387C3E718614F3883474B
*/
public class ConnectConditionToComponentAction extends EObjectActionBase<Requirement> {
public class ConnectConditionToComponentAction extends EObjectActionBase<UseCase> {
/** the shell for the action */
private final Shell shell;
......@@ -53,7 +52,7 @@ public class ConnectConditionToComponentAction extends EObjectActionBase<Require
private final EClass specClass;
/** Constructor. */
public ConnectConditionToComponentAction(Requirement editedObject, Shell shell, EClass clazz) {
public ConnectConditionToComponentAction(UseCase editedObject, Shell shell, EClass clazz) {
super("ConnectConditionToComponent", imageDescriptorFromPlugin(PLUGIN_ID,
"icons/sample.png"));
setTarget(editedObject);
......@@ -64,9 +63,8 @@ public class ConnectConditionToComponentAction extends EObjectActionBase<Require
/** {@inheritDoc} */
@Override
public void run() {
// TODO (FH): add an EOperation in the meta-model for this access
ScopeSpecification spec =
pickFirstInstanceOf(ScopeSpecification.class, getTarget().getReferencedByList());
ScopeSpecification spec = getTarget().getScopeSpecification();
if(spec == null || !(spec.getSpecificationOf() instanceof Component)) {
openError(shell, "Scope", "Cannot find assigned scope component!");
......
......@@ -22,7 +22,6 @@ import static org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin;
import static org.fortiss.af3.mira.ui.AF3MiraUIActivator.PLUGIN_ID;
import static org.fortiss.af3.mira.ui.utils.SelectionDialogUtils.open;
import static org.fortiss.af3.mira.utils.MiraModelElementFactory.createScopeSpecification;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickFirstInstanceOf;
import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.getRootElement;
import org.eclipse.swt.widgets.Shell;
......@@ -40,7 +39,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.EObjectActionBase;
* @author uden
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: C56DD59B38144FA12655773F19281537
* @ConQAT.Rating YELLOW Hash: 04F611CA712E446CAFA09990B7674A16
*/
public final class ConnectScopeToComponentAction extends EObjectActionBase<UseCase> {
......@@ -65,9 +64,7 @@ public final class ConnectScopeToComponentAction extends EObjectActionBase<UseCa
Component selected = null;
// TODO (FH): add an EOperation in the meta-model for this access
ScopeSpecification spec =
pickFirstInstanceOf(ScopeSpecification.class, getTarget().getReferencedByList());
ScopeSpecification spec = getTarget().getScopeSpecification();
if(spec != null && spec.getSpecificationOf() instanceof Component) {
selected = (Component)spec.getSpecificationOf();
}
......
......@@ -21,7 +21,6 @@ import static org.eclipse.jface.dialogs.MessageDialog.openError;
import static org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin;
import static org.fortiss.af3.mira.ui.AF3MiraUIActivator.PLUGIN_ID;
import static org.fortiss.af3.mira.utils.MiraModelElementFactory.createTriggerSpecification;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickFirstInstanceOf;
import org.eclipse.swt.widgets.Shell;
import org.fortiss.af3.component.model.Component;
......@@ -40,7 +39,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.EObjectActionBase;
* @author uden
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: FFB0CBF0FE2CDC37E27DB09179045BCE
* @ConQAT.Rating YELLOW Hash: C504644D44421272155D59F45673E179
*/
public final class ConnectTriggerToInputPortAction extends EObjectActionBase<UseCase> {
......@@ -57,9 +56,8 @@ public final class ConnectTriggerToInputPortAction extends EObjectActionBase<Use
/** {@inheritDoc} */
@Override
public void run() {
// TODO (FH): add an EOperation in the meta-model for this access
ScopeSpecification spec =
pickFirstInstanceOf(ScopeSpecification.class, getTarget().getReferencedByList());
ScopeSpecification spec = getTarget().getScopeSpecification();
if(spec == null || !(spec.getSpecificationOf() instanceof Component)) {
openError(shell, "Scope", "Cannot find assigned scope component!");
......@@ -70,9 +68,7 @@ public final class ConnectTriggerToInputPortAction extends EObjectActionBase<Use
InputPort selected = null;
// TODO (FH): add an EOperation in the meta-model for this access
TriggerSpecification triggerSpec =
pickFirstInstanceOf(TriggerSpecification.class, getTarget().getReferencedByList());
TriggerSpecification triggerSpec = getTarget().getTriggerSpecification();
if(triggerSpec != null && triggerSpec.getSpecificationOf() instanceof InputPort) {
selected = (InputPort)triggerSpec.getSpecificationOf();
}
......
......@@ -19,7 +19,6 @@ package org.fortiss.af3.mira.ui.action;
import static org.fortiss.af3.mira.ui.utils.SelectionDialogUtils.openInputPortsMultiSeclectDialog;
import static org.fortiss.af3.mira.utils.MiraModelElementFactory.createInputSpecification;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf;
import java.util.List;
......@@ -27,7 +26,6 @@ import org.eclipse.swt.widgets.Shell;
import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.Port;
import org.fortiss.af3.mira.model.RequirementSpecification;
import org.fortiss.af3.mira.model.usecase.InputSpecification;
import org.fortiss.af3.mira.model.usecase.UseCase;
/**
......@@ -36,7 +34,7 @@ import org.fortiss.af3.mira.model.usecase.UseCase;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 338D865B3CB2240CA312125F0EC59B1E
* @ConQAT.Rating YELLOW Hash: 589733DF1965E7B2C71403DCD940A07C
*/
public class ConnectUseCaseInputsToInputPortAction extends ConnectUseCaseToPortsActionBase {
......@@ -55,8 +53,7 @@ public class ConnectUseCaseInputsToInputPortAction extends ConnectUseCaseToPorts
/** {@inheritDoc} */
@Override
protected List<? extends RequirementSpecification> getSpecificationsBefore() {
// TODO (FH): add an EOperation in the meta-model for this access
return pickInstanceOf(InputSpecification.class, getTarget().getReferencedByList());
return getTarget().getInputSpecification();
}
/** {@inheritDoc} */
......
......@@ -19,7 +19,6 @@ package org.fortiss.af3.mira.ui.action;
import static org.fortiss.af3.mira.ui.utils.SelectionDialogUtils.openOutputPortsMultiSeclectDialog;
import static org.fortiss.af3.mira.utils.MiraModelElementFactory.createOutputSpecification;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf;
import java.util.List;
......@@ -37,7 +36,7 @@ import org.fortiss.af3.mira.model.usecase.UseCase;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 9B3BE9B797E9DAC4A462B895F7E80F8C
* @ConQAT.Rating YELLOW Hash: 9274774680FAFF3CB26DA8A923DAFACF
*/
public class ConnectUseCaseOutputsToOutputPortAction extends ConnectUseCaseToPortsActionBase {
......@@ -56,8 +55,7 @@ public class ConnectUseCaseOutputsToOutputPortAction extends ConnectUseCaseToPor
/** {@inheritDoc} */
@Override
protected List<OutputSpecification> getSpecificationsBefore() {
// TODO (FH): add an EOperation in the meta-model for this access
return pickInstanceOf(OutputSpecification.class, getTarget().getReferencedByList());
return getTarget().getOutputSpecification();
}
/** {@inheritDoc} */
......
......@@ -18,7 +18,6 @@ $Id$
package org.fortiss.af3.mira.ui.action;
import static org.eclipse.jface.dialogs.MessageDialog.openError;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickFirstInstanceOf;
import java.util.ArrayList;
import java.util.List;
......@@ -41,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.EObjectActionBase;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: C8C2DD6CFCF6DEF5BFFFBE44F32C5A13
* @ConQAT.Rating YELLOW Hash: 2660E8E7AB89FBD23A209516E570FD11
*/
public abstract class ConnectUseCaseToPortsActionBase extends EObjectActionBase<UseCase> {
......@@ -78,9 +77,7 @@ public abstract class ConnectUseCaseToPortsActionBase extends EObjectActionBase<
@Override
public void run() {
// get scope component of requirement
// TODO (FH): add an EOperation in the meta-model for this access
ScopeSpecification scopeSpec =
pickFirstInstanceOf(ScopeSpecification.class, getTarget().getReferencedByList());
ScopeSpecification scopeSpec = getTarget().getScopeSpecification();
if(scopeSpec == null || !(scopeSpec.getSpecificationOf() instanceof Component)) {
openError(shell, "Scope", "Cannot find assigned scope component!");
return;
......
......@@ -17,7 +17,7 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.ui.action;
import static org.fortiss.af3.mira.ui.utils.ImageUtils.copyFile;
import static org.conqat.lib.commons.filesystem.FileSystemUtils.copyFile;
import java.io.File;
import java.io.IOException;
......@@ -36,7 +36,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.EObjectActionBase;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 207CFA5CBE680E5C3F8D778541E30B09
* @ConQAT.Rating YELLOW Hash: EA529435EA2CCF53C335F2DD7EAEB5AB
*/
public class ExportImagesAction extends EObjectActionBase<EObject> {
......
......@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelEditorBindingService;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 6428A990589C71A13C42FA8DA0DCF9B0
* @ConQAT.Rating YELLOW Hash: B1B01144C69A75F1CAF35E4A5887D8FC
*/
public class ExportMSCImagesAction extends EObjectActionBase<EObject> {
/** folder which should contain the images in the end */
......@@ -61,9 +61,7 @@ public class ExportMSCImagesAction extends EObjectActionBase<EObject> {
exportMSCImages((UseCase)getTarget());
}
if(getTarget() instanceof Analysis) {
// TODO (FH): add an EOperation in the meta-model for this access
for(UseCase uc : pickInstanceOf(UseCase.class,
((Analysis)getTarget()).getContainedElementsList()))
for(UseCase uc : ((Analysis)getTarget()).getUseCase())
exportMSCImages(uc);
}
......
......@@ -34,10 +34,18 @@ import org.fortiss.af3.mira.utils.MiraUtils;
* @author teufl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 3CFCB7CF9A23EE285C9D7A5D67847344
* @ConQAT.Rating YELLOW Hash: 5CD68DB97210034C6B9A48D1DC41F525
*/
public class AnalysisLabelProvider implements ITableLabelProvider {
/** {@link Image} icon for {@link UseCase} */
private static Image usecaseIcon = imageDescriptorFromPlugin(PLUGIN_ID,
"icons/Icon_UseCase.png").createImage();
/** {@link Image} icon for {@link Requirement} */
private static Image requirementIcon = imageDescriptorFromPlugin(PLUGIN_ID,
"icons/Icon_Requirement.png").createImage();
/** {@inheritDoc} */
@Override
public void addListener(ILabelProviderListener listener) {
......@@ -65,19 +73,11 @@ public class AnalysisLabelProvider implements ITableLabelProvider {
/** {@inheritDoc} */
@Override
public Image getColumnImage(Object element, int columnIndex) {
if(columnIndex == 1) {
if(element instanceof UseCase) {
// TODO (FH): Possible BUG: createImage should be used in a very limited way, since
// Windows
// has limited image buffers per process. So, do not create an image for each
// column, but
// buffer it and return the same image for every column of that kind.
return imageDescriptorFromPlugin(PLUGIN_ID, "icons/Icon_UseCase.png").createImage();
return usecaseIcon;
} else if(element instanceof Requirement) {
return imageDescriptorFromPlugin(PLUGIN_ID, "icons/Icon_Requirement.png")
.createImage();
return requirementIcon;
}
}
......
......@@ -17,6 +17,9 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.ui.editor;
import static org.eclipse.core.runtime.Assert.isNotNull;
import static org.eclipse.core.runtime.Assert.isTrue;
import org.eclipse.core.runtime.Assert;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.util.EContentAdapter;
......@@ -42,7 +45,7 @@ import org.fortiss.tooling.kernel.ui.presentation.ModelElementLabelProvider;
* @author mou
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 74B071C55625F75123DE803C6F6DFBD9
* @ConQAT.Rating YELLOW Hash: 067E0E513648F0F2039B2BE80E327E95
*/
public class RelationTargetEditingSupport extends EditingSupport {
......@@ -58,11 +61,10 @@ public class RelationTargetEditingSupport extends EditingSupport {
/** {@inheritDoc} */
@Override
protected void setValue(Object element, Object value) {
// TODO (FH): import static
Assert.isNotNull(element);
Assert.isNotNull(value);
Assert.isTrue(element instanceof RequirementRelation);
Assert.isTrue(value instanceof Requirement);
isNotNull(element);
isNotNull(value);
isTrue(element instanceof RequirementRelation);
isTrue(value instanceof Requirement);
final RequirementRelation rel = (RequirementRelation)element;
final Requirement target = (Requirement)value;
......
......@@ -17,7 +17,9 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.ui.editor;
import org.eclipse.core.runtime.Assert;
import static org.eclipse.core.runtime.Assert.isNotNull;
import static org.eclipse.core.runtime.Assert.isTrue;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ColumnViewer;
import org.eclipse.jface.viewers.DialogCellEditor;
......@@ -35,7 +37,7 @@ import org.fortiss.tooling.kernel.service.ICommandStackService;
* @author uden
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: E6A6C467D416AF7CA927ADC8383F1375
* @ConQAT.Rating YELLOW Hash: 4AC6C7E321B50994C942DC38C5DB83F4
*/
public final class ScenarioActorEditingSupport extends EditingSupport {
......@@ -47,9 +49,8 @@ public final class ScenarioActorEditingSupport extends EditingSupport {
/** {@inheritDoc} */
@Override
protected void setValue(Object element, Object value) {
// TODO (FH): import static
Assert.isNotNull(element);
Assert.isTrue(element instanceof ScenarioStep);
isNotNull(element);
isTrue(element instanceof ScenarioStep);
if(value == null || !(value instanceof Actor)) {
return;
......@@ -69,8 +70,8 @@ public final class ScenarioActorEditingSupport extends EditingSupport {
/** {@inheritDoc} */
@Override
protected Object getValue(Object element) {
Assert.isNotNull(element);
Assert.isTrue(element instanceof ScenarioStep);
isNotNull(element);
isTrue(element instanceof ScenarioStep);
ScenarioStep step = (ScenarioStep)element;
if(step.getActor() == null) {
......
......@@ -17,6 +17,8 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.ui.editor;
import static org.eclipse.core.databinding.validation.ValidationStatus.error;
import org.eclipse.core.databinding.validation.IValidator;
import org.eclipse.core.databinding.validation.ValidationStatus;
import org.eclipse.core.runtime.IStatus;
......@@ -30,7 +32,7 @@ import org.fortiss.af3.mira.model.Requirement;
* @author teufl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 273BAD91EE2CBEDCD72078F718C1359D
* @ConQAT.Rating YELLOW Hash: EFC0F5B4D51B838A27E5043872024329
*/
public class StringToIDValidator implements IValidator {
......@@ -55,8 +57,7 @@ public class StringToIDValidator implements IValidator {
}
}
} catch(Exception e) {
// TODO: import static
return ValidationStatus.error(e.getMessage());
return error(e.getMessage());
}
return ValidationStatus.ok();
}
......
......@@ -17,10 +17,10 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.ui.editor.images;
import static org.conqat.lib.commons.filesystem.FileSystemUtils.copyFile;
import static org.eclipse.jface.dialogs.MessageDialog.openInformation;
import static org.eclipse.jface.dialogs.MessageDialog.openQuestion;
import static org.eclipse.jface.layout.GridDataFactory.swtDefaults;
import static org.fortiss.af3.mira.ui.utils.ImageUtils.copyFile;
import static org.fortiss.af3.mira.utils.MiraModelElementFactory.createImageItem;
import static org.fortiss.af3.project.ui.utils.NewProjectUtils.getDefaultGeneralProjectPath;
......@@ -52,7 +52,7 @@ import org.fortiss.tooling.kernel.service.ICommandStackService;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: DB20CEBE7C7B97F3336DA790DA2D2968
* @ConQAT.Rating GREEN Hash: F88277E7C1A0262A8A15CB41090FDE09
*/
public class ImageSection {
/** Composite on which all elements should created */
......
......@@ -92,7 +92,7 @@ import org.fortiss.tooling.base.model.layout.EOrientation;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: B1712FAB00B84AEEF05ADAB75F2BD905
* @ConQAT.Rating YELLOW Hash: A9DBF4D4CD35F08F14606568C5014B0F
*/
public class SimpleTrafficLightsRequirementsExample extends
SimpleTrafficLightsStateAutomatonExample {
......@@ -110,20 +110,10 @@ public class SimpleTrafficLightsRequirementsExample extends
@Override
public FileProject createProject(String projectName) {
FileProject project = super.createProject(projectName);
// TODO (FH): unnecessary in-code comment
// Add requirement analysis.
Analysis analysis = createExampleAnalysis(project);
// Set the IDs of the project uniquely.
generateAllIDs(project);
// Set execution configuration referenced ID.
setExecutionConfigReferencedID(project);
// Create Glossary
createExampleGlossary(analysis);
// Return the new project.
return project;
}
......@@ -161,7 +151,6 @@ public class SimpleTrafficLightsRequirementsExample extends
Actor actorController = createActor("Controller", "");
activateTLC.getActorList().add(actorController);
// Set comment.
activateTLC.setComment("Here you have place to write some comment.");
// Create success scenario.
......@@ -172,32 +161,24 @@ public class SimpleTrafficLightsRequirementsExample extends
Scenario failureScenario = createScenario("Failure scenario", "", false, activateTLC);
// Create failure scenario steps.
// step 0
ScenarioStep failureStep0 =
createScenarioStep("Controller switches traffic lights to red.", actorController,
OUTPUT, null, failureScenario);
// step 1
createScenarioStep("Controller switches pedestrian light to 'no go'.", actorController,
OUTPUT, null, failureScenario);
// Create success scenario steps.
// step 0
createScenarioStep(
"Pedestrian activates the traffic light controller by pushing button A or B.",
actorPedestrian, INPUT, null, activateTLCScenario);
// step 1
createScenarioStep("Light on indicator goes on.", actorController, OUTPUT, null,
activateTLCScenario);
// step 2
createScenarioStep("Controller switches traffic light to 'yellow'.", actorController,
OUTPUT, failureStep0, activateTLCScenario);
// step 3
createScenarioStep("Controller switches traffic light to 'red'.", actorController, OUTPUT,
failureStep0, activateTLCScenario);
// step 4
createScenarioStep("Controller switches pedestrian light to 'go'.", actorController,
OUTPUT, failureStep0, activateTLCScenario);
// step 5
createScenarioStep("Light on indicator goes off.", actorController, OUTPUT, failureStep0,
activateTLCScenario);
......
......@@ -18,10 +18,6 @@ $Id$
package org.fortiss.af3.mira.ui.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
......@@ -46,55 +42,10 @@ import org.fortiss.tooling.base.ui.editpart.ExtendedLayerRootEditPart;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: C0ACB6BD530230912FF0281E0A2B2C91
* @ConQAT.Rating YELLOW Hash: 123DDA0DB232C1BC7C39F36792EECD82
*/
public class ImageUtils {
/**
* Method to copy a file.
*
* In Java 7 this method could be shortened by using the Files class.
*
* @param sourceFile
* the file to copy
* @param destFile
* file specifying the location where the copy should be placed
* @throws IOException
*/
// TODO (FH): Why not use org.conqat.lib.commons.filesystem.FileSystemUtils?
public static void copyFile(File sourceFile, File destFile) throws IOException {
if(!destFile.exists()) {
destFile.createNewFile();
}
FileInputStream fileIn = null;
FileOutputStream fileOut = null;
FileChannel source = null;
FileChannel destination = null;
try {
fileIn = new FileInputStream(sourceFile);
source = fileIn.getChannel();
fileOut = new FileOutputStream(destFile);
destination = fileOut.getChannel();
long transfered = 0;
long bytes = source.size();
while(transfered < bytes) {
transfered += destination.transferFrom(source, 0, source.size());
destination.position(transfered);
}
} finally {
if(source != null) {
source.close();
} else if(fileIn != null) {
fileIn.close();
}
if(destination != null) {
destination.close();
} else if(fileOut != null) {
fileOut.close();
}
}
}
/**
* Exports the content shown in the graphical editor as image to the filesystem
*/
......
......@@ -41,10 +41,3 @@ Require-Bundle: org.fortiss.af3.component;bundle-version="2.2.0";visibility:=ree
Bundle-ActivationPolicy: lazy
Bundle-NativeCode: lib/com4j-x86.dll; lib/com4j-amd64.dll
Bundle-Activator: org.fortiss.af3.mira.AF3MiraActivator
Import-Package: org.eclipse.core.resources,
org.eclipse.jface.dialogs,
org.eclipse.jface.viewers,
org.eclipse.jface.window,
org.eclipse.swt.graphics,
org.eclipse.swt.widgets,
org.fortiss.af3.project.ui.utils
......@@ -28,6 +28,14 @@
<eTypeArguments eClassifier="#//glossary/Glossary"/>