Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » transforming java aplication on a plugin
transforming java aplication on a plugin [message #273003] Wed, 29 September 2004 16:04 Go to next message
Eclipse UserFriend
Originally posted by: chronicchronicle.hotmail.com

hi , i have an aplication and using a frame in java and i want to migrate
to eclipse , to be a plugin , but i cant find a class that implement a
frame inside the plugin

plis help me i somebody knows something about

regards


monster
Re: transforming java aplication on a plugin [message #273298 is a reply to message #273003] Mon, 04 October 2004 06:15 Go to previous message
Eclipse UserFriend
Originally posted by: ian.hartney.gmail.com

Eclipse uses the SWT framework instead of swing or AWT, so you would have to
port it over to that. As for the frame class. Well when you create a new
editor you can access its "Composite" which is the generic GUI surface for
SWT. This can be treated as a frame and SWT components can added and layed
out on it.

To Access the composite in a TextEditor you override the

ISourceViewer createSourceViewer( Composite parent,IVerticalRuler ruler,int
styles)

method.

On a multipage editor you create your own using

composite = new Composite(getContainer(), SWT.NONE)

when

void createPages()

is called.


"monster" <chronicchronicle@hotmail.com> wrote in message
news:cjf4gj$gqe$1@eclipse.org...
> hi , i have an aplication and using a frame in java and i want to migrate
> to eclipse , to be a plugin , but i cant find a class that implement a
> frame inside the plugin
>
> plis help me i somebody knows something about
>
> regards
>
>
> monster
>
Previous Topic:close editor from hand
Next Topic:Creating Project with a Nature
Goto Forum:
  


Current Time: Tue May 13 18:02:08 EDT 2025

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

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

Back to the top