Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Provide custom DAnalysisSessionImpl
Provide custom DAnalysisSessionImpl [message #1850376] Mon, 28 February 2022 09:47
Ali AKAR is currently offline Ali AKARFriend
Messages: 31
Registered: July 2009

Sirius provides an extension point org.eclipse.sirius.sessionFactory to contribute a factory and we can create our custom session using our custom contributed factory.

I need to change a bit the behavior of the DAnalysisSessionImpl but as it is in an internal package it's not recommended to be overriden.

When I create my own CustomDAnalysisSessionImpl which extends DAnalysisSessionEObjectImpl and implements Session, DAnalysisSession, ResourceSyncClient, I face the issue that DAnalysisSessionImpl is casted at many place of the code and also used as parameter of some methods without using the interface DAnalysisSession.

Below are some example where the cast is done:, EObject, RepresentationDescription, Session, IProgressMonitor), String, Session, IProgressMonitor)

So I wonder why the interface DAnalysisSession is not used and what is the best way to provide a custom Session.

Thank you in advance for you feedback.
Previous Topic:Conditional Style Based on Theme - Light vs Dark Mode
Next Topic:Select in Property View does not show anything
Goto Forum:

Current Time: Sat Jul 13 04:26:17 GMT 2024

Powered by FUDForum. Page generated in 0.03170 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top