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 253512 - "Auto Popup Completion Window" for HTML does not work when enabled if it is disabled for All Languages
Summary: "Auto Popup Completion Window" for HTML does not work when enabled if it is d...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-16 09:17 UTC by milanka
Modified: 2015-07-16 15:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description milanka 2015-07-16 09:17:11 UTC
I would like to enable auto popup completion window for HTML but not for Java. Thus I have disabled it for All Languages and enabled it for HTML. But it has to be enabled in *both* sections for completion window to appear when editing HTML files.

I think the option for All Languages should have no effect when editing HTML files, because it has a separate option.

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Milutin Kristofic 2015-07-16 12:17:45 UTC
It is implemented in such way that you can disable auto completion just for html, or you disable all auto-completion. Enabling html auto completion is useless when all auto completion is disabled in all languages.

I don't see a way how can I change this from html editor. It should be changed in  CompletionImpl:350 in Editor Code Completion (CompletionSettings.getInstance(getActiveComponent()).completionAutoPopup()) is blocking auto completion. 

I am sending this back to editor completion.
Comment 2 Dusan Balek 2015-07-16 15:10:51 UTC
Milutin, if you want the HTML option "Auto Popup Completion Window" to "override" the same option in All Languages, just use the same key (SimpleValueNames.COMPLETION_AUTO_POPUP) instead of your own (HTML_COMPLETION_AUTOPOPUP_WINDOW) when storing your preferences in HtmlCompletionOptionsPanel. Value for HTML can be stored independently of the rest of the IDE languages then.