Home » Modeling » EMF » EMF Eclipse Forms Editor
| |
Re: EMF Eclipse Forms Editor [message #1235391 is a reply to message #1235234] |
Fri, 24 January 2014 08:16 |
Jonas Helming Messages: 699 Registered: July 2009 |
Senior Member |
|
|
Yes, the component of EMF Client Platform, which might be interesting
for you is EMF Forms:
http://eclipsesource.com/blogs/tutorials/emf-client-platform-how-to-customize-the-editor-layout/
Am 23.01.2014 22:50, schrieb Erdal Karaca:
> Did you have a look at the EMF Client Platform? It could be a "better
> alternative".
>
> Alex Kravets wrote on Thu, 23 January 2014 22:28
>> I wanted to create Forms Editor for my emf model, then I stumbled upon
>> EMF Eclipse Forms Editor and integrated into my project. The Forms
>> Editor works quite well, however in my case I wanted forms editor to
>> be the only editor that understands my model and removed all other
>> editors such as Selection, Parent and Tree. Unfortunately without
>> these editors loaded first menu action listeners do not work properly
>> in Forms Editor. One example would be that only one instance of child
>> can be created per editor being open, the other is if model allows
>> only one child of Type A let's say, in context menu Type A menu is not
>> disabled unless I restart the editor. I tried to debug this behavior
>> and even added code to initialize ViewerPane during PartListener call:
>>
>> protected void hideTabs() {
>> if (getPageCount() == 2) {
>> if (getContainer() instanceof CTabFolder) {
>>
>> ((ViewForm)viewerPane.getControl()).getContent().setFocus();
>> viewerPane.showFocus(true);
>> setCurrentViewerPane(viewerPane);
>>
>> ((FormEditor)this).setActivePage(ScrolledPropertiesPage.ID);
>> ((CTabFolder)getContainer()).setTabHeight(0);
>> }
>> }
>> }
>>
>> Unfortunately none of my attempts worked. Has anybody utilized EMF
>> Forms Editor before? Perhaps there is another working solution?
>>
>> Thanks,
>> Alex
>
>
|
|
|
Re: EMF Eclipse Forms Editor [message #1235541 is a reply to message #1235234] |
Fri, 24 January 2014 16:14 |
Alex Kravets Messages: 561 Registered: November 2009 |
Senior Member |
|
|
Thanks Erdal,
I did look at ECP about six months ago and it is interesting project. However back then I don't think support for Eclipse Workspace was working properly, something that I was interested in.
Alex
Erdal Karaca wrote on Thu, 23 January 2014 16:50Did you have a look at the EMF Client Platform? It could be a "better alternative".
Alex Kravets wrote on Thu, 23 January 2014 22:28I wanted to create Forms Editor for my emf model, then I stumbled upon EMF Eclipse Forms Editor and integrated into my project. The Forms Editor works quite well, however in my case I wanted forms editor to be the only editor that understands my model and removed all other editors such as Selection, Parent and Tree. Unfortunately without these editors loaded first menu action listeners do not work properly in Forms Editor. One example would be that only one instance of child can be created per editor being open, the other is if model allows only one child of Type A let's say, in context menu Type A menu is not disabled unless I restart the editor. I tried to debug this behavior and even added code to initialize ViewerPane during PartListener call:
protected void hideTabs() {
if (getPageCount() == 2) {
if (getContainer() instanceof CTabFolder) {
((ViewForm)viewerPane.getControl()).getContent().setFocus();
viewerPane.showFocus(true);
setCurrentViewerPane(viewerPane);
((FormEditor)this).setActivePage(ScrolledPropertiesPage.ID);
((CTabFolder)getContainer()).setTabHeight(0);
}
}
}
Unfortunately none of my attempts worked. Has anybody utilized EMF Forms Editor before? Perhaps there is another working solution?
Thanks,
Alex
|
|
|
Re: EMF Eclipse Forms Editor [message #1235546 is a reply to message #1235391] |
Fri, 24 January 2014 16:21 |
Alex Kravets Messages: 561 Registered: November 2009 |
Senior Member |
|
|
Thanks Jonas,
I posted my interest in ECP and back then you mentioned that support for master detail view might be in plans. Was there any progress in this area?
Jonas Helming wrote on Fri, 24 January 2014 03:16Yes, the component of EMF Client Platform, which might be interesting
for you is EMF Forms:
http://eclipsesource.com/blogs/tutorials/emf-client-platform-how-to-customize-the-editor-layout/
Am 23.01.2014 22:50, schrieb Erdal Karaca:
> Did you have a look at the EMF Client Platform? It could be a "better
> alternative".
>
> Alex Kravets wrote on Thu, 23 January 2014 22:28
>> I wanted to create Forms Editor for my emf model, then I stumbled upon
>> EMF Eclipse Forms Editor and integrated into my project. The Forms
>> Editor works quite well, however in my case I wanted forms editor to
>> be the only editor that understands my model and removed all other
>> editors such as Selection, Parent and Tree. Unfortunately without
>> these editors loaded first menu action listeners do not work properly
>> in Forms Editor. One example would be that only one instance of child
>> can be created per editor being open, the other is if model allows
>> only one child of Type A let's say, in context menu Type A menu is not
>> disabled unless I restart the editor. I tried to debug this behavior
>> and even added code to initialize ViewerPane during PartListener call:
>>
>> protected void hideTabs() {
>> if (getPageCount() == 2) {
>> if (getContainer() instanceof CTabFolder) {
>>
>> ((ViewForm)viewerPane.getControl()).getContent().setFocus();
>> viewerPane.showFocus(true);
>> setCurrentViewerPane(viewerPane);
>>
>> ((FormEditor)this).setActivePage(ScrolledPropertiesPage.ID);
>> ((CTabFolder)getContainer()).setTabHeight(0);
>> }
>> }
>> }
>>
>> Unfortunately none of my attempts worked. Has anybody utilized EMF
>> Forms Editor before? Perhaps there is another working solution?
>>
>> Thanks,
>> Alex
>
>
|
|
|
Re: EMF Eclipse Forms Editor [message #1236150 is a reply to message #1235541] |
Sun, 26 January 2014 11:09 |
Jonas Helming Messages: 699 Registered: July 2009 |
Senior Member |
|
|
Hi,
the support for the eclipse workspace is actually independant of EMF
Forms. However, if the workspace support for ECP did not work for you,
could you kindly report, what was not working?
Regards
Jonas
Am 24.01.2014 17:14, schrieb Alex Kravets:
> Thanks Erdal,
>
> I did look at ECP about six months ago and it is interesting project.
> However back then I don't think support for Eclipse Workspace was
> working properly, something that I was interested in.
>
> Alex
>
> Erdal Karaca wrote on Thu, 23 January 2014 16:50
>> Did you have a look at the EMF Client Platform? It could be a "better
>> alternative".
>>
>> Alex Kravets wrote on Thu, 23 January 2014 22:28
>> > I wanted to create Forms Editor for my emf model, then I stumbled
>> upon EMF Eclipse Forms Editor and integrated into my project. The
>> Forms Editor works quite well, however in my case I wanted forms
>> editor to be the only editor that understands my model and removed all
>> other editors such as Selection, Parent and Tree. Unfortunately
>> without these editors loaded first menu action listeners do not work
>> properly in Forms Editor. One example would be that only one instance
>> of child can be created per editor being open, the other is if model
>> allows only one child of Type A let's say, in context menu Type A menu
>> is not disabled unless I restart the editor. I tried to debug this
>> behavior and even added code to initialize ViewerPane during
>> PartListener call:
>> > > protected void hideTabs() {
>> > if (getPageCount() == 2) {
>> > if (getContainer() instanceof CTabFolder) {
>> >
>> ((ViewForm)viewerPane.getControl()).getContent().setFocus();
>> > viewerPane.showFocus(true);
>> > setCurrentViewerPane(viewerPane);
>> >
>> ((FormEditor)this).setActivePage(ScrolledPropertiesPage.ID);
>> > ((CTabFolder)getContainer()).setTabHeight(0);
>> > }
>> > }
>> > }
>> > > Unfortunately none of my attempts worked. Has anybody utilized EMF
>> Forms Editor before? Perhaps there is another working solution?
>> > > Thanks,
>> > Alex
>
>
|
|
|
Re: EMF Eclipse Forms Editor [message #1236454 is a reply to message #1235546] |
Mon, 27 January 2014 08:50 |
Jonas Helming Messages: 699 Registered: July 2009 |
Senior Member |
|
|
Hi,
yes, master detail will be part of the 1.2 release, which will be
released in the beginning of next week. I am just writing the
documentation, I will post it here, so you can try it out.
Regards
Jonas
Am 24.01.2014 17:21, schrieb Alex Kravets:
> Thanks Jonas,
>
> I
> http://www.eclipse.org/forums/index.php/mv/msg/489640/1070556/#msg_1070556
> in ECP and back then you mentioned that support for master detail view
> might be in plans. Was there any progress in this area?
>
> Jonas Helming wrote on Fri, 24 January 2014 03:16
>> Yes, the component of EMF Client Platform, which might be interesting
>> for you is EMF Forms:
>> http://eclipsesource.com/blogs/tutorials/emf-client-platform-how-to-customize-the-editor-layout/
>>
>>
>> Am 23.01.2014 22:50, schrieb Erdal Karaca:
>> > Did you have a look at the EMF Client Platform? It could be a "better
>> > alternative".
>> > > Alex Kravets wrote on Thu, 23 January 2014 22:28
>> >> I wanted to create Forms Editor for my emf model, then I stumbled upon
>> >> EMF Eclipse Forms Editor and integrated into my project. The Forms
>> >> Editor works quite well, however in my case I wanted forms editor to
>> >> be the only editor that understands my model and removed all other
>> >> editors such as Selection, Parent and Tree. Unfortunately without
>> >> these editors loaded first menu action listeners do not work properly
>> >> in Forms Editor. One example would be that only one instance of child
>> >> can be created per editor being open, the other is if model allows
>> >> only one child of Type A let's say, in context menu Type A menu is not
>> >> disabled unless I restart the editor. I tried to debug this behavior
>> >> and even added code to initialize ViewerPane during PartListener call:
>> >>
>> >> protected void hideTabs() {
>> >> if (getPageCount() == 2) {
>> >> if (getContainer() instanceof CTabFolder) {
>> >> >>
>> ((ViewForm)viewerPane.getControl()).getContent().setFocus();
>> >> viewerPane.showFocus(true);
>> >> setCurrentViewerPane(viewerPane);
>> >> >>
>> ((FormEditor)this).setActivePage(ScrolledPropertiesPage.ID);
>> >> ((CTabFolder)getContainer()).setTabHeight(0);
>> >> }
>> >> }
>> >> }
>> >>
>> >> Unfortunately none of my attempts worked. Has anybody utilized EMF
>> >> Forms Editor before? Perhaps there is another working solution?
>> >>
>> >> Thanks,
>> >> Alex
>> > >
>
>
|
|
| | | | |
Goto Forum:
Current Time: Mon Sep 23 23:07:37 GMT 2024
Powered by FUDForum. Page generated in 0.05153 seconds
|