Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Making a wizard..
Making a wizard.. [message #142520] Sat, 11 October 2003 01:27 Go to next message
Eclipse UserFriend
Originally posted by: kduffey.marketron.com

Hey all,

Sorry to ask such a basic question, but now that I finally got the hang of
creating a plugin and seeing it work (simple hello world plugin) in the
runtime workbench, I would like to make it into a wizard. Basically, I want
my plugin to provide a menu item and toolbar button (which it does now) that
when clicked, pops up a wizard with a couple of pages. At the end, it will
do some work, generate some template classes, etc. Just like a Plugin-In
wizard generates the plugin project, classes, plugin.xml, etc.

Can someone shed some light on where I can get some help doing this? I am
not at all familiar with SWT, or how to do the dialog, wizard pages, input
boxes, etc. I do see the .wizard package, so I am sure I'll use that. Just
not sure where to go from there.

One other point... I'd like to make this work as a stand-alone Swing app as
well, so is it possible to use Swing for the whole thing, as opposed to SWT?
We have some developers using JBuilder still, and may not migrate to Eclipse
for a while, so it needs to be both a plugin and a stand-alone, therefore
using Swing for the whole thing would be great. Is it possible to make the
menu/toolbar pop up my Swing dialog and go from there?

Thanks.
Re: Making a wizard.. [message #142810 is a reply to message #142520] Sun, 12 October 2003 19:31 Go to previous messageGo to next message
Kevin Duffey is currently offline Kevin DuffeyFriend
Messages: 304
Registered: July 2009
Senior Member
Hmm... nobody knows how to create a Wizard within a plugin? I can't seem to
find any specific docs on the topic.

"Kevin" <kduffey@marketron.com> wrote in message
news:bm7m9m$32n$1@eclipse.org...
> Hey all,
>
> Sorry to ask such a basic question, but now that I finally got the hang of
> creating a plugin and seeing it work (simple hello world plugin) in the
> runtime workbench, I would like to make it into a wizard. Basically, I
want
> my plugin to provide a menu item and toolbar button (which it does now)
that
> when clicked, pops up a wizard with a couple of pages. At the end, it will
> do some work, generate some template classes, etc. Just like a Plugin-In
> wizard generates the plugin project, classes, plugin.xml, etc.
>
> Can someone shed some light on where I can get some help doing this? I am
> not at all familiar with SWT, or how to do the dialog, wizard pages, input
> boxes, etc. I do see the .wizard package, so I am sure I'll use that. Just
> not sure where to go from there.
>
> One other point... I'd like to make this work as a stand-alone Swing app
as
> well, so is it possible to use Swing for the whole thing, as opposed to
SWT?
> We have some developers using JBuilder still, and may not migrate to
Eclipse
> for a while, so it needs to be both a plugin and a stand-alone, therefore
> using Swing for the whole thing would be great. Is it possible to make the
> menu/toolbar pop up my Swing dialog and go from there?
>
> Thanks.
>
>
Re: Making a wizard.. [message #143028 is a reply to message #142810] Mon, 13 October 2003 13:42 Go to previous messageGo to next message
Cameron Jones is currently offline Cameron JonesFriend
Messages: 60
Registered: July 2009
Member
try this:

http://www.eclipse.org/articles/Article-JFace%20Wizards/wiza rdArticle.html

mabye you were looking in the swt section of the articles - this is in the
workbench & jface section.
cam

"Kevin" <supreme_java_guru_1@yahoo.com> wrote in message
news:bmc9tj$a0e$1@eclipse.org...
> Hmm... nobody knows how to create a Wizard within a plugin? I can't seem
to
> find any specific docs on the topic.
>
> "Kevin" <kduffey@marketron.com> wrote in message
> news:bm7m9m$32n$1@eclipse.org...
> > Hey all,
> >
> > Sorry to ask such a basic question, but now that I finally got the hang
of
> > creating a plugin and seeing it work (simple hello world plugin) in the
> > runtime workbench, I would like to make it into a wizard. Basically, I
> want
> > my plugin to provide a menu item and toolbar button (which it does now)
> that
> > when clicked, pops up a wizard with a couple of pages. At the end, it
will
> > do some work, generate some template classes, etc. Just like a Plugin-In
> > wizard generates the plugin project, classes, plugin.xml, etc.
> >
> > Can someone shed some light on where I can get some help doing this? I
am
> > not at all familiar with SWT, or how to do the dialog, wizard pages,
input
> > boxes, etc. I do see the .wizard package, so I am sure I'll use that.
Just
> > not sure where to go from there.
> >
> > One other point... I'd like to make this work as a stand-alone Swing app
> as
> > well, so is it possible to use Swing for the whole thing, as opposed to
> SWT?
> > We have some developers using JBuilder still, and may not migrate to
> Eclipse
> > for a while, so it needs to be both a plugin and a stand-alone,
therefore
> > using Swing for the whole thing would be great. Is it possible to make
the
> > menu/toolbar pop up my Swing dialog and go from there?
> >
> > Thanks.
> >
> >
>
>
Re: Making a wizard.. [message #143091 is a reply to message #143028] Mon, 13 October 2003 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kduffey.marketron.com

Great stuff. Man its bulky to make a wizard!! Is there any way I can display
my Swing GUI from a dialog inside of Eclipse (or outside)? Basically, I want
to have both an Eclipse embedable plugin AND a stand-alone app in one, for
those that don't have eclipse. For now, I prefer to use a Wizard component I
already have that is done in Swing. I am not looking to integrate Swing
components on the menubar, toolbar, etc. What I would like to do is just
display a Swing dialog and from there let it do its thing in Swing. Is this
possible?



"Cameron Jones" <cameronjones@mail15.com> wrote in message
news:bmea36$uh9$1@eclipse.org...
> try this:
>
> http://www.eclipse.org/articles/Article-JFace%20Wizards/wiza rdArticle.html
>
> mabye you were looking in the swt section of the articles - this is in the
> workbench & jface section.
> cam
>
> "Kevin" <supreme_java_guru_1@yahoo.com> wrote in message
> news:bmc9tj$a0e$1@eclipse.org...
> > Hmm... nobody knows how to create a Wizard within a plugin? I can't seem
> to
> > find any specific docs on the topic.
> >
> > "Kevin" <kduffey@marketron.com> wrote in message
> > news:bm7m9m$32n$1@eclipse.org...
> > > Hey all,
> > >
> > > Sorry to ask such a basic question, but now that I finally got the
hang
> of
> > > creating a plugin and seeing it work (simple hello world plugin) in
the
> > > runtime workbench, I would like to make it into a wizard. Basically, I
> > want
> > > my plugin to provide a menu item and toolbar button (which it does
now)
> > that
> > > when clicked, pops up a wizard with a couple of pages. At the end, it
> will
> > > do some work, generate some template classes, etc. Just like a
Plugin-In
> > > wizard generates the plugin project, classes, plugin.xml, etc.
> > >
> > > Can someone shed some light on where I can get some help doing this? I
> am
> > > not at all familiar with SWT, or how to do the dialog, wizard pages,
> input
> > > boxes, etc. I do see the .wizard package, so I am sure I'll use that.
> Just
> > > not sure where to go from there.
> > >
> > > One other point... I'd like to make this work as a stand-alone Swing
app
> > as
> > > well, so is it possible to use Swing for the whole thing, as opposed
to
> > SWT?
> > > We have some developers using JBuilder still, and may not migrate to
> > Eclipse
> > > for a while, so it needs to be both a plugin and a stand-alone,
> therefore
> > > using Swing for the whole thing would be great. Is it possible to make
> the
> > > menu/toolbar pop up my Swing dialog and go from there?
> > >
> > > Thanks.
> > >
> > >
> >
> >
>
>
Re: Making a wizard.. [message #143569 is a reply to message #143091] Tue, 14 October 2003 12:27 Go to previous messageGo to next message
Cameron Jones is currently offline Cameron JonesFriend
Messages: 60
Registered: July 2009
Member
from what i understand this may be a work in progress - i have heard of
numerous people doing a swt-to-swing or swing-to-swt composite\panel. i
myself have not taken that much notice cause i made the full transition to
swt. here are a few links:

http://chrriis.brainlex.com/projects/swtswing/index.html

this is a good one for all your general swt questions:
http://eclipsewiki.swiki.net/2

some swt gui editors:
http://www.swt-designer.com/

http://www.swtworkbench.com/index.shtml


there is a class - org.eclipse.swt.internal.awt.win32.SWT_AWT that enables
calling awt from swt although i have not used and so can not comment.
mabye try searching the swt newsgroup - there has been lots of discussion on
this and you may find some good links - just do this through the eclipse
site search.
cam


"Kevin" <kduffey@marketron.com> wrote in message
news:bmehk3$7eg$1@eclipse.org...
> Great stuff. Man its bulky to make a wizard!! Is there any way I can
display
> my Swing GUI from a dialog inside of Eclipse (or outside)? Basically, I
want
> to have both an Eclipse embedable plugin AND a stand-alone app in one, for
> those that don't have eclipse. For now, I prefer to use a Wizard component
I
> already have that is done in Swing. I am not looking to integrate Swing
> components on the menubar, toolbar, etc. What I would like to do is just
> display a Swing dialog and from there let it do its thing in Swing. Is
this
> possible?
>
>
>
> "Cameron Jones" <cameronjones@mail15.com> wrote in message
> news:bmea36$uh9$1@eclipse.org...
> > try this:
> >
> >
http://www.eclipse.org/articles/Article-JFace%20Wizards/wiza rdArticle.html
> >
> > mabye you were looking in the swt section of the articles - this is in
the
> > workbench & jface section.
> > cam
> >
> > "Kevin" <supreme_java_guru_1@yahoo.com> wrote in message
> > news:bmc9tj$a0e$1@eclipse.org...
> > > Hmm... nobody knows how to create a Wizard within a plugin? I can't
seem
> > to
> > > find any specific docs on the topic.
> > >
> > > "Kevin" <kduffey@marketron.com> wrote in message
> > > news:bm7m9m$32n$1@eclipse.org...
> > > > Hey all,
> > > >
> > > > Sorry to ask such a basic question, but now that I finally got the
> hang
> > of
> > > > creating a plugin and seeing it work (simple hello world plugin) in
> the
> > > > runtime workbench, I would like to make it into a wizard. Basically,
I
> > > want
> > > > my plugin to provide a menu item and toolbar button (which it does
> now)
> > > that
> > > > when clicked, pops up a wizard with a couple of pages. At the end,
it
> > will
> > > > do some work, generate some template classes, etc. Just like a
> Plugin-In
> > > > wizard generates the plugin project, classes, plugin.xml, etc.
> > > >
> > > > Can someone shed some light on where I can get some help doing this?
I
> > am
> > > > not at all familiar with SWT, or how to do the dialog, wizard pages,
> > input
> > > > boxes, etc. I do see the .wizard package, so I am sure I'll use
that.
> > Just
> > > > not sure where to go from there.
> > > >
> > > > One other point... I'd like to make this work as a stand-alone Swing
> app
> > > as
> > > > well, so is it possible to use Swing for the whole thing, as opposed
> to
> > > SWT?
> > > > We have some developers using JBuilder still, and may not migrate to
> > > Eclipse
> > > > for a while, so it needs to be both a plugin and a stand-alone,
> > therefore
> > > > using Swing for the whole thing would be great. Is it possible to
make
> > the
> > > > menu/toolbar pop up my Swing dialog and go from there?
> > > >
> > > > Thanks.
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Making a wizard.. [message #143663 is a reply to message #143569] Tue, 14 October 2003 14:51 Go to previous message
Kevin Duffey is currently offline Kevin DuffeyFriend
Messages: 304
Registered: July 2009
Senior Member
Thanks. I figured it out though, in that I simply create a new JDialog right
from the plugin, and it works. It goes outside the MDI Eclipse, but I can
live with that. I basically just needed to be able to use Swing, and tie it
into the IDE so that it can be launched from there.

"Cameron Jones" <cameronjones@mail15.com> wrote in message
news:bmgq1o$b02$1@eclipse.org...
> from what i understand this may be a work in progress - i have heard of
> numerous people doing a swt-to-swing or swing-to-swt composite\panel. i
> myself have not taken that much notice cause i made the full transition to
> swt. here are a few links:
>
> http://chrriis.brainlex.com/projects/swtswing/index.html
>
> this is a good one for all your general swt questions:
> http://eclipsewiki.swiki.net/2
>
> some swt gui editors:
> http://www.swt-designer.com/
>
> http://www.swtworkbench.com/index.shtml
>
>
> there is a class - org.eclipse.swt.internal.awt.win32.SWT_AWT that enables
> calling awt from swt although i have not used and so can not comment.
> mabye try searching the swt newsgroup - there has been lots of discussion
on
> this and you may find some good links - just do this through the eclipse
> site search.
> cam
>
>
> "Kevin" <kduffey@marketron.com> wrote in message
> news:bmehk3$7eg$1@eclipse.org...
> > Great stuff. Man its bulky to make a wizard!! Is there any way I can
> display
> > my Swing GUI from a dialog inside of Eclipse (or outside)? Basically, I
> want
> > to have both an Eclipse embedable plugin AND a stand-alone app in one,
for
> > those that don't have eclipse. For now, I prefer to use a Wizard
component
> I
> > already have that is done in Swing. I am not looking to integrate Swing
> > components on the menubar, toolbar, etc. What I would like to do is just
> > display a Swing dialog and from there let it do its thing in Swing. Is
> this
> > possible?
> >
> >
> >
> > "Cameron Jones" <cameronjones@mail15.com> wrote in message
> > news:bmea36$uh9$1@eclipse.org...
> > > try this:
> > >
> > >
> http://www.eclipse.org/articles/Article-JFace%20Wizards/wiza rdArticle.html
> > >
> > > mabye you were looking in the swt section of the articles - this is in
> the
> > > workbench & jface section.
> > > cam
> > >
> > > "Kevin" <supreme_java_guru_1@yahoo.com> wrote in message
> > > news:bmc9tj$a0e$1@eclipse.org...
> > > > Hmm... nobody knows how to create a Wizard within a plugin? I can't
> seem
> > > to
> > > > find any specific docs on the topic.
> > > >
> > > > "Kevin" <kduffey@marketron.com> wrote in message
> > > > news:bm7m9m$32n$1@eclipse.org...
> > > > > Hey all,
> > > > >
> > > > > Sorry to ask such a basic question, but now that I finally got the
> > hang
> > > of
> > > > > creating a plugin and seeing it work (simple hello world plugin)
in
> > the
> > > > > runtime workbench, I would like to make it into a wizard.
Basically,
> I
> > > > want
> > > > > my plugin to provide a menu item and toolbar button (which it does
> > now)
> > > > that
> > > > > when clicked, pops up a wizard with a couple of pages. At the end,
> it
> > > will
> > > > > do some work, generate some template classes, etc. Just like a
> > Plugin-In
> > > > > wizard generates the plugin project, classes, plugin.xml, etc.
> > > > >
> > > > > Can someone shed some light on where I can get some help doing
this?
> I
> > > am
> > > > > not at all familiar with SWT, or how to do the dialog, wizard
pages,
> > > input
> > > > > boxes, etc. I do see the .wizard package, so I am sure I'll use
> that.
> > > Just
> > > > > not sure where to go from there.
> > > > >
> > > > > One other point... I'd like to make this work as a stand-alone
Swing
> > app
> > > > as
> > > > > well, so is it possible to use Swing for the whole thing, as
opposed
> > to
> > > > SWT?
> > > > > We have some developers using JBuilder still, and may not migrate
to
> > > > Eclipse
> > > > > for a while, so it needs to be both a plugin and a stand-alone,
> > > therefore
> > > > > using Swing for the whole thing would be great. Is it possible to
> make
> > > the
> > > > > menu/toolbar pop up my Swing dialog and go from there?
> > > > >
> > > > > Thanks.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:Eclipse, Xerces, and 1.4 VMs
Next Topic:Update Manager 2.0 - > 2.1
Goto Forum:
  


Current Time: Thu Apr 25 22:39:37 GMT 2024

Powered by FUDForum. Page generated in 0.04013 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top