This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03f14a8
commit e9d23f4
Showing
22 changed files
with
232 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.yakindu.sct.generator.builder</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
7 changes: 7 additions & 0 deletions
7
plugins/org.yakindu.sct.generator.builder/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.7 |
19 changes: 19 additions & 0 deletions
19
plugins/org.yakindu.sct.generator.builder/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: YAKINDU Builder | ||
Bundle-SymbolicName: org.yakindu.sct.generator.builder;singleton:=true | ||
Bundle-Version: 2.7.1.qualifier | ||
Bundle-Activator: org.yakindu.sct.generator.builder.BuilderActivator | ||
Bundle-Vendor: statecharts.org | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.core.resources, | ||
org.eclipse.emf.ecore, | ||
com.google.guava, | ||
org.yakindu.sct.generator.genmodel, | ||
org.yakindu.sct.domain | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 | ||
Bundle-ActivationPolicy: lazy | ||
Export-Package: org.yakindu.sct.generator.builder, | ||
org.yakindu.sct.generator.builder.action, | ||
org.yakindu.sct.generator.builder.nature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
plugin.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.4"?> | ||
<plugin> | ||
<extension | ||
id="org.yakindu.sct.builder.SCTBuilder" | ||
name="YAKINDU SCT Builder" | ||
point="org.eclipse.core.resources.builders"> | ||
<builder hasNature="true"> | ||
<run class="org.yakindu.sct.generator.builder.SCTBuilder"> | ||
</run> | ||
</builder> | ||
</extension> | ||
<extension | ||
point="org.eclipse.core.resources.natures" | ||
id="org.yakindu.sct.builder.SCTNature" | ||
name="YAKINDU SCT Project Nature"> | ||
<runtime> | ||
<run class="org.yakindu.sct.generator.builder.nature.SCTNature"> | ||
</run> | ||
</runtime> | ||
<builder | ||
id="org.yakindu.sct.builder.SCTBuilder"> | ||
</builder> | ||
</extension> | ||
<extension | ||
point="org.eclipse.ui.popupMenus"> | ||
<objectContribution | ||
adaptable="true" | ||
objectClass="org.eclipse.core.resources.IProject" | ||
nameFilter="*" | ||
id="org.yakindu.sct.builder.addNature"> | ||
<action | ||
label="Add YAKINDU SCT Nature" | ||
class="org.yakindu.sct.generator.builder.action.ToggleSCTNatureAction" | ||
menubarPath="org.eclipse.ui.projectConfigure/additions" | ||
enablesFor="+" | ||
id="org.yakindu.sct.builder.addRemoveNatureAction"> | ||
</action> | ||
<visibility> | ||
<not> | ||
<objectState | ||
name="nature" | ||
value="org.yakindu.sct.builder.SCTNature"> | ||
</objectState> | ||
</not> | ||
</visibility> | ||
</objectContribution> | ||
<objectContribution | ||
adaptable="true" | ||
objectClass="org.eclipse.core.resources.IProject" | ||
nameFilter="*" | ||
id="org.yakindu.sct.builder.removeNature"> | ||
<action | ||
label="Remove YAKINDU SCT Nature" | ||
class="org.yakindu.sct.generator.builder.action.ToggleSCTNatureAction" | ||
menubarPath="org.eclipse.ui.projectConfigure/additions" | ||
enablesFor="+" | ||
id="org.yakindu.sct.builder.addRemoveNatureAction"> | ||
</action> | ||
<visibility> | ||
<objectState | ||
name="nature" | ||
value="org.yakindu.sct.builder.SCTNature"> | ||
</objectState> | ||
</visibility> | ||
</objectContribution> | ||
</extension> | ||
<extension | ||
point="org.eclipse.core.runtime.preferences"> | ||
<initializer class="org.yakindu.sct.generator.core.preferences.GenModelPreferenceInitializer"> | ||
</initializer> | ||
</extension> | ||
<extension point = "org.eclipse.ui.popupMenus"> | ||
<objectContribution | ||
id="org.yakindu.sct.builder.generate" | ||
objectClass="org.eclipse.core.resources.IFile" | ||
nameFilter="*.sgen"> | ||
<action | ||
class="org.yakindu.sct.generator.builder.action.GenerateModelAction" | ||
enablesFor="1" | ||
id="org.yakindu.sct.generator.ui.generateaction" | ||
label="Generate Code Artifacts" | ||
menubarPath="additions"> | ||
</action> | ||
</objectContribution> | ||
</extension> | ||
</plugin> |
50 changes: 50 additions & 0 deletions
50
...yakindu.sct.generator.builder/src/org/yakindu/sct/generator/builder/BuilderActivator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package org.yakindu.sct.generator.builder; | ||
|
||
import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
import org.osgi.framework.BundleContext; | ||
|
||
/** | ||
* The activator class controls the plug-in life cycle | ||
*/ | ||
public class BuilderActivator extends AbstractUIPlugin { | ||
|
||
// The plug-in ID | ||
public static final String PLUGIN_ID = "org.yakindu.sct.builder"; //$NON-NLS-1$ | ||
|
||
// The shared instance | ||
private static BuilderActivator plugin; | ||
|
||
/** | ||
* The constructor | ||
*/ | ||
public BuilderActivator() { | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) | ||
*/ | ||
public void start(BundleContext context) throws Exception { | ||
super.start(context); | ||
plugin = this; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) | ||
*/ | ||
public void stop(BundleContext context) throws Exception { | ||
plugin = null; | ||
super.stop(context); | ||
} | ||
|
||
/** | ||
* Returns the shared instance | ||
* | ||
* @return the shared instance | ||
*/ | ||
public static BuilderActivator getDefault() { | ||
return plugin; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.