Property/Preference pages?

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

Property/Preference pages?

Postby Boris » Sun Oct 05, 2003 11:10 am

Looking at the roadmap, I realize that there are plans for supporting the creation of propery/preference pages and views. Do you already have a timeframe for that type of functionality?

Thanks,
Boris
Boris
 
Posts: 4
Joined: Sun Oct 05, 2003 11:07 am
Location: Hamburg, Germany

Postby admin » Sun Oct 05, 2003 11:56 pm

Views are supported in professional version. Property/Preference pages will be supported, but we can not promise right now timeframe. In reallity you can designer them even right now, but without much comfort. Just implement needed method for creating controls for page and create new "container" Composite, i.e. something like this:

Control createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
return container;
}

After this Designer will able to edit method createControl.

Of course, with wizards and polished visualization in future version you will able to do this faster and better. :-)
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby Boris » Mon Oct 06, 2003 4:18 am

admin wrote:Views are supported in professional version.


The creation of views is supported in the professional version? How? I didn't find anything in the wizard.

admin wrote:Property/Preference pages will be supported, but we can not promise right now timeframe. In reallity you can designer them even right now, but without much comfort. Just implement needed method for creating controls for page and create new "container" Composite, i.e. something like this:

Control createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
return container;
}

After this Designer will able to edit method createControl.


Thanks for the tip, I'll give it a try.

Cheers,
Boris
Boris
 
Posts: 4
Joined: Sun Oct 05, 2003 11:07 am
Location: Hamburg, Germany

Postby admin » Mon Oct 06, 2003 4:29 am

Yes, you need professional version. There is no wizard, because views are created usually by PDE. Here is small view, that can be used with designer .

Code: Select all
package testPlugin;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
/**
* @author scheglov_ke
*/
public class TestView extends ViewPart {
   public void createPartControl(Composite parent) {
      final TableViewer tableViewer = new TableViewer(parent, SWT.FULL_SELECTION | SWT.MULTI);
      final Table table = tableViewer.getTable();
      table.setLinesVisible(true);
      table.setHeaderVisible(true);
      {
         final TableColumn tableColumn = new TableColumn(table, SWT.NONE);
         tableColumn.setWidth(100);
         tableColumn.setText("New column");
      }
      {
         final TableColumn tableColumn = new TableColumn(table, SWT.NONE);
         tableColumn.setWidth(100);
         tableColumn.setText("New column");
      }
   }
   public void setFocus() {
   }
}
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby dv » Wed Jul 14, 2004 9:14 am

admin wrote:Property/Preference pages will be supported, but we can not promise right now timeframe. :-)


Any idea of the timeframe for supporting Property pages? I have hand-coded preference pages (with field editors) right now and I need to extend them to create property pages. Since field editors are not supported in the designer right now, I am trying to determine whether I should redo my preference pages using the designer and extend them to build property pages (so that my code will be designer compatible) or whether I should just go ahead and use field editors in my new property pages as well.

An idea of the timeframe for supporting property pages and/or field editors would help me chart out a migration path.

Thanks.
dv
 
Posts: 2
Joined: Tue Jun 22, 2004 9:58 am

Postby Eric Clayberg » Wed Jul 14, 2004 1:40 pm

dv wrote:Any idea of the timeframe for supporting Property pages?

Property pages (using standard SWT widgets rather than field editors) is supported in the current v2.0.1 build. "Eclipse PreferencePage" and "Eclipse PropertyPage" are both wizards available in the Designer category in the New wizard.

dv wrote:An idea of the timeframe for supporting property pages and/or field editors would help me chart out a migration path.

Property pages are supported right now. Field editors are on our short list of things we would like to add.
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 Eric Clayberg » Fri Aug 13, 2004 5:49 pm

Eric Clayberg wrote:Property pages are supported right now. Field editors are on our short list of things we would like to add.

A new v2.0.1 update is now available that includes Field Editor support.
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: Google [Bot] and 1 guest