|
Re: Cannot Reopen Ecore Diagram [message #1705276 is a reply to message #1705270] |
Thu, 13 August 2015 12:12 |
|
Le 13/08/2015 13:52, Ed Willink a écrit :
> Hi
>
Hi,
> I successfully created an Ecore Diagram (after figuring out that an
> "Entities" was required), but having saved the diagram I cannot open it
> again except as XMI text.
>
> It seems that only a Text Editor is bound to *.aird.
>
Can you precise your context? The project containing the aird file is a
"Modeling Project" (having "org.eclipse.sirius.nature.modelingproject"
nature) or not?
If this is the case, in the model explorer view, you should be able to
expand the aird file and access to the expected Ecore Diagram and then
double-click on it to open it.
If you are not in a modeling project, a double-click on the aird file
allows you to expand it and navigate on the expected Ecore Diagram to
open it.
> Using Open With->Sirius Diagram Editing suggests a change of
> perspective, but opening in the Model Explorer View does nothing. There
> is no Design Perspective.
The Design perspective is the old name of the Modeling perspective. The
message is an old one and should be reworded. You can create a bug for
this: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
>
> I'm using the Mars Modeling EPP.
>
> Regards
>
> Ed Willink
Regards,
--
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Cannot Reopen Ecore Diagram [message #1705283 is a reply to message #1705276] |
Thu, 13 August 2015 13:03 |
|
> Le 13/08/2015 14:30, Ed Willink a écrit
> Hi
>
> Thanks for the quick response....
>
> I am a boring EMF user trying to edit a *.ecore file graphically just
> as I used to do with EcoreTools 1.x (what has happened to the old 1.2
> downloads, perhaps irrelevant since 1.2 the update site not work on
> Mars - no Initialize Ecore Diagram Menu option...)
>
> So no, I have no "org.eclipse.sirius.nature.modelingproject" nature.
This is not really a "problem" but the behavior is not the same with or
without this nature.
> I avoid spurious natures since they generally help spurious builders
> burn my CPU cycles.
>
> Double clicking on the aird file in the Model Explorer after an
> Eclipse restart shows a few progress bars then nothing. Double
> clicking again does nothing more quickly. Nothing in the error log
> from these open attempts. (Numerous error log entries from the
> earlier mostly successful editing.)
After this double click, you can not expand the aird file in the Model
Explorer?
>
> I think my mistake was to open the *.aird file with a text editor so
> that the default editor changed to a text editor.
>
> Since Sirius seems to neglect to define a *.aird editor, this mistake
> cannot be rectified.
>
> If I add a "org.eclipse.sirius.nature.modelingproject" nature the
> problem is fixed.
>
> Well, double clicking in the package explorer forces a migration to
> the model explorer, where the extra submenus show that I actually
> have three conflicting diagrams. Why weren't these separate sheets?
>
> Since the Package Explorer enables Java to show *.java detail, why
> doesn't *.aird have detail too, and why does nothing happen with no
> nature?
A minimal project without "org.eclipse.jdt.core.javanature" has the same
"problem". It does not show *.java detail in the Package Explorer.
But without nature you can open an aird file (this is the legacy mode [1]).
> why no Open->With entry?
The aird can contain several representations (diagrams, tables, tree,
....). So the "Open/With" has not really a sense. You can find general
information about the Modeling Project structure here [2].
>
>
> Regards
>
> Ed Willink
>
Regards,
Laurent
[1]
https://www.eclipse.org/sirius/doc/user/general/Modeling%20Project.html#LegacyMode
[2]
https://www.eclipse.org/sirius/doc/user/general/Modeling%20Project.html#Introduction
>> Le 13/08/2015 14:12, Laurent Redor a écrit :
>> Le 13/08/2015 13:52, Ed Willink a écrit :
>>> Hi
>>>
>> Hi,
>>
>>> I successfully created an Ecore Diagram (after figuring out that an
>>> "Entities" was required), but having saved the diagram I cannot open it
>>> again except as XMI text.
>>>
>>> It seems that only a Text Editor is bound to *.aird.
>>>
>>
>> Can you precise your context? The project containing the aird file is a
>> "Modeling Project" (having "org.eclipse.sirius.nature.modelingproject"
>> nature) or not?
>>
>> If this is the case, in the model explorer view, you should be able to
>> expand the aird file and access to the expected Ecore Diagram and then
>> double-click on it to open it.
>>
>> If you are not in a modeling project, a double-click on the aird file
>> allows you to expand it and navigate on the expected Ecore Diagram to
>> open it.
>>
>>> Using Open With->Sirius Diagram Editing suggests a change of
>>> perspective, but opening in the Model Explorer View does nothing. There
>>> is no Design Perspective.
>>
>> The Design perspective is the old name of the Modeling perspective. The
>> message is an old one and should be reworded. You can create a bug for
>> this: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
>>
>>>
>>> I'm using the Mars Modeling EPP.
>>>
>>> Regards
>>>
>>> Ed Willink
>>
>>
>> Regards,
>>
--
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03143 seconds