diff options
author | Tom Schindl | 2016-04-28 17:22:56 +0000 |
---|---|---|
committer | Tom Schindl | 2016-04-28 17:22:56 +0000 |
commit | d58689da217736dfb6fa3d9d3d187317b169f062 (patch) | |
tree | f27d3f143cfaf8dfc31e4a67149c52a83fcd4068 /bundles | |
parent | 6831d465be12e06d78f3db03aff90834f8332657 (diff) | |
download | org.eclipse.efxclipse-d58689da217736dfb6fa3d9d3d187317b169f062.tar.gz org.eclipse.efxclipse-d58689da217736dfb6fa3d9d3d187317b169f062.tar.xz org.eclipse.efxclipse-d58689da217736dfb6fa3d9d3d187317b169f062.zip |
Bug 492679 - Triggering ContentProposal (eg CTRL+SPACE) while ContentPopup is open leads to exception
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/code/org.eclipse.fx.text.ui/src/org/eclipse/fx/text/ui/contentassist/ContentProposalPopup.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/code/org.eclipse.fx.text.ui/src/org/eclipse/fx/text/ui/contentassist/ContentProposalPopup.java b/bundles/code/org.eclipse.fx.text.ui/src/org/eclipse/fx/text/ui/contentassist/ContentProposalPopup.java index d24a371ac..1328ff7c6 100644 --- a/bundles/code/org.eclipse.fx.text.ui/src/org/eclipse/fx/text/ui/contentassist/ContentProposalPopup.java +++ b/bundles/code/org.eclipse.fx.text.ui/src/org/eclipse/fx/text/ui/contentassist/ContentProposalPopup.java @@ -69,6 +69,11 @@ public class ContentProposalPopup implements IContentAssistListener { public Optional<ICompletionProposal> displayProposals(List<ICompletionProposal> proposalList, int offset, Point2D position) { setup(); + + if( this.stage.isShowing() ) { + return Optional.empty(); + } + this.prefix = ""; //$NON-NLS-1$ this.offset = offset; this.proposalList.setItems(FXCollections.observableArrayList(proposalList)); |