Skip to main content



      Home
Home » Newcomers » Newcomers » whats the proper way to subclass?
whats the proper way to subclass? [message #12909] Sat, 22 January 2005 22:03 Go to next message
Eclipse UserFriend
Originally posted by: victorflores.nyc.rr.com

whats the proper way to subclass?

What i do is i just go to the source and add 'extends whatever....' class
i want to extend.

So where do i specify 'whatever' so 'whatever' will automatically show up
in the extends section of the code?

and implements????
Re: whats the proper way to subclass? [message #12952 is a reply to message #12909] Sat, 22 January 2005 22:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

Victor,

In the New Java Class wizard, there's a box labeled Superclass. You can
type the name of the class you wish to extend there, or press the Browse
button to locate the class. Beneath that there is a list labeled
Interfaces. You can use the Add and Remove classes you'd like to implement.

Hope this helps,

- Jeff

victor wrote:
> whats the proper way to subclass?
>
> What i do is i just go to the source and add 'extends whatever....'
> class i want to extend.
>
> So where do i specify 'whatever' so 'whatever' will automatically show up
> in the extends section of the code?
>
> and implements????
>
ok, i think i am on to something. . . [message #13036 is a reply to message #12909] Sat, 22 January 2005 22:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: victorflores.nyc.rr.com

When i create a new class,
there's a place where i can specify 'Superclass'
(i guess this is where i could put 'Dialog', which'
is what i wanna subclass)

problem is when i click browse, there's not much:
Choose a type says:
java.lang.Object
(which is what was in there in the first place(i guess it is the default,
cause i sure as hell didnt do it)

Matching types says:
Object

Qualifyer says:
(well, it specifies the run time jar)
java.lang -C:\Program files\Java\jre.1.5.0_01\lib\rt.jar

where can i pull Dialog from?
Re: ok, i think i am on to something. . . [message #13065 is a reply to message #13036] Sat, 22 January 2005 23:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

Just clear the text java.lang.Object in the textfield at the top and
start typing Dialog. It should auto filter and allow you to select the
class you want from the list in the middle.

- Jeff

victor wrote:
> When i create a new class,
> there's a place where i can specify 'Superclass'
> (i guess this is where i could put 'Dialog', which'
> is what i wanna subclass)
>
> problem is when i click browse, there's not much:
> Choose a type says:
> java.lang.Object
> (which is what was in there in the first place(i guess it is the default,
> cause i sure as hell didnt do it)
>
> Matching types says:
> Object
>
> Qualifyer says:
> (well, it specifies the run time jar)
> java.lang -C:\Program files\Java\jre.1.5.0_01\lib\rt.jar
>
> where can i pull Dialog from?
>
>
Re: ok, i think i am on to something. . . [message #13094 is a reply to message #13065] Sat, 22 January 2005 23:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: victorflores.nyc.rr.com

thanks jeff, that was very helpful!

after i wiped out 'object', and typed Dialog, nothing really happened,
till i did ctl-enter....

Thanks again!
Re: ok, i think i am on to something. . . [message #16081 is a reply to message #13094] Tue, 25 January 2005 10:33 Go to previous message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

To see the class 'Dialog', it must be on the classpath
of your project. This can be done by hand, using
the project properties.

But, it sounds like you are writing a plugin.
In that case, you should use the plugin.xml editor
to add a dependency to the plugin that declares
the 'Dialog' class - org.eclipse.jface?

To understand better what classes you can see
when, read this uber-frequently-asked-question:

http://www.eclipsefaq.org/chris/faq/html/faq104.html

--
Chris Laffra, http://eclipsefaq.org


"victor" <victorflores@nyc.rr.com> wrote in message
news:csv84c$uvr$1@www.eclipse.org...
> thanks jeff, that was very helpful!
>
> after i wiped out 'object', and typed Dialog, nothing really happened,
> till i did ctl-enter....
>
> Thanks again!
>
Previous Topic:Two projects and function completion
Next Topic:PLEASE HELP!!!!
Goto Forum:
  


Current Time: Thu May 01 12:21:50 EDT 2025

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

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

Back to the top