Open willrogers opened 6 years ago
How about moving the TimestampFormats from org.eclipse.java into the apputil plugin? apputil.ui already has the UI components for start/end time, and plain apputil has the non-UI start/end time code.
That works well for me. @boryto, was it you who made the changes to org.csstudio.java
? Would you be happy with this change?
Yes, this OK. We just have to be careful about the plugin namespace change, as we override the default preferences in global plugin customization.
org.csstudio.logging
depends on this, and that's in core. Is it ok for core to depend on applications?
Maybe copying ./src/org/csstudio/java/string/StringSplitter.java into the EDM converter plugin is the safer option after all. That'll fix your EDM converter build issue, and doesn't mess with the plugin depdendencies. If you find a better solution, check that the final product can still prompt for a workspace, i.e. doesn't accidentally already set the workspace because some plugin that was loaded early had to e.g. look for preferences and thus set the workspace.
As a for-what-it's-worth, the EDM converter could also add an RCP -application
definition.
Similar to the MEDM converter, #2342, it would then be built into the CSS product, be usable from the UI, but in addition one could call it from the command line as something like
css -nosplash -application org.csstudio.opibuilder.edmconverter /path/to/file1 /path/to/file2
Advantage: It's all in one product, no need for a separate build of the standalone converter. A dependency of the converter code on org.eclipse would then not matter.
On the other hand, that should not be an excuse to needlessly add depdencencies.
True, this would make sense.
I'm at this time not volunteering to do that, but maybe you have somebody who can check https://github.com/ControlSystemStudio/cs-studio/pull/2343/files for what's needed:
Application
(String []) context.getArguments().get("application.args")
Application
in the plugin.xml..rest is pretty much like what you'd have in any Java main()
The plug-in
org.eclipse.java
says in its manifest: "Java Utilities, no dependencies to Eclipse". However, this was recently changed by the timestamp formatting changes, which requireorg.eclise.equinox.preferences
.You wouldn't expect this to cause a problem, but it has: the standalone EDM converter jar build depended on this, and there's no easy way to include the Eclipse depdency in that build.
We have a couple of options:
./src/org/csstudio/java/time/TimestampFormats.java
into another plugin that has an Eclipse dependency./src/org/csstudio/java/string/StringSplitter.java
into the EDM converter plugin as well and rely on it not changing very muchAny ideas?