-
Notifications
You must be signed in to change notification settings - Fork 27
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
Showing
173 changed files
with
2,006 additions
and
16 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions
6
plugins/fr.obeo.dsl.arduino.design/resources/ArdublockKit.arduino
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
50 changes: 50 additions & 0 deletions
50
plugins/fr.obeo.dsl.arduino.design/src/fr/obeo/dsl/arduino/design/ArduinoDesignerUtils.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 fr.obeo.dsl.arduino.design; | ||
|
||
import org.eclipse.emf.ecore.EObject; | ||
import org.eclipse.emf.ecore.resource.Resource; | ||
import org.eclipse.sirius.ui.business.api.session.IEditingSession; | ||
import org.eclipse.sirius.ui.business.api.session.SessionUIManager; | ||
|
||
import fr.obeo.dsl.arduino.Project; | ||
|
||
/** | ||
* Utility for arduino designer. | ||
* | ||
* @author <a href="mailto:[email protected]">Yvan Lussaud</a> | ||
* | ||
*/ | ||
public final class ArduinoDesignerUtils { | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
private ArduinoDesignerUtils() { | ||
// nothing to do here | ||
} | ||
|
||
/** | ||
* Gets the opened {@link Project}. | ||
* | ||
* @return the opened {@link Project} if nay, <code>null</code> otherwise | ||
*/ | ||
public static Project getOpenedProject() { | ||
Project res = null; | ||
|
||
for (IEditingSession session : SessionUIManager.INSTANCE | ||
.getUISessions()) { | ||
for (Resource resource : session.getSession() | ||
.getSemanticResources()) { | ||
for (EObject eObj : resource.getContents()) { | ||
if (eObj instanceof Project | ||
&& eObj.eResource().getURI().isPlatformResource()) { | ||
res = (Project) eObj; | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
|
||
return res; | ||
} | ||
|
||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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/J2SE-1.5"/> | ||
<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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>fr.obeo.dsl.arduino.simulator.design</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> | ||
<buildCommand> | ||
<name>org.eclipse.acceleo.ide.ui.acceleoBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.acceleo.ide.ui.acceleoNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
</natures> | ||
</projectDescription> | ||
|
7 changes: 7 additions & 0 deletions
7
plugins/fr.obeo.dsl.arduino.simulator.design/.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.5 | ||
org.eclipse.jdt.core.compiler.compliance=1.5 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.5 |
29 changes: 29 additions & 0 deletions
29
plugins/fr.obeo.dsl.arduino.simulator.design/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,29 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: fr.obeo.dsl.arduino.simulator.design | ||
Bundle-SymbolicName: fr.obeo.dsl.arduino.simulator.design;singleton:=true | ||
Bundle-Version: 1.0.0 | ||
Bundle-Activator: fr.obeo.dsl.arduino.simulator.design.Activator | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.core.resources, | ||
org.eclipse.sirius, | ||
org.eclipse.sirius.common.acceleo.mtl, | ||
fr.obeo.dsl.arduino.design;bundle-version="1.0.0", | ||
fr.obeo.dsl.arduino.simulator;bundle-version="1.0.0", | ||
fr.obeo.dsl.debug;bundle-version="1.0.0", | ||
fr.obeo.dsl.debug.ide;bundle-version="1.0.0", | ||
fr.obeo.dsl.debug.ide.ui;bundle-version="1.0.0", | ||
fr.obeo.dsl.debug.ide.sirius.ui;bundle-version="1.0.0", | ||
fr.obeo.dsl.debug.edit;bundle-version="1.0.0", | ||
org.eclipse.debug.core;bundle-version="3.9.1", | ||
org.eclipse.debug.ui;bundle-version="3.10.1", | ||
fr.obeo.dsl.arduino;bundle-version="1.0.0", | ||
fr.obeo.dsl.arduino.edit;bundle-version="1.0.0", | ||
org.eclipse.emf.transaction | ||
Bundle-ActivationPolicy: lazy | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Export-Package: fr.obeo.dsl.arduino.simulator.design, | ||
fr.obeo.dsl.arduino.simulator.design.action, | ||
fr.obeo.dsl.arduino.simulator.design.launcher, | ||
fr.obeo.dsl.arduino.simulator.design.services |
8 changes: 8 additions & 0 deletions
8
plugins/fr.obeo.dsl.arduino.simulator.design/build.properties
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,8 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
description/,\ | ||
plugin.xml,\ | ||
icons/ | ||
customBuildCallbacks = build.acceleo |
Oops, something went wrong.