Skip to main content



      Home
Home » Eclipse Projects » Sirius » inactive representations: how to deal with ?!
inactive representations: how to deal with ?! [message #1732489] Tue, 17 May 2016 11:37 Go to next message
Eclipse UserFriend
Hi,

In the past few months that I've been working with Sirius, I found that in some cases (e.g. changing semantic model manually by the user) diagram representations become inactive. Then the user needs to delete them manually and create one again !

I have attached an example of what I mean by inactive representations.

My Question is: Is there anyways to bring them back available or what is the best approach to handle these kinds of diagrams ? Is there any way to distinguish these representations ? for example when I call getAllRepresentation from DialectManager, it returns me all of these useless representation ? Can I filter these inactive representations ?

Thanks,
Bests,
Parsa
index.php/fa/25943/0/
Re: inactive representations: how to deal with ?! [message #1733041 is a reply to message #1732489] Mon, 23 May 2016 18:50 Go to previous messageGo to next message
Eclipse UserFriend
any idea ?! Sad
Re: inactive representations: how to deal with ?! [message #1733606 is a reply to message #1732489] Mon, 30 May 2016 07:54 Go to previous messageGo to next message
Eclipse UserFriend
Le 17/05/2016 à 17:37, Parsa Pourali a écrit :
> Hi,
>

Hi,

> In the past few months that I've been working with Sirius, I found that in some cases (e.g. changing semantic model manually by the user) diagram representations become inactive. Then the user needs to delete them manually and create one again !
>
> I have attached an example of what I mean by inactive representations.
>
> My Question is: Is there anyways to bring them back available or what is the best approach to handle these kinds of diagrams ? Is there any way to distinguish these representations ? for example when I call getAllRepresentation from DialectManager, it returns me all of these useless representation ? Can I filter these inactive representations ?

This kind of representations have a semantic target that is currently
not reachable (the semantic target of this representation is a proxy).

You can find the code that corresponds to this kind of representations
in [1] SiriusCommonLabelProvider.isDanglingRepresentation(Object).

Regards,

>
> Thanks,
> Bests,
> Parsa
>

[1]
http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/views/common/navigator/SiriusCommonLabelProvider.java#n155

--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: inactive representations: how to deal with ?! [message #1733640 is a reply to message #1733606] Mon, 30 May 2016 11:19 Go to previous message
Eclipse UserFriend
Great !

Thanks Laurent,

-- Parsa
Previous Topic:Custom compartment layout
Next Topic:Sirius Palette: problems in edge creation
Goto Forum:
  


Current Time: Sat Mar 15 21:08:52 EDT 2025

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

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

Back to the top