Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2012-03-05 20:10:54 +0000
committerThomas Schuetz2012-03-05 20:10:54 +0000
commitae03bd89d5425c39a3d5b9f2a8d017a860362c65 (patch)
treecd28c053fee9337653fcdd389ed541e1da4a1f4c /plugins
parentb294648b0d219759973953f6a37e37a14aa8ee7f (diff)
downloadorg.eclipse.etrice-ae03bd89d5425c39a3d5b9f2a8d017a860362c65.tar.gz
org.eclipse.etrice-ae03bd89d5425c39a3d5b9f2a8d017a860362c65.tar.xz
org.eclipse.etrice-ae03bd89d5425c39a3d5b9f2a8d017a860362c65.zip
[ui.commands, ui.behavior, ui.structure] changed diagram export to fixed
path into doc-gen/images
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java311
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/editor/BehaviorExporter.java2
-rw-r--r--plugins/org.eclipse.etrice.ui.commands/src/org/eclipse/etrice/ui/commands/handlers/ExportDiagramsHandler.java27
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java2
4 files changed, 296 insertions, 46 deletions
diff --git a/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java b/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java
index 00dd2b0c4..04160857c 100644
--- a/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java
+++ b/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java
@@ -7,6 +7,7 @@ import java.util.List;
import org.eclipse.emf.common.util.EList;
import org.eclipse.etrice.core.room.ActorClass;
import org.eclipse.etrice.core.room.Attribute;
+import org.eclipse.etrice.core.room.ChoicePoint;
import org.eclipse.etrice.core.room.DataClass;
import org.eclipse.etrice.core.room.DataType;
import org.eclipse.etrice.core.room.Documentation;
@@ -15,6 +16,8 @@ import org.eclipse.etrice.core.room.ProtocolClass;
import org.eclipse.etrice.core.room.RefableType;
import org.eclipse.etrice.core.room.RoomModel;
import org.eclipse.etrice.core.room.StandardOperation;
+import org.eclipse.etrice.core.room.State;
+import org.eclipse.etrice.core.room.StateGraph;
import org.eclipse.etrice.core.room.VarDecl;
import org.eclipse.etrice.generator.base.ILogger;
import org.eclipse.etrice.generator.base.IRoomGenerator;
@@ -66,6 +69,8 @@ public class DocGen implements IRoomGenerator {
_builder.newLine();
_builder.append("\\usepackage{graphicx}");
_builder.newLine();
+ _builder.append("\\parindent 0pt");
+ _builder.newLine();
_builder.append("\\makeatletter");
_builder.newLine();
_builder.append("\\newcommand\\level[1]{%");
@@ -264,7 +269,7 @@ public class DocGen implements IRoomGenerator {
public StringConcatenation generateDataClassDoc(final Root root, final DataClass dc) {
StringConcatenation _builder = new StringConcatenation();
- _builder.append("\\subsection {");
+ _builder.append("\\level{2} {");
String _name = dc.getName();
_builder.append(_name, "");
_builder.append("}");
@@ -305,7 +310,7 @@ public class DocGen implements IRoomGenerator {
public StringConcatenation generateProtocolClassDoc(final Root root, final ProtocolClass pc) {
StringConcatenation _builder = new StringConcatenation();
_builder.append("\t");
- _builder.append("\\subsection {");
+ _builder.append("\\level{2} {");
String _name = pc.getName();
_builder.append(_name, " ");
_builder.append("}");
@@ -420,18 +425,17 @@ public class DocGen implements IRoomGenerator {
{
EList<ActorClass> _actorClasses = model.getActorClasses();
for(final ActorClass ac : _actorClasses) {
+ _builder.append("\\newpage");
+ _builder.newLine();
+ _builder.append("\t");
StringConcatenation _generateActorClassDoc = this.generateActorClassDoc(root, model, ac);
- _builder.append(_generateActorClassDoc, "");
+ _builder.append(_generateActorClassDoc, " ");
_builder.newLineIfNotEmpty();
}
}
return _builder;
}
- /**
- * «IF fileExists(ac.name) == "true"»
- * «ENDIF»
- */
public StringConcatenation generateActorClassDoc(final Root root, final RoomModel model, final ActorClass ac) {
StringConcatenation _xblockexpression = null;
{
@@ -439,14 +443,14 @@ public class DocGen implements IRoomGenerator {
String _operator_plus = StringExtensions.operator_plus(_docGenerationTargetPath, "images\\");
String _name = ac.getName();
String _operator_plus_1 = StringExtensions.operator_plus(_operator_plus, _name);
- String _operator_plus_2 = StringExtensions.operator_plus(_operator_plus_1, ".jpg");
+ String _operator_plus_2 = StringExtensions.operator_plus(_operator_plus_1, "_structure.jpg");
String filename = _operator_plus_2;
String _replaceAll = filename.replaceAll("\\\\", "/");
filename = _replaceAll;
String _replaceAll_1 = filename.replaceAll("/", "//");
- String filename1 = _replaceAll_1;
+ String latexFilename = _replaceAll_1;
StringConcatenation _builder = new StringConcatenation();
- _builder.append("\\subsection{");
+ _builder.append("\\level{2}{");
String _name_1 = ac.getName();
_builder.append(_name_1, "");
_builder.append("}");
@@ -462,40 +466,259 @@ public class DocGen implements IRoomGenerator {
String _fileExists = this.fileExists(filename);
boolean _equals = _fileExists.equals("true");
if (_equals) {
- _builder.append("\\begin{figure}[h]");
- _builder.newLine();
- _builder.append("\\begin{center}");
- _builder.newLine();
- _builder.append("\\includegraphics[scale=0.6]{");
- _builder.append(filename1, "");
- _builder.append("}");
+ String _name_2 = ac.getName();
+ String _operator_plus_3 = StringExtensions.operator_plus(_name_2, " Structure");
+ StringConcatenation _includeGraphics = this.includeGraphics(latexFilename, "0.4", _operator_plus_3);
+ _builder.append(_includeGraphics, "");
_builder.newLineIfNotEmpty();
- _builder.append("\\caption{Blinky Toplevel Structure}");
- _builder.newLine();
- _builder.append("\\end{center}");
- _builder.newLine();
- _builder.append("\\end{figure}");
- _builder.newLine();
}
}
_builder.newLine();
- _builder.append("\\level{4}{Attributes}");
+ _builder.append("\\level{3}{Attributes}");
_builder.newLine();
EList<Attribute> _attributes = ac.getAttributes();
StringConcatenation _generateAttributesDoc = this.generateAttributesDoc(_attributes);
_builder.append(_generateAttributesDoc, "");
_builder.newLineIfNotEmpty();
_builder.newLine();
- _builder.append("\\level{3}{Behavior}");
- _builder.newLine();
- _builder.append("\\level{4}{Operations}");
+ _builder.append("\\level{3}{Operations}");
_builder.newLine();
EList<StandardOperation> _operations = ac.getOperations();
StringConcatenation _generateOperationsDoc = this.generateOperationsDoc(_operations);
_builder.append(_generateOperationsDoc, "");
_builder.newLineIfNotEmpty();
- _builder.append("\\level{4}{Statemachine}");
+ {
+ boolean _hasNonEmptyStateMachine = this.roomExt.hasNonEmptyStateMachine(ac);
+ if (_hasNonEmptyStateMachine) {
+ _builder.append("\\level{3}{Statemachine}");
+ _builder.newLine();
+ StringConcatenation _generateFsmDoc = this.generateFsmDoc(model, ac);
+ _builder.append(_generateFsmDoc, "");
+ _builder.newLineIfNotEmpty();
+ }
+ }
+ _xblockexpression = (_builder);
+ }
+ return _xblockexpression;
+ }
+
+ public StringConcatenation generateFsmDoc(final RoomModel model, final ActorClass ac) {
+ StringConcatenation _xblockexpression = null;
+ {
+ String _docGenerationTargetPath = this.roomExt.getDocGenerationTargetPath(model);
+ String _operator_plus = StringExtensions.operator_plus(_docGenerationTargetPath, "images\\");
+ String _name = ac.getName();
+ String _operator_plus_1 = StringExtensions.operator_plus(_operator_plus, _name);
+ String _operator_plus_2 = StringExtensions.operator_plus(_operator_plus_1, "_behavior.jpg");
+ String filename = _operator_plus_2;
+ String _replaceAll = filename.replaceAll("\\\\", "/");
+ filename = _replaceAll;
+ String _replaceAll_1 = filename.replaceAll("/", "//");
+ String latexFilename = _replaceAll_1;
+ StringConcatenation _builder = new StringConcatenation();
+ _builder.append("\\level{4}{Top Level}");
_builder.newLine();
+ {
+ String _fileExists = this.fileExists(filename);
+ boolean _equals = _fileExists.equals("true");
+ if (_equals) {
+ String _name_1 = ac.getName();
+ String _operator_plus_3 = StringExtensions.operator_plus(_name_1, " Top State");
+ StringConcatenation _includeGraphics = this.includeGraphics(latexFilename, "0.4", _operator_plus_3);
+ _builder.append(_includeGraphics, "");
+ _builder.newLineIfNotEmpty();
+ }
+ }
+ _builder.newLine();
+ _builder.append("\\begin{par}");
+ _builder.newLine();
+ {
+ StateGraph _stateMachine = ac.getStateMachine();
+ EList<State> _states = _stateMachine.getStates();
+ for(final State s : _states) {
+ {
+ Documentation _docu = s.getDocu();
+ boolean _operator_notEquals = ObjectExtensions.operator_notEquals(_docu, null);
+ if (_operator_notEquals) {
+ _builder.append("\\textbf{State description} \\textit{");
+ String _statePathName = this.roomExt.getStatePathName(s);
+ String _replaceAll_2 = _statePathName.replaceAll("_", "-");
+ _builder.append(_replaceAll_2, "");
+ _builder.append("}:");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline");
+ _builder.newLine();
+ Documentation _docu_1 = s.getDocu();
+ StringConcatenation _generateDocText = this.generateDocText(_docu_1);
+ _builder.append(_generateDocText, "");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline\\newline");
+ _builder.newLine();
+ }
+ }
+ }
+ }
+ _builder.newLine();
+ {
+ StateGraph _stateMachine_1 = ac.getStateMachine();
+ EList<ChoicePoint> _chPoints = _stateMachine_1.getChPoints();
+ for(final ChoicePoint c : _chPoints) {
+ {
+ Documentation _docu_2 = c.getDocu();
+ boolean _operator_notEquals_1 = ObjectExtensions.operator_notEquals(_docu_2, null);
+ if (_operator_notEquals_1) {
+ _builder.append("\\textbf{Choicepoint description} \\textit{");
+ String _name_2 = c.getName();
+ _builder.append(_name_2, "");
+ _builder.append("}:");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline");
+ _builder.newLine();
+ Documentation _docu_3 = c.getDocu();
+ StringConcatenation _generateDocText_1 = this.generateDocText(_docu_3);
+ _builder.append(_generateDocText_1, "");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline\\newline");
+ _builder.newLine();
+ }
+ }
+ }
+ }
+ _builder.append("\\end{par}");
+ _builder.newLine();
+ _builder.newLine();
+ {
+ StateGraph _stateMachine_2 = ac.getStateMachine();
+ EList<State> _states_1 = _stateMachine_2.getStates();
+ for(final State s_1 : _states_1) {
+ {
+ boolean _isLeaf = this.roomExt.isLeaf(s_1);
+ boolean _operator_not = BooleanExtensions.operator_not(_isLeaf);
+ if (_operator_not) {
+ StringConcatenation _generateStateDoc = this.generateStateDoc(model, ac, s_1);
+ _builder.append(_generateStateDoc, "");
+ _builder.newLineIfNotEmpty();
+ }
+ }
+ }
+ }
+ _xblockexpression = (_builder);
+ }
+ return _xblockexpression;
+ }
+
+ public StringConcatenation generateStateDoc(final RoomModel model, final ActorClass ac, final State state) {
+ StringConcatenation _xblockexpression = null;
+ {
+ String _docGenerationTargetPath = this.roomExt.getDocGenerationTargetPath(model);
+ String _operator_plus = StringExtensions.operator_plus(_docGenerationTargetPath, "images\\");
+ String _name = ac.getName();
+ String _operator_plus_1 = StringExtensions.operator_plus(_operator_plus, _name);
+ String _operator_plus_2 = StringExtensions.operator_plus(_operator_plus_1, "_");
+ String _statePathName = this.roomExt.getStatePathName(state);
+ String _operator_plus_3 = StringExtensions.operator_plus(_operator_plus_2, _statePathName);
+ String _operator_plus_4 = StringExtensions.operator_plus(_operator_plus_3, "_behavior.jpg");
+ String filename = _operator_plus_4;
+ String _replaceAll = filename.replaceAll("\\\\", "/");
+ filename = _replaceAll;
+ String _replaceAll_1 = filename.replaceAll("/", "//");
+ String latexFilename = _replaceAll_1;
+ String _operator_plus_5 = StringExtensions.operator_plus("Gen Filename: ", filename);
+ this.logger.logInfo(_operator_plus_5);
+ StringConcatenation _builder = new StringConcatenation();
+ _builder.append("\\level{4}{Subgraph ");
+ String _statePathName_1 = this.roomExt.getStatePathName(state);
+ String _replaceAll_2 = _statePathName_1.replaceAll("_", "-");
+ _builder.append(_replaceAll_2, "");
+ _builder.append("}");
+ _builder.newLineIfNotEmpty();
+ {
+ String _fileExists = this.fileExists(filename);
+ boolean _equals = _fileExists.equals("true");
+ if (_equals) {
+ String _name_1 = ac.getName();
+ String _operator_plus_6 = StringExtensions.operator_plus(_name_1, "_");
+ String _statePathName_2 = this.roomExt.getStatePathName(state);
+ String _operator_plus_7 = StringExtensions.operator_plus(_operator_plus_6, _statePathName_2);
+ StringConcatenation _includeGraphics = this.includeGraphics(latexFilename, "0.4", _operator_plus_7);
+ _builder.append(_includeGraphics, "");
+ _builder.newLineIfNotEmpty();
+ }
+ }
+ _builder.newLine();
+ _builder.append("\\begin{par}");
+ _builder.newLine();
+ {
+ StateGraph _subgraph = state.getSubgraph();
+ EList<State> _states = _subgraph.getStates();
+ for(final State s : _states) {
+ {
+ Documentation _docu = s.getDocu();
+ boolean _operator_notEquals = ObjectExtensions.operator_notEquals(_docu, null);
+ if (_operator_notEquals) {
+ _builder.append("\\textbf{State description} \\textit{");
+ String _statePathName_3 = this.roomExt.getStatePathName(s);
+ String _replaceAll_3 = _statePathName_3.replaceAll("_", "-");
+ _builder.append(_replaceAll_3, "");
+ _builder.append("}:");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline");
+ _builder.newLine();
+ Documentation _docu_1 = s.getDocu();
+ StringConcatenation _generateDocText = this.generateDocText(_docu_1);
+ _builder.append(_generateDocText, "");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline\\newline");
+ _builder.newLine();
+ }
+ }
+ }
+ }
+ _builder.newLine();
+ {
+ StateGraph _subgraph_1 = state.getSubgraph();
+ EList<ChoicePoint> _chPoints = _subgraph_1.getChPoints();
+ for(final ChoicePoint c : _chPoints) {
+ {
+ Documentation _docu_2 = c.getDocu();
+ boolean _operator_notEquals_1 = ObjectExtensions.operator_notEquals(_docu_2, null);
+ if (_operator_notEquals_1) {
+ _builder.append("\\textbf{Choicepoint description} \\textit{");
+ String _name_2 = c.getName();
+ _builder.append(_name_2, "");
+ _builder.append("}:");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline");
+ _builder.newLine();
+ Documentation _docu_3 = c.getDocu();
+ StringConcatenation _generateDocText_1 = this.generateDocText(_docu_3);
+ _builder.append(_generateDocText_1, "");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\newline\\newline");
+ _builder.newLine();
+ }
+ }
+ }
+ }
+ _builder.append("\\end{par}");
+ _builder.newLine();
+ _builder.append("\t");
+ _builder.newLine();
+ {
+ StateGraph _subgraph_2 = state.getSubgraph();
+ EList<State> _states_1 = _subgraph_2.getStates();
+ for(final State s_1 : _states_1) {
+ {
+ boolean _isLeaf = this.roomExt.isLeaf(s_1);
+ boolean _operator_not = BooleanExtensions.operator_not(_isLeaf);
+ if (_operator_not) {
+ StringConcatenation _generateStateDoc = this.generateStateDoc(model, ac, s_1);
+ _builder.append(_generateStateDoc, "");
+ _builder.newLineIfNotEmpty();
+ }
+ }
+ }
+ }
_xblockexpression = (_builder);
}
return _xblockexpression;
@@ -643,7 +866,8 @@ public class DocGen implements IRoomGenerator {
public String fileExists(final String f) {
File _file = new File(f);
- boolean _exists = _file.exists();
+ final File file = _file;
+ boolean _exists = file.exists();
final boolean exist = _exists;
boolean _operator_equals = ObjectExtensions.operator_equals(((Boolean)exist), ((Boolean)true));
if (_operator_equals) {
@@ -661,6 +885,35 @@ public class DocGen implements IRoomGenerator {
}
}
+ public StringConcatenation includeGraphics(final String filename, final String scale, final String caption) {
+ StringConcatenation _xblockexpression = null;
+ {
+ String _replaceAll = caption.replaceAll("_", "-");
+ String latexCaption = _replaceAll;
+ StringConcatenation _builder = new StringConcatenation();
+ _builder.append("\\begin{figure}[h]");
+ _builder.newLine();
+ _builder.append("\\begin{center}");
+ _builder.newLine();
+ _builder.append("\\includegraphics[scale=");
+ _builder.append(scale, "");
+ _builder.append("]{");
+ _builder.append(filename, "");
+ _builder.append("}");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\caption{");
+ _builder.append(latexCaption, "");
+ _builder.append("}");
+ _builder.newLineIfNotEmpty();
+ _builder.append("\\end{center}");
+ _builder.newLine();
+ _builder.append("\\end{figure}");
+ _builder.newLine();
+ _xblockexpression = (_builder);
+ }
+ return _xblockexpression;
+ }
+
public String irgendwas(final Root root, final ActorClass ac) {
String _name = ac.getName();
String _operator_plus = StringExtensions.operator_plus(_name, ".bla");
diff --git a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/editor/BehaviorExporter.java b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/editor/BehaviorExporter.java
index bcc4d6957..49f6e1519 100644
--- a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/editor/BehaviorExporter.java
+++ b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/editor/BehaviorExporter.java
@@ -25,7 +25,7 @@ import org.eclipse.ui.PlatformUI;
public class BehaviorExporter {
- private static final String SUFFIX = ".behavior.jpg";
+ private static final String SUFFIX = "_behavior.jpg";
public static void export(ActorClass ac, String folder) {
DiagramAccess da = new DiagramAccess();
diff --git a/plugins/org.eclipse.etrice.ui.commands/src/org/eclipse/etrice/ui/commands/handlers/ExportDiagramsHandler.java b/plugins/org.eclipse.etrice.ui.commands/src/org/eclipse/etrice/ui/commands/handlers/ExportDiagramsHandler.java
index 156fca8a2..b5dc55d37 100644
--- a/plugins/org.eclipse.etrice.ui.commands/src/org/eclipse/etrice/ui/commands/handlers/ExportDiagramsHandler.java
+++ b/plugins/org.eclipse.etrice.ui.commands/src/org/eclipse/etrice/ui/commands/handlers/ExportDiagramsHandler.java
@@ -17,8 +17,9 @@ import java.util.List;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -40,8 +41,8 @@ import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.dialogs.ContainerSelectionDialog;
import org.eclipse.ui.handlers.HandlerUtil;
+import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.views.contentoutline.ContentOutline;
import org.eclipse.xtext.diagnostics.Severity;
import org.eclipse.xtext.resource.XtextResource;
@@ -76,6 +77,8 @@ public class ExportDiagramsHandler extends AbstractHandler {
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
final IEditorPart editor = window.getActivePage().getActiveEditor();
if (editor instanceof XtextEditor) {
+ final IPath path = ((FileEditorInput)editor.getEditorInput()).getPath();
+
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
// event from the xtext editor's outline view
@@ -93,7 +96,7 @@ public class ExportDiagramsHandler extends AbstractHandler {
EObject object = resource.getEObject(fragment);
if (object instanceof RoomModel)
- exportDiagrams((RoomModel)object, editor.getSite().getShell());
+ exportDiagrams((RoomModel)object, path, editor.getSite().getShell());
}
}
});
@@ -104,18 +107,12 @@ public class ExportDiagramsHandler extends AbstractHandler {
return null;
}
- protected void exportDiagrams(RoomModel model, Shell shell) {
- ContainerSelectionDialog dialog = new ContainerSelectionDialog(shell,
- ResourcesPlugin.getWorkspace().getRoot(),
- false,
- "Select a destination folder:");
- dialog.showClosedProjects(false);
- dialog.open();
- Object[] results = dialog.getResult();
- if ((results != null) && (results.length > 0) && (results[0] instanceof IPath)) {
- IPath path = (IPath)results[0];
- IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
- IFolder file = workspaceRoot.getFolder(path);
+ protected void exportDiagrams(RoomModel model, IPath modelPath, Shell shell) {
+// IProject project = ResourcesPlugin.getWorkspace().getRoot().getFile(modelPath).getProject();
+ IContainer container = ResourcesPlugin.getWorkspace().getRoot().getContainerForLocation(modelPath.removeLastSegments(1));
+ IProject project = container.getProject();
+ IFolder file = project.getFolder("doc-gen/images");
+ if (file!=null) {
String folder = file.getLocation().toOSString();
for (ActorClass ac : model.getActorClasses()) {
diff --git a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java
index 9a94f1c95..067a85a2e 100644
--- a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java
+++ b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java
@@ -20,7 +20,7 @@ import org.eclipse.etrice.ui.structure.DiagramAccess;
public class StructureExporter {
- private static final String SUFFIX = ".structure.jpg";
+ private static final String SUFFIX = "_structure.jpg";
public static void export(StructureClass ac, String folder) {
DiagramAccess da = new DiagramAccess();

Back to the top