Skip to content

Commit

Permalink
Make MamutViewStateXMLSerialization public
Browse files Browse the repository at this point in the history
Making this class more accessible allows classes outside this package to
read and write "gui.xml" files. It is particularly useful for mastodon-git.
  • Loading branch information
maarzt authored and tinevez committed Oct 9, 2024
1 parent 7a16bb2 commit fcabb52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
* Utility class that can transform a GUI state
* <code>Map< String, Object ></code> to XML and vice versa.
*/
class MamutViewStateXMLSerialization
public class MamutViewStateXMLSerialization
{

private static final String WINDOW_TAG = "Window";
Expand All @@ -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 );
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit fcabb52

Please sign in to comment.