Reuse working set dialog?
I want to create a new dialog looking like the Eclipse "Edit working set" dialog, example:
(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...
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:
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
.
精彩评论