This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137633 - Completion:suggest attributes to be overriden in subclass
Summary: Completion:suggest attributes to be overriden in subclass
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 154422
  Show dependency tree
 
Reported: 2008-06-18 21:09 UTC by Lark Fitzgerald
Modified: 2011-04-11 09:12 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
screen shot (184.81 KB, image/jpeg)
2008-06-18 21:10 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-06-18 21:09:56 UTC
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
fx NB61 nighly plugin: 269

1. in editor type:
import javafx.gui.*;

class Box extends Rectangle {
2. press enter to get closing }
3. type attribute
4. press ctrl+space

This fails because ast is empty.  Expected a list of attributes available on the Rectangle class.
Comment 1 Lark Fitzgerald 2008-06-18 21:10:52 UTC
Created attachment 63040 [details]
screen shot
Comment 2 Lark Fitzgerald 2008-06-18 21:16:23 UTC
Logged Jira issue:
http://openjfx.java.sun.com/jira/browse/JFXC-1376
Comment 3 David Strupl 2008-07-03 08:35:00 UTC
I actually don't understand what exactly do you expect to see there. If I understand correctly after "attribute" the
user is to define a new attribute. Only if there would be "override" keyword before the "attribute" there should be the
attributes listed, right?
Comment 4 Lark Fitzgerald 2008-07-08 02:57:02 UTC
Actually, I expected that ctrl+space after attribute would give me a list of all the inherited public attributes that 
I could override.
Comment 5 David Strupl 2008-07-08 09:36:45 UTC
AFAIK you cannot override an attribute without the keyword. The code completion would have to insert the keyword for you
or it should not show the inherited attributes.

I suggest to downgrade this to P3 as IMHO it is not that serious, what do you think?
Comment 6 Lark Fitzgerald 2008-07-08 20:46:29 UTC
Agreed, Downgrading to P3.  Will leave the companion issue: 137628 as P2.
Comment 7 David Strupl 2008-07-15 09:42:38 UTC
Downgrading to P4. I don't think this case is that very important. Also this no longer depends on the compiler issue.
And also it is not a bug IMHO not to show them. Making it ENH.
Comment 8 Anton Chechel 2011-04-11 09:12:16 UTC
Since Oracle has discontinued further development of JavaFX Script, JavaFX support has been temporarily removed from NetBeans 7.0.

http://wiki.netbeans.org/NewAndNoteworthyNB70#JavaFX