Skip to content

Conversation

@edominia
Copy link

Signed-off-by: Emilia Dominiak emilia.dominiak@intel.com

Copy link

@jajanusz jajanusz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting issues - I'd go with default eclipse conventions as probably that will be what most of plugin developers will use.
So you probably can solve of mentioned problems with ctrl shif f & ctrl shift o in eclipse.

@edominia edominia mentioned this pull request Dec 20, 2019
@lgirdwood
Copy link
Member

@edominia please also use a more descriptive commit message. You need to explain what, why and how for each patch.

@edominia edominia force-pushed the serialize-json branch 3 times, most recently from 400c344 to 4d84c46 Compare January 22, 2020 13:55
@jajanusz
Copy link

Regarding jars that this PR adds f.e. - org.sofproject.gst.topo/lib/jackson-annotations-2.10.1.jar
@mmaka1 Is it ok to have these binaries here, are there no licensing issues?

gridLayout.verticalSpacing = 8;
shell.setLayout(gridLayout);

new Label(shell, SWT.NULL).setText("Name:");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name, description, and other properties collected here should be properties accessible via the ITopoGraph interface, displayed and editable in the Properties view. So that the serialize-to-json operation would not require any user interaction.

try {
ByteArrayOutputStream os = new ByteArrayOutputStream();
Writer writer = new BufferedWriter(new OutputStreamWriter(os));
tlvs.serialize(writer);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not duplicate the code of ITopoGraph.serialize(). Atm me may just refactor the latter to return a String and move target file content writing to topo.ui.

.,\
plugin.xml
plugin.xml,\
lib/jackson-annotations-2.10.1.jar,\
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not import external binaries to the plug-in repository. Add a dependency to an existing Eclipse plug-in(s) to the manifest (and adjust the documentation if any of them is not a part of core bundle, see how the dependency on GEF is handled).

@edominia
Copy link
Author

Regarding jars that this PR adds f.e. - org.sofproject.gst.topo/lib/jackson-annotations-2.10.1.jar
@mmaka1 Is it ok to have these binaries here, are there no licensing issues?

Jackson is on Apache license so I think it's ok.

There was only possibility to serialize topology to gstreamer format.
Added JSON serialize functionality. JSON format is is compatible with
VAS.

Signed-off-by: Emilia Dominiak <emilia.dominiak@intel.com>
@edominia
Copy link
Author

Merge three pull requests into one #43

@edominia edominia closed this Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants