开发者

Reuse working set dialog?

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

Reuse working set dialog?

(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:

Reuse working set dialog?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜