Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Eclipse Forms Editor
EMF Eclipse Forms Editor [message #1235227] Thu, 23 January 2014 21:28 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
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 21:50 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
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 08:16 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
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 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
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: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 16:21 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
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: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 11:09 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
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 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
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
>> > >
>
>
Re: EMF Eclipse Forms Editor [message #1236650 is a reply to message #1236454] Mon, 27 January 2014 19:15 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Great! I will check it out.
Re: EMF Eclipse Forms Editor [message #1236652 is a reply to message #1236150] Mon, 27 January 2014 19:16 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
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 09:26 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
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 15:37 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
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: Fri Mar 29 12:02:56 GMT 2024

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

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

Back to the top