Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 72023 Details for
Bug 169954
[content assist][api] provide better access to ContentAssistant
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
update documentation
patch.txt (text/plain), 3.72 KB, created by
Guy Gurfinkel
on 2007-06-21 06:50:31 EDT
(
hide
)
Description:
update documentation
Filename:
MIME Type:
Creator:
Guy Gurfinkel
Created:
2007-06-21 06:50:31 EDT
Size:
3.72 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jface.text >Index: src/org/eclipse/jface/text/contentassist/ContentAssistant.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java,v >retrieving revision 1.80 >diff -u -r1.80 ContentAssistant.java >--- src/org/eclipse/jface/text/contentassist/ContentAssistant.java 4 Jun 2007 15:17:10 -0000 1.80 >+++ src/org/eclipse/jface/text/contentassist/ContentAssistant.java 21 Jun 2007 10:49:57 -0000 >@@ -7,6 +7,7 @@ > * > * Contributors: > * IBM Corporation - initial API and implementation >+ * Guy Gurfinkel, guy.g@zend.com - Bug fix 169954 - Allow subclasses change the behavior of the AutoAssistListener. > *******************************************************************************/ > package org.eclipse.jface.text.contentassist; > >@@ -222,7 +223,7 @@ > * characters specified by the content assist processor, and if detected, will wait the > * indicated delay interval before activating the content assistant. > */ >- class AutoAssistListener extends KeyAdapter implements KeyListener, Runnable, VerifyKeyListener { >+ protected class AutoAssistListener extends KeyAdapter implements KeyListener, Runnable, VerifyKeyListener { > > private Thread fThread; > private boolean fIsReset= false; >@@ -1080,7 +1081,7 @@ > if (start) { > > if ((fContentAssistSubjectControlAdapter != null) && fAutoAssistListener == null) { >- fAutoAssistListener= new AutoAssistListener(); >+ fAutoAssistListener= createAutoAssistListener(); > // For details see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49212 > if (fContentAssistSubjectControlAdapter.supportsVerifyKeyListener()) > fContentAssistSubjectControlAdapter.appendVerifyKeyListener(fAutoAssistListener); >@@ -1099,6 +1100,16 @@ > } > > /** >+ * This method allows subclasses to change the behavior of the AutoAssistListener >+ * >+ * @return new AutoAssistListener >+ * @since 3.4 >+ */ >+ protected AutoAssistListener createAutoAssistListener() { >+ return new AutoAssistListener(); >+ } >+ >+ /** > * Sets the delay after which the content assistant is automatically invoked if the cursor is > * behind an auto activation character. > * >@@ -1109,6 +1120,17 @@ > } > > /** >+ * Gets the delay after which the content assistant is automatically invoked if the cursor is >+ * behind an auto activation character. >+ * >+ * @return the auto activation delay >+ * @since 3.4 >+ */ >+ public int getAutoActivationDelay() { >+ return fAutoActivationDelay; >+ } >+ >+ /** > * Sets the proposal pop-ups' orientation. The following values may be used: > * <ul> > * <li>PROPOSAL_OVERLAY<p> >@@ -2281,4 +2303,35 @@ > KeySequence getTriggerSequence() { > return fTriggerSequence; > } >+ >+ /** >+ * Checks the proposal popup state >+ * >+ * @return <code>true</code> if the ProposalPopup is active, <code>false</code> otherwise >+ * @since 3.4 >+ */ >+ protected boolean isProposalPopupActive(){ >+ return (fProposalPopup != null && fProposalPopup.isActive()); >+ } >+ >+ /** >+ * Checks whether the Context Information Popup was already initiated >+ * >+ * @return <code>true</code> if the Context Information Popup is not <code>null</code> >+ * @since 3.4 >+ */ >+ protected boolean isContextInfoPopupInitiated(){ >+ return (fContextInfoPopup != null); >+ } >+ >+ /** >+ * Checks the context information popup state >+ * >+ * @return <code>true</code> if the Context Information Popup is active, <code>false</code> otherwise >+ * @since 3.4 >+ */ >+ protected boolean isContextInfoPopupActive(){ >+ return (fContextInfoPopup != null && fContextInfoPopup.isActive()); >+ } >+ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 169954
:
71837
|
71882
|
71995
| 72023