Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
bdd87f79
Commit
bdd87f79
authored
1 year ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Remove more commented out XML export/serialization stuff
parent
a978a0a2
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#116163
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
de.prob.ui/src/de/prob/ui/eventb/ExportNewCoreHandler.java
+0
-20
0 additions, 20 deletions
de.prob.ui/src/de/prob/ui/eventb/ExportNewCoreHandler.java
with
0 additions
and
20 deletions
de.prob.ui/src/de/prob/ui/eventb/ExportNewCoreHandler.java
+
0
−
20
View file @
bdd87f79
...
@@ -113,26 +113,6 @@ public class ExportNewCoreHandler extends AbstractHandler implements IHandler {
...
@@ -113,26 +113,6 @@ public class ExportNewCoreHandler extends AbstractHandler implements IHandler {
}
}
}
}
// private static String serialize(Project project, String maincomponent) {
// NewCoreModelTranslation translation = new NewCoreModelTranslation();
// Model model = translation.translate(project, maincomponent);
// // XStream xstream = new XStream(new JettisonMappedXmlDriver());
// XStream xstream = new XStream();
// String xml = xstream.toXML(model);
// ByteArrayOutputStream out = new ByteArrayOutputStream();
// GZIPOutputStream gzip;
// byte[] bytes;
// try {
// gzip = new GZIPOutputStream(out);
// gzip.write(xml.getBytes());
// gzip.close();
// bytes = out.toByteArray();
// } catch (IOException e) {
// bytes = xml.getBytes();
// }
// return Base64.encodeBase64String(bytes);
// }
private
static
boolean
isSafeToWrite
(
final
String
filename
)
{
private
static
boolean
isSafeToWrite
(
final
String
filename
)
{
if
(
new
File
(
filename
).
exists
())
{
if
(
new
File
(
filename
).
exists
())
{
final
MessageDialog
dialog
=
new
MessageDialog
(
null
,
"File exists"
,
final
MessageDialog
dialog
=
new
MessageDialog
(
null
,
"File exists"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment