tags:

views:

19

answers:

1

I want to create a new dialog looking like the Eclipse "Edit working set" dialog, example:

alt text (it's not that exact dialog, but it has the same look).

Since it seems to be a fairly standard type of dialog, I was hoping I would be able to reuse it, but I haven't found anything usable. The best I got was the actual code for the working set dialog in package org.eclipse.jdt.internal.ui.workingsets, see here, which would atleast make it possible to "copy-and-paste" reuse...

+1  A: 

Actually, a more current version of org.eclipse.jdt.internal.ui.workingsets.JavaWorkingSetPage depends from org.eclipse.jdt.internal.ui.workingsets.AbstractWorkingSetWizardPage.

That is the class you want to "emulate" (i.e. copy) in your own project, since it is an abstract class easier to reuse fro different "left" and "right" content.

Seen in Eclipse Helios:

alt text

It (the abstract class AbstractWorkingSetWizardPage) only depends on "generic" (i.e. "non-internal") classes:

  • org.eclipse.jface.wizard.WizardPage
  • org.eclipse.ui.dialogs.IWorkingSetPage

I am not aware of a more generic class outside of org.eclipse.jdt.internal.ui.workingsets.

VonC
That worked great, thanks.
Fredrik