RCP Standalone Applications

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

RCP Standalone Applications

Postby jleotta » Sat Aug 20, 2005 7:30 am

Hello Eric,

Are there plans to support RCP standalone apps?
jleotta
 
Posts: 31
Joined: Tue Aug 03, 2004 9:46 am

Re: RCP Standalone Applications

Postby Eric Clayberg » Sat Aug 20, 2005 7:59 pm

jleotta wrote:Are there plans to support RCP standalone apps?

Yes...although I suppose it depends on what you had in mind.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby jleotta » Sun Aug 21, 2005 9:40 am

A new Project > Designer > RCP Standalone Application

But now that I have done all the required reading it really isn't all that important. The reading is necessary to understand the framework.
jleotta
 
Posts: 31
Joined: Tue Aug 03, 2004 9:46 am

Postby jleotta » Wed Sep 14, 2005 2:03 pm

Hello Eric,

Okay what I currently have in mind and would be quite helpful is a Form EditorPart. Currently there is a RCP EditorPart but it doesnt have the flat look or have the form widgets available.

Jim
jleotta
 
Posts: 31
Joined: Tue Aug 03, 2004 9:46 am

Postby Eric Clayberg » Wed Sep 14, 2005 7:40 pm

jleotta wrote:Okay what I currently have in mind and would be quite helpful is a Form EditorPart. Currently there is a RCP EditorPart but it doesnt have the flat look or have the form widgets available.

You can use the flat look and form widgets by adding the FormToolkit to the createPartControl() method. Like this:

Code: Select all
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.part.EditorPart;

public class FormEditorPart extends EditorPart {
    public void createPartControl(Composite parent) {
        FormToolkit toolkit = new FormToolkit(Display.getCurrent());
        Composite container = toolkit.createComposite(parent, SWT.NONE);
        toolkit.paintBordersFor(container);
    }
    public void setFocus() {
    }
    public void doSave(IProgressMonitor monitor) {
    }
    public void doSaveAs() {
    }
    public void init(IEditorSite site, IEditorInput input)
            throws PartInitException {
    }
    public boolean isDirty() {
        return false;
    }
    public boolean isSaveAsAllowed() {
        return false;
    }
}
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest