Skip to main content



      Home
Home » Modeling » EMF » EMF Eclipse Forms Editor
EMF Eclipse Forms Editor [message #1235227] Thu, 23 January 2014 16:28 Go to next message
Eclipse UserFriend
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 #1235234 is a reply to message #1235227] Thu, 23 January 2014 16:50 Go to previous messageGo to next message
Eclipse UserFriend
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 #1235391 is a reply to message #1235234] Fri, 24 January 2014 03:16 Go to previous messageGo to next message
Eclipse UserFriend
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 11:14 Go to previous messageGo to next message
Eclipse UserFriend
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 #1235546 is a reply to message #1235391] Fri, 24 January 2014 11:21 Go to previous messageGo to next message
Eclipse UserFriend
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: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
>
>

Re: EMF Eclipse Forms Editor [message #1236150 is a reply to message #1235541] Sun, 26 January 2014 06:09 Go to previous messageGo to next message
Eclipse UserFriend
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 03:50 Go to previous messageGo to next message
Eclipse UserFriend
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
>> > >
>
>
Re: EMF Eclipse Forms Editor [message #1236650 is a reply to message #1236454] Mon, 27 January 2014 14:15 Go to previous messageGo to next message
Eclipse UserFriend
Great! I will check it out.
Re: EMF Eclipse Forms Editor [message #1236652 is a reply to message #1236150] Mon, 27 January 2014 14:16 Go to previous messageGo to next message
Eclipse UserFriend
I'll have to reinstall ECP and try it out again, but as I remember there were exceptions during finishing wizard with Eclipse Workspace selected.
Re: EMF Eclipse Forms Editor [message #1236877 is a reply to message #1236652] Tue, 28 January 2014 04:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

It would be great, if you could test it again and report the error!

Thanks

Jonas

Am 27.01.2014 20:16, schrieb Alex Kravets:
> I'll have to reinstall ECP and try it out again, but as I remember there
> were exceptions during finishing wizard with Eclipse Workspace selected.
Re: EMF Eclipse Forms Editor [message #1236996 is a reply to message #1236877] Tue, 28 January 2014 10:37 Go to previous message
Eclipse UserFriend
Jonas,

As of ECP 1.1.1 it's working fine. I was using 0.9 at the time I believe.

Thanks,
Alex

Jonas Helming wrote on Tue, 28 January 2014 04:26
Hi,

It would be great, if you could test it again and report the error!

Thanks

Jonas

Am 27.01.2014 20:16, schrieb Alex Kravets:
> I'll have to reinstall ECP and try it out again, but as I remember there
> were exceptions during finishing wizard with Eclipse Workspace selected.

Previous Topic:JFace-Databinding
Next Topic:OOM, ResourceSet, unload(), reloads (Xtext), IReferableElementsUnloader..
Goto Forum:
  


Current Time: Wed Jul 23 02:23:12 EDT 2025

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

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

Back to the top