Assign Default Superclass for a Package [message #988245] |
Thu, 29 November 2012 00:47  |
Eclipse User |
|
|
|
Is there a way to make eclipse recognize that, when a class is created in a package, it has a default superclass so the superclass does not have to be defined?
Example:
Let's say I have a package named taco.exceptions. And whenever I create a class in that package, I want the default superclass to be java.lang.Exception, instead of java.lang.Object. This way, I don't need to change the default value if I'm creating a lot of classes in that package.
|
|
|
Re: Assign Default Superclass for a Package [message #988304 is a reply to message #988245] |
Thu, 29 November 2012 05:38  |
Eclipse User |
|
|
|
On 29.11.2012 06:47, Caleb Downs wrote:
> Is there a way to make eclipse recognize that, when a class is created
> in a package, it has a default superclass so the superclass does not
> have to be defined?
No.
Dani
>
> Example:
>
> Let's say I have a package named taco.exceptions. And whenever I
> create a class in that package, I want the default superclass to be
> java.lang.Exception, instead of java.lang.Object. This way, I don't
> need to change the default value if I'm creating a lot of classes in
> that package.
|
|
|
Powered by
FUDForum. Page generated in 0.21723 seconds