Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Support for Eclipse 4 Parts planned?
Support for Eclipse 4 Parts planned? [message #786628] Mon, 30 January 2012 11:55 Go to next message
Lars Vogel is currently offline Lars Vogel
Messages: 1043
Registered: July 2009
Senior Member

I updated my Eclipse 4 Tutorial .

Using WindowBuilder for Eclipse 4 Parts is relatively simple, I just have to wrap the whole content of @PostConstruct into a composite and work with WindowBuilder on this composite.

Is it planned to have direct support for Parts in WindowBuilder? I have no idea about the internal structure of WindowBuilder but I think you could treat @PostConstruct similar to the createPartControl() method of ViewPart.
Re: Support for Eclipse 4 Parts planned? [message #787017 is a reply to message #786628] Mon, 30 January 2012 22:50 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric Clayberg
Messages: 736
Registered: July 2009
Location: Boston, MA
Senior Member
Do you have a suggested template(s) we should use for new, clean e4 parts?
Re: Support for Eclipse 4 Parts planned? [message #787165 is a reply to message #787017] Tue, 31 January 2012 03:29 Go to previous messageGo to next message
Lars Vogel is currently offline Lars Vogel
Messages: 1043
Registered: July 2009
Senior Member

The following would be a simple Part definition without any controls. The names of the methods are flexible with Eclipse 4, I like the existing ones, except that I added a "s" to the old createPartControl method.


package com.example.e4.rcp.todo.parts;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.eclipse.swt.widgets.Composite;

public class TodoDetailsPart {

@PostConstruct
public void createControls(Composite parent) {
}

@PreDestroy
public void dispose() {

}

@Focus
public void setFocus() {
// TODO Set Focus to control
}


}

[EDIT: Focus is mandatory, got confirmation from Remy Suen via IRC, changed method name to createControls()]

[Updated on: Wed, 01 February 2012 16:13]

Report message to a moderator

Re: Support for Eclipse 4 Parts planned? [message #790106 is a reply to message #787165] Fri, 03 February 2012 15:40 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 547
Registered: July 2009
Senior Member
Hm...
I've downloaded Eclipse 4.2M5 SDK, but I don't see "e4 Application Project" wizard.


Konstantin Scheglov,
Google, Inc.
Re: Support for Eclipse 4 Parts planned? [message #791748 is a reply to message #790106] Mon, 06 February 2012 03:07 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 4462
Registered: July 2009
Senior Member
Am 03.02.12 21:40, schrieb Konstantin Scheglov:
> Hm...
> I've downloaded Eclipse 4.2M5 SDK, but I don't see "e4 Application
> Project" wizard.

You need to install the e4 tools from the e4 update site [1].

Tom

[1]http://download.eclipse.org/e4/downloads/drops/S-0.12M5-201201271145/index.html
Re: Support for Eclipse 4 Parts planned? [message #794068 is a reply to message #791748] Wed, 08 February 2012 17:13 Go to previous message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 547
Registered: July 2009
Senior Member
Ah...
Thank you, Tom.


Konstantin Scheglov,
Google, Inc.
Previous Topic:Custom factory creates unwanted SWT widgets
Next Topic:No WindowBuilder Pro Folder in New Wizard
Goto Forum:
  


Current Time: Sun May 19 21:50:56 EDT 2013

Powered by FUDForum. Page generated in 0.07515 seconds