From f08ca7ca23a4ef867e82469dc09dc20611a202eb Mon Sep 17 00:00:00 2001 From: Matthias Arzt Date: Tue, 8 Oct 2024 23:13:54 +0200 Subject: [PATCH] Make MamutViewStateXMLSerialization public Making this class more accessible allows classes outside this package to read and write "gui.xml" files. It is particularly useful for mastodon-git. --- .../mastodon/mamut/io/MamutViewStateXMLSerialization.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/mastodon/mamut/io/MamutViewStateXMLSerialization.java b/src/main/java/org/mastodon/mamut/io/MamutViewStateXMLSerialization.java index 363641d17..669c41652 100644 --- a/src/main/java/org/mastodon/mamut/io/MamutViewStateXMLSerialization.java +++ b/src/main/java/org/mastodon/mamut/io/MamutViewStateXMLSerialization.java @@ -72,7 +72,7 @@ * Utility class that can transform a GUI state * Map< String, Object > to XML and vice versa. */ -class MamutViewStateXMLSerialization +public class MamutViewStateXMLSerialization { private static final String WINDOW_TAG = "Window"; @@ -88,7 +88,7 @@ class MamutViewStateXMLSerialization */ private static final String CHOSEN_CONTEXT_PROVIDER_KEY = "ContextProvider"; - static Element toXml( final Map< String, Object > guiState ) + public static Element toXml( final Map< String, Object > guiState ) { final Element element = new Element( WINDOW_TAG ); toXml( guiState, element ); @@ -191,7 +191,7 @@ else if ( value instanceof List ) * @param windowManager * the application {@link WindowManager}. */ - static void fromXml( final Element windowsEl, final WindowManager windowManager ) + public static void fromXml( final Element windowsEl, final WindowManager windowManager ) { final MamutViews viewFactories = windowManager.getViewFactories(); final Collection< Class< ? extends MamutViewI > > classes = viewFactories.getKeys();