Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Apply Settings of Application Model
Apply Settings of Application Model [message #974019] Tue, 06 November 2012 20:07 Go to next message
Aljoscha Steffens is currently offline Aljoscha SteffensFriend
Messages: 302
Registered: November 2012
Senior Member
Hi,
I'm working with eclipse 3.7 since about a month now but I switched to eclipse 4 due to the event system. But I can't really start since my application model doesn't work. It's probably a stupid mistake but since I already wasted a couple of hours and a lot more brain cells on it, I'll try it here.

This is what I did (about a million times):
start eclipse 4.2 (it's not SR1, but I will come to that issue later) with "E4 CSS Spy" and "Eclipse e4 Tools" installed. Next I choose File - new - other - Eclipse 4 - Eclipse 4 Application Project. I leave everything as it is (except for the name) and I don't generate an activator. Then I select the product and launch an Eclipse application. I close the application, open the Application.e4xmi file and change the size of the trimmed window, save, restart the application with "launch an eclipse application" and nothing changed.
I know, my description is probably far to detailed, but it's so simple that I can't imagine doing a mistake somewhere.



Why I didn't use 4.2 SR1:
When I start Eclipse there pop up two error messages:
"egit could not detect where git is installed"
and
"The HOME variable was not set".
As far as I can tell, I don't need Git since its for some reposetory stuff. And if I'm wrong, if it must be installed, why doesn't it come with Eclipse?


I hope you can help me, I'm really stuck.

Thanks
Aljo
Re: Apply Settings of Application Model [message #974960 is a reply to message #974019] Wed, 07 November 2012 13:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5468
Registered: July 2009
Senior Member
Am 07.11.12 13:56, schrieb Aljoscha Steffens:
> Hi,
> I'm working with eclipse 3.7 since about a month now but I switched to
> eclipse 4 due to the event system. But I can't really start since my
> application model doesn't work. It's probably a stupid mistake but since
> I already wasted a couple of hours and a lot more brain cells on it,
> I'll try it here.
>
> This is what I did (about a million times):
> start eclipse 4.2 (it's not SR1, but I will come to that issue later)
> with "E4 CSS Spy" and "Eclipse e4 Tools" installed. Next I choose File -
> new - other - Eclipse 4 - Eclipse 4 Application Project. I leave
> everything as it is (except for the name) and I don't generate an
> activator. Then I select the product and launch an Eclipse application.
> I close the application, open the Application.e4xmi file and change the
> size of the trimmed window, save, restart the application with "launch
> an eclipse application" and nothing changed.
> I know, my description is probably far to detailed, but it's so simple
> that I can't imagine doing a mistake somewhere.
>

The problem is that your 2nd start will use the restored state from the
previous session! You can either:
a) pass -clearPersistedState
b) check the clear workspace flag

in your launch configuration.

Tom
Re: Apply Settings of Application Model [message #974966 is a reply to message #974960] Wed, 07 November 2012 13:33 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

In the latest e4 tools version there is a possibility to select in the wizard to have the cPS flag by default when you create the app.
Re: Apply Settings of Application Model [message #975292 is a reply to message #974966] Wed, 07 November 2012 19:19 Go to previous message
Aljoscha Steffens is currently offline Aljoscha SteffensFriend
Messages: 302
Registered: November 2012
Senior Member
Thanks alot! But I don't understand why it's not default. Is it so unusual to change the Application model freaquently?
Previous Topic:friends of e4.ui...?
Next Topic:Cannot open .e4xmi in 4.2.1
Goto Forum:
  


Current Time: Wed Nov 26 14:13:26 GMT 2014

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

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