This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AttributeCompletionRegistrations({ | |
@AttributeCompletionRegistration( | |
id = "mynewspaper-netbeans-completion-lang-LangCompletionService", | |
attribute = "lang", | |
icon = "mynewspaper/netbeans/completion/lang/bubble.png", | |
content = "bean:mynewspaper.netbeans.completion.lang.LangCompletionItemDataProvider") | |
}) | |
package mynewspaper.netbeans.completion.lang; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mynewspaper.netbeans.completion.lang; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.netbeans.spi.editor.completion.xhtml.api.CompletionItemData; | |
import org.netbeans.spi.editor.completion.xhtml.api.CompletionItemDataProvider; | |
/** | |
* | |
* @author oschmitt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AttributeCompletionRegistrations({ | |
@AttributeCompletionRegistration( | |
id = "mynewspaper-netbeans-completion-lang-LangCompletionService", | |
attribute = "lang", | |
icon = "mynewspaper/netbeans/completion/lang/bubble.png", | |
content = "raw:en,es,fr,it") | |
}) | |
package mynewspaper.netbeans.completion.lang; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* <p>Defines a completion item service.</p> | |
* | |
* <p>A service should expose accept method and accept URI with a specific scheme.</p> | |
* | |
* <p>The configure method is called with complete URI.</p> | |
* | |
* <p>Each service has its own way to be configured.</p> | |
* | |
* @author oschmitt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mynewspaper.netbeans.completion.lang; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.URI; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mynewspaper.netbeans.completion.lang; | |
import javax.swing.text.BadLocationException; | |
import javax.swing.text.StyledDocument; | |
import org.netbeans.spi.editor.completion.xhtml.api.CompleteAction; | |
import org.netbeans.spi.editor.completion.xhtml.api.CompletionItemData; | |
/** | |
* | |
* @author oschmitt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AttributeCompletionRegistrations({ | |
@AttributeCompletionRegistration( | |
id = "jee-architect-cookbook-netbeans-iso6391-CSVCompletionItemService", | |
attribute = "lang", | |
icon = "jee/architect/cookbook/netbeans/iso6391/bubble.png", | |
content = "csv:jee/architect/cookbook/netbeans/iso6391/ISO6391.csv"), | |
@AttributeCompletionRegistration( | |
id = "jee-architect-cookbook-netbeans-iso6391-RESTCompletionItemService", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/template" id="item-template"> | |
<div class="view"> | |
<input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> /> | |
<label><%- title %></label> | |
<a class="destroy"></a> | |
</div> | |
<input class="edit" type="text" value="<%- title %>" /> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.templateSettings = { | |
interpolate: /\{\{(.+?)\}\}/gim, | |
evaluate: /\{\{(.+?)\}\}/gim, | |
escape: /\{\{\-(.+?)\}\}/gim | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/template" id="item-template"> | |
<div class="view"> | |
<input class="toggle" type="checkbox" {{ done ? 'checked="checked"' : '' }} /> | |
<label>{{ title }}</label> | |
<a class="destroy"></a> | |
</div> | |
<input class="edit" type="text" value="{{ title }}" /> | |
</script> |
OlderNewer