Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Zest integration
Zest integration [message #844731] Sat, 14 April 2012 09:36 Go to next message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 131
Registered: March 2012
Location: Italy
Senior Member

Goodmorning at all.

I'm trying to include Zest packages in my e4 application.
When I try to add one of Zest Packages in my plugin.xml's dependencies I've got this error:
java.lang.RuntimeException: No application id has been found.
(Complete log is in the attachment)

I've seen that it could be caused by a missing dependence, but which one?

Does anyone know a solution?

Very thank you,
regards.
Re: Zest integration [message #845166 is a reply to message #844731] Sat, 14 April 2012 20:33 Go to previous messageGo to next message
Eclipse UserFriend
Judging just from the error log it looks like you are missing the org.eclipse.zest.core dependency.

Also make sure it is included in your run configuration: Run -> Run configurations...->(your app's running config)-> plugins tab
Re: Zest integration [message #852030 is a reply to message #845166] Sat, 21 April 2012 15:47 Go to previous messageGo to next message
Fabian Steeg is currently offline Fabian SteegFriend
Messages: 76
Registered: July 2009
Member
If you still have this issue, it would be great if you could file a bug against Zest with some details, so we can keep track of this.
Re: Zest integration [message #856008 is a reply to message #844731] Wed, 25 April 2012 09:38 Go to previous messageGo to next message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 131
Registered: March 2012
Location: Italy
Senior Member

Thank you all, bug fixed.

But I don't know where I had to create my graph to see it in a part.
I've tryed in @PostConstruct method, but it doesn't work.

@PostConstruct
	public void createControls(Composite parent) {
		Graph g = new Graph(shell, SWT.NONE);
		GraphNode n = new GraphNode(g, SWT.NONE, "Paper");
		GraphNode n2 = new GraphNode(g, SWT.NONE, "Rock");
		GraphNode n3 = new GraphNode(g, SWT.NONE, "Scissors");
		new GraphConnection(g, SWT.NONE, n, n2);
		new GraphConnection(g, SWT.NONE, n2, n3);
		new GraphConnection(g, SWT.NONE, n3, n);
		g.setLayoutAlgorithm(new SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);
	}


Part is still empty. Suggestions?

Very thanks for your kind.
Re: Zest integration [message #856020 is a reply to message #856008] Wed, 25 April 2012 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Try
        @PostConstruct
	public void createControls(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell) 
Re: Zest integration [message #856466 is a reply to message #856008] Wed, 25 April 2012 17:35 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Tommaso De Sica wrote on Wed, 25 April 2012 05:38

@PostConstruct
	public void createControls(Composite parent) {
		Graph g = new Graph(shell, SWT.NONE);



Shouldn't that be
new Graph(parent ...)
(i.e., not shell).
Re: Zest integration [message #857065 is a reply to message #856466] Thu, 26 April 2012 08:06 Go to previous messageGo to next message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 131
Registered: March 2012
Location: Italy
Senior Member

Brian de Alwis wrote on Wed, 25 April 2012 19:35
Tommaso De Sica wrote on Wed, 25 April 2012 05:38

@PostConstruct
	public void createControls(Composite parent) {
		Graph g = new Graph(shell, SWT.NONE);



Shouldn't that be
new Graph(parent ...)
(i.e., not shell).



It works. No other problems for the moment.

Thank you very much for help.
Re: Zest integration [message #904013 is a reply to message #857065] Mon, 27 August 2012 15:13 Go to previous messageGo to next message
Johnny Qin is currently offline Johnny QinFriend
Messages: 40
Registered: April 2012
Member
Hello Tommaso,

so zest has gone e4 completely? do you need the 'compatibility layer' to do the zest e4 integration?

Thanks,
Johnny


Tommaso De Sica wrote on Thu, 26 April 2012 04:06
Brian de Alwis wrote on Wed, 25 April 2012 19:35
Tommaso De Sica wrote on Wed, 25 April 2012 05:38

@PostConstruct
	public void createControls(Composite parent) {
		Graph g = new Graph(shell, SWT.NONE);



Shouldn't that be
new Graph(parent ...)
(i.e., not shell).



It works. No other problems for the moment.

Thank you very much for help.

Re: Zest integration [message #904073 is a reply to message #904013] Mon, 27 August 2012 17:43 Go to previous messageGo to next message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 131
Registered: March 2012
Location: Italy
Senior Member

I only use basic components and features from Zest library, but they work perfectly on e4 without any addons.

If you want my code for an example, just contact me via PM.

[Updated on: Mon, 27 August 2012 17:44]

Report message to a moderator

Re: Zest integration [message #904099 is a reply to message #904073] Mon, 27 August 2012 18:44 Go to previous message
Johnny Qin is currently offline Johnny QinFriend
Messages: 40
Registered: April 2012
Member
Thanks Tommaso! That would be great if I could take a look at how far you have gone with Zest, and learn stuffs from you. Unfortunately I don't think there's a PM feature on eclipse forum Sad

Can you instead shoot me an email at job.jieqin@gmail.com?

Best regards,
Johnny


Tommaso De Sica wrote on Mon, 27 August 2012 13:43
I only use basic components and features from Zest library, but they work perfectly on e4 without any addons.

If you want my code for an example, just contact me via PM.

Previous Topic:Import existing jar file
Next Topic:Uninstalled Model Addon Show Error continuously.
Goto Forum:
  


Current Time: Fri Apr 19 18:29:20 GMT 2024

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

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

Back to the top