package.html :  » IDE-Netbeans » editor » org » netbeans » editor » ext » Java Open Source

Java Open Source » IDE Netbeans » editor 
editor » org » netbeans » editor » ext » package.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
  <HEAD>
    <TITLE>ExtKit Design View</TITLE>
  </HEAD>
<BODY>

<h2>Completion Design View</H2>

<p>Status: designing...

<h3>Entry Point Handlers</H3>

<p>User types a character ("UT") :position, character
<pre>
UT -> AWT/Swing -> kit.ExtDefaultKeyAction
  lockDocument
  detachCompletionDocumentHandler
  detachCompletionCaretHandler
  updateDocument
  switch lexsupport.codeCompletion
    cc.autoShow
    cc.refresh
    cc.hide
  attachCompletionCaretHandler
  attachCompletionDocumentHandler
  unlockDocument
</pre>

<p>User moves caret ("UM") (navigation keys or mouse click) :position
<pre>
UM -> AWT/Swing -> cc.CaretListener
  cc.cancel()
</pre>
  
<p>User invokes code assistent ("UC") :position
<pre>
UC -> AWT/Swing -> kit.AssistantAction
  cc.show
</pre>

<p>User invokes kill assistant action
<pre>
UC -> AWT/Swing -> kit.AssistantAction
  cc.hide
</PRE>

<p>User invokes select assistant action
<pre>
UC -> AWT/Swing -> kit.AssistantAction
  cc.hide
  cc.perform  ??? [order is pending]
</PRE>

<p>Module modifies document ("MM") :documentEvent
  <pre>
MM -> unknown thread -> cc.DocumentListener
  cc.refresh
</pre>


<h3>Completion API</H3>

<pre>
+ Completion:
  + autoShow(position, character) instruct completion to open sometimes
  + show(position, character) instruct completion to open in limited time
  + refresh(position, character) if open then update content
  + refresh(documentEvent) if open then update content
  + hide() hide view
</pre>

<pre>
+ CompletionEnvironment implements DocumentListener, CaretListener
  disableDocumentListener
  enableDocumentListener
  disableCaretListener
  enableCaretListener
</pre>

</BODY>
</HTML>
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.