Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse ESCET (Supervisory Control Engineering Toolkit)
escet
Commits
364665a6
Commit
364665a6
authored
May 07, 2022
by
Ferdie Reijnen
Browse files
#364
Created CIF benchmark wizard.
parent
08c2378f
Changes
3
Hide whitespace changes
Inline
Side-by-side
cif/org.eclipse.escet.cif.examples/build.properties
View file @
364665a6
...
...
@@ -16,4 +16,5 @@ bin.includes = META-INF/,\
.,
\
plugin.xml,
\
icons/,
\
examples/
examples/,
\
benchmarks/
cif/org.eclipse.escet.cif.examples/plugin.xml
View file @
364665a6
...
...
@@ -27,5 +27,15 @@
Create a project that contains various CIF examples.
</description>
</wizard>
<wizard
category=
"org.eclipse.ui.Examples/org.eclipse.escet.cif.examples.category"
class=
"org.eclipse.escet.cif.examples.CifBenchmarksWizard"
icon=
"icons/cif_examples.png"
id=
"org.eclipse.escet.cif.examples.CifBenchmarksWizard"
name=
"CIF Benchmarks"
project=
"true"
>
<description>
Create a project that contains various CIF benchmarks.
</description>
</wizard>
</extension>
</plugin>
cif/org.eclipse.escet.cif.examples/src/org/eclipse/escet/cif/examples/CifBenchmarksWizard.java
0 → 100644
View file @
364665a6
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2010, 2022 Contributors to the Eclipse Foundation
//
// See the NOTICE file(s) distributed with this work for additional
// information regarding copyright ownership.
//
// This program and the accompanying materials are made available
// under the terms of the MIT License which is available at
// https://opensource.org/licenses/MIT
//
// SPDX-License-Identifier: MIT
//////////////////////////////////////////////////////////////////////////////
package
org.eclipse.escet.cif.examples
;
import
static
org
.
eclipse
.
escet
.
common
.
java
.
Maps
.
map
;
import
java.util.Map
;
import
org.eclipse.escet.common.eclipse.ui.CopyFilesNewProjectWizard
;
import
org.osgi.framework.FrameworkUtil
;
/** Wizard to create a CIF benchmarks project. */
public
class
CifBenchmarksWizard
extends
CopyFilesNewProjectWizard
{
@Override
protected
String
getInitialProjectName
()
{
String
qualifier
=
FrameworkUtil
.
getBundle
(
getClass
()).
getVersion
().
toString
();
return
"CIFBenchmarks-"
+
qualifier
;
}
@Override
protected
Map
<
String
,
String
>
getPathsToCopy
()
{
Map
<
String
,
String
>
entries
=
map
();
return
entries
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment