I am still learning how to use rich client platform and window builder.
what I have at the moment is a simple plugin project with a view, I then added a second view and in the perspetiveextensions extension, I made it so that both of the views are side by side...
But now here is the question, I have this model provider:
public enum ModelProvider {
INSTANCE;
List<Object> model;
private ModelProvider {
model = new ArayList<Object>();
//make some objects here
//add the objects to the list
}
public List<Object> getModel() {
return model;
}
}
the thing is that I want to share this model with both of the views, because if I go and write this:
ModelProvider.INSTANCE.getModel()
and assign it to some list within each of the views, then surely they will have their own copy of the model and I would like it to be shared...
how can I initialise my application in such a way that it both of my views can share the same model...
perhaps in Application.java??
sorry this is really new to me.