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 97120 - auto-replace dot or arrow when applied to know type
Summary: auto-replace dot or arrow when applied to know type
Status: STARTED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 171042 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-02 16:59 UTC by Vladimir Voskresensky
Modified: 2013-05-22 11:52 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2007-03-02 16:59:57 UTC
It's convenient to have the following behavior of code completion:
MyType* t;
t.val| => t->value
after auto-completion incorrect "." should be replaced by "->"

and vice versa:
MyType t;
t->val| => t.value
incorrect "->" should be replaced by "."
Comment 1 Vladimir Kvashin 2008-08-29 17:49:44 UTC
There is a related issue
http://www.netbeans.org/issues/show_bug.cgi?id=145500
Comment 2 Vladimir Voskresensky 2008-09-01 18:03:07 UTC
added replacement of "." to "->" after "this"

http://hg.netbeans.org/main?cmd=changeset;node=ea6469e016b7
Comment 3 Quality Engineering 2008-09-02 05:40:50 UTC
Integrated into 'main-golden', will be available in build *200809020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ea6469e016b7
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing IZ#97120: auto-replace dot or arrow when applied to know type
Comment 4 jorgeluis 2009-08-28 02:54:53 UTC
*** Issue 171042 has been marked as a duplicate of this issue. ***
Comment 5 Vladimir Voskresensky 2009-09-25 14:06:15 UTC
consider for the next release due to lack of resources
Comment 6 Quality Engineering 2010-11-02 03:58:14 UTC
Integrated into 'main-golden', will be available in build *201011020000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/38a046400ed8
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #97120 -  auto-replace dot or arrow when applied to know type
autoreplace . with -> if insert completion proposal
Comment 7 Quality Engineering 2011-02-16 11:35:28 UTC
Integrated into 'main-golden', will be available in build *201102160501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3a51bf2f74b1
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: extra fix for #97120 -  auto-replace dot or arrow when applied to know type
-- dot-to-arrow replace when insert functions as well
Comment 8 Vladimir Voskresensky 2013-04-05 20:19:06 UTC
support typedef chains
http://hg.netbeans.org/cnd-main/rev/9c2c46bd6d47
test:
http://hg.netbeans.org/cnd-main/rev/d33e0713e70d
Comment 9 tbrunhoff 2013-04-16 21:02:00 UTC
> It's convenient to have the following behavior of code completion:
> ...
> and vice versa:
> MyType t;
> t->val| => t.value
> incorrect "->" should be replaced by "."

Friendly reminder: this is still broken :-)
Comment 10 Vladimir Voskresensky 2013-04-17 09:55:41 UTC
(In reply to comment #9)
> > It's convenient to have the following behavior of code completion:
> > ...
> > and vice versa:
> > MyType t;
> > t->val| => t.value
> > incorrect "->" should be replaced by "."
> 
> Friendly reminder: this is still broken :-)
yes, I know :-) "->" to "." is still not implemented
Comment 11 petrk 2013-05-22 11:52:20 UTC
*** Bug 230101 has been marked as a duplicate of this bug. ***