Bug 72919 - Select DropTarget class for dropTarget property gens compiler error
Summary: Select DropTarget class for dropTarget property gens compiler error
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-30 18:17 EDT by Peter Walker CLA
Modified: 2011-06-13 11:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Walker CLA 2004-08-30 18:17:42 EDT
Drop a JButton onto a JPanel. Show Advanced properties in the propertys viewer.
Select the 'dropTarget' property and from the Choose a Bean property editor,
select the class DropTarget, select Okay to close the editor and generate the code. 
This generates the following statement:
  jButton.setDropTarget(getDropTarget());

Which is fine but it also generates the following private method:
private DropTarget getDropTarget() {
   ...
}

This produces a compile error because it's override a public method from
java.awt.Component.

Not sure how many other advanced properties are like this in which a class that
implements the type of the property is the same name as the property itself.
This was a side affect of adding a bunch of previously "hidden" properties that
couldn't be shown because we didn't have the Choose a Bean editor.