[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [capella-dev] Logger for Capella
|
Hi Felix,
Just heard that you are nominated to a Committer – congratulation!
Regarding your suggestions, I think that it will work for logging commands.
For logging diagram edition (i.e. addition, deletion, edition, movement … of a diagram), I think it could be more sufficient if I can be able to add a Listener to the active model set.
For doing that, I would need to get a collection of Capella objects of a currently active Eclipse part (Below code was what I did with Papyrus). Do you know how to get that with Capella?
ModelSet set = getCurrentModelSet(currentPage.getActivePartReference().getPart(true));
set.getTransactionalEditingDomain().addResourceSetListener(new PapyrusEditorListener());
Regards,
Truong Ho Quang.
On 9/21/16, 12:43 PM, "capella-dev-bounces@xxxxxxxxxxxx on behalf of Felix Dorner" <capella-dev-bounces@xxxxxxxxxxxx on behalf of felix.dorner@xxxxxxxxxxx> wrote:
On 20-Sep-16 15:54, Truong Ho Quang wrote:
> Hi Felix,
>
> I want to log mainly the diagram actions but it does not hurt to log menu/explorer actions.
> Can you give me some pointers?
You could try to listen to events on the EMF Transaction command stack or the platform operation history:
http://download.eclipse.org/modeling/emf/transaction/javadoc/workspace/1.0.3/org/eclipse/emf/workspace/IWorkspaceCommandStack.html
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fcore%2Fcommands%2Foperations%2FIOperationHistory.html
_______________________________________________
capella-dev mailing list
capella-dev@xxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://polarsys.org/mailman/listinfo/capella-dev