|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Access the PlanController » » » » Post: Re: Access the PlanController |
Print at Dec 21, 2025, 10:32:26 PM |
| Posted by Puybaret at Sep 12, 2011, 8:45:07 PM |
|
Re: Access the PlanController I know it could be useful. It would let the plug-in access the views too. If it's not accessible, it's because it will oblige me to maintain for ever the backward compatibility of com.eteks.sweethome3d.viewcontroller API. Even if I didn't break it in the past, only the API of com.eteks.sweethome3d.model and com.eteks.sweethome3d.plugin packages are in this case at this moment, because they are the only two packages accessible from a plug-in. If I change it, I'll add a getHomeController to Plugin class, and from the HomeController instance it will return, you'll be able to access to PlanController instance. I'll also would like to reduce PlanController class size by extracting all ControllerState classes to a com.eteks.sweethome3d.viewcontroller.plan new package, but don't want to introduce a bidirectional dependency between com.eteks.sweethome3d.viewcontroller and com.eteks.sweethome3d.viewcontroller.plan packages. I could make PlanController class and all its get...State() methods abstract, implement them in a new com.eteks.sweethome3d.viewcontroller.plan.DefaultPlanController subclass and instantiate DefaultPlanController class in com.eteks.sweethome3d assembly package. That should make it, don't you think? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 21, 2025, 10:32:26 PM |