-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'GAMA_1.8.2' of https://github.com/gama-platform/gama in…
…to GAMA_1.8.2
- Loading branch information
Showing
13 changed files
with
209 additions
and
29 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
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
7 changes: 7 additions & 0 deletions
7
msi.gama.core/src/msi/gama/util/serialize/IStreamConverter.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,7 @@ | ||
package msi.gama.util.serialize; | ||
|
||
import msi.gama.runtime.IScope; | ||
|
||
public interface IStreamConverter { | ||
abstract String convertObjectToJSONStream(final IScope scope, final Object o); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry exported="true" kind="lib" path="ext/mxparser-1.2.2.jar"/> | ||
<classpathentry exported="true" kind="lib" path="ext/xstream-1.4.18.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="gaml"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> | ||
<attributes> | ||
<attribute name="module" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry exported="true" kind="lib" path="ext/mxparser-1.2.2.jar"/> | ||
<classpathentry exported="true" kind="lib" path="ext/xstream-1.4.18.jar"/> | ||
<classpathentry exported="true" kind="lib" path="ext/jettison-1.4.1.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<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
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
Binary file not shown.
19 changes: 19 additions & 0 deletions
19
ummisco.gama.serialize/src/ummisco/gama/serializer/Activator.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,19 @@ | ||
package ummisco.gama.serializer; | ||
import org.osgi.framework.BundleActivator; | ||
import org.osgi.framework.BundleContext; | ||
|
||
import msi.gama.util.file.json.Jsoner; | ||
import ummisco.gama.serializer.inject.ConverterJSON; | ||
|
||
public class Activator implements BundleActivator { | ||
|
||
@Override | ||
public void start(BundleContext context) throws Exception { | ||
Jsoner.streamConverter = new ConverterJSON(); | ||
} | ||
|
||
@Override | ||
public void stop(BundleContext context) throws Exception { | ||
// TODO Auto-generated method stub | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
ummisco.gama.serialize/src/ummisco/gama/serializer/inject/ConverterJSON.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,13 @@ | ||
package ummisco.gama.serializer.inject; | ||
|
||
import msi.gama.runtime.IScope; | ||
import msi.gama.util.serialize.IStreamConverter; | ||
import ummisco.gama.serializer.factory.StreamConverter; | ||
|
||
public class ConverterJSON implements IStreamConverter { | ||
|
||
@Override | ||
public String convertObjectToJSONStream(IScope scope, Object o) { | ||
return StreamConverter.convertObjectToJSONStream(scope,o); | ||
} | ||
} |