Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
304,300 | String () { return getText(); } | getFamilyName |
304,301 | boolean () { return false; } | startInWriteAction |
304,302 | void (JComponent editorComponent, PsiElement element) { String caption = XmlBundle.message("intention.color.chooser.dialog"); final XmlAttributeValue literal = PsiTreeUtil.getParentOfType(element, XmlAttributeValue.class, false); if (literal == null) return; final String text = StringUtil.unquoteString(literal.getValue... | chooseColor |
304,303 | boolean (@NotNull PsiFile file, int offset) { Language language = PsiUtilCore.getLanguageAtOffset(file, offset); if (!HtmlContextType.isMyLanguage(language)) { return false; } PsiElement element = file.getViewProvider().findElementAt(offset, language); return element == null || isInContext(element); } | isInContext |
304,304 | boolean (@NotNull PsiElement element) { if (PsiTreeUtil.getParentOfType(element, XmlComment.class) != null && element.getNode().getElementType() != XmlTokenType.XML_COMMENT_START) { return false; } if (PsiTreeUtil.getParentOfType(element, XmlText.class) != null) { return true; } if (element.getNode().getElementType() =... | isInContext |
304,305 | boolean (@NotNull PsiFile file, int offset) { return isInXml(file, offset); } | isInContext |
304,306 | boolean (PsiFile file, int offset) { return file.getLanguage().isKindOf(XMLLanguage.INSTANCE) && !isEmbeddedContent(file, offset) && !HtmlContextType.isMyLanguage(PsiUtilCore.getLanguageAtOffset(file, offset)) && file.getFileType() != StdFileTypes.JSPX && file.getFileType() != StdFileTypes.JSP; } | isInXml |
304,307 | boolean (final @NotNull PsiFile file, final int offset) { Language languageAtOffset = PsiUtilCore.getLanguageAtOffset(file, offset); return !(languageAtOffset.isKindOf(XMLLanguage.INSTANCE) || languageAtOffset instanceof XMLLanguage); } | isEmbeddedContent |
304,308 | boolean (@NotNull PsiFile file, int offset) { return isMyLanguage(PsiUtilCore.getLanguageAtOffset(file, offset)) && !XmlContextType.isEmbeddedContent(file, offset); } | isInContext |
304,309 | boolean (Language language) { return language.isKindOf(HTMLLanguage.INSTANCE) || language.isKindOf(XHTMLLanguage.INSTANCE); } | isMyLanguage |
304,310 | boolean (@NotNull TemplateActionContext templateActionContext) { PsiFile file = templateActionContext.getFile(); int offset = templateActionContext.getStartOffset(); if (!XmlContextType.isInXml(file, offset)) return false; PsiElement element = file.findElementAt(offset); if (element == null) return false; if (PsiTreeUt... | isInContext |
304,311 | boolean (@NotNull TemplateActionContext templateActionContext) { PsiFile file = templateActionContext.getFile(); int startOffset = templateActionContext.getStartOffset(); if (!XmlContextType.isInXml(file, startOffset)) return false; return isInXmlElementContext(templateActionContext); } | isInContext |
304,312 | boolean (@NotNull TemplateActionContext templateActionContext) { int startOffset = templateActionContext.getStartOffset(); int endOffset = templateActionContext.getEndOffset(); PsiElement parent = findCommonParent(templateActionContext); if (!(parent instanceof XmlTag)) return false; TextRange range = parent.getTextRan... | isInXmlElementContext |
304,313 | boolean (@NotNull PsiFile file, int offset) { if (isXslOrXsltFile(file)) { PsiElement element = file.findElementAt(offset); return element == null || HtmlTextContextType.isInContext(element); } return false; } | isInContext |
304,314 | boolean (@Nullable PsiFile file) { return file != null && file.getFileType() == XmlFileType.INSTANCE && (FileUtilRt.extensionEquals(file.getName(), "xsl") || FileUtilRt.extensionEquals(file.getName(), "xslt")); } | isXslOrXsltFile |
304,315 | CodeInsightActionHandler () { return new CodeInsightActionHandler() { @Override public void invoke(final @NotNull Project project, final @NotNull Editor editor, final @NotNull PsiFile file) { final XmlTag tag = findTag(editor, file); if (tag != null) { new EmmetAbbreviationBalloon(EMMET_RECENT_UPDATE_ABBREVIATIONS_KEY,... | getHandler |
304,316 | void (final @NotNull Project project, final @NotNull Editor editor, final @NotNull PsiFile file) { final XmlTag tag = findTag(editor, file); if (tag != null) { new EmmetAbbreviationBalloon(EMMET_RECENT_UPDATE_ABBREVIATIONS_KEY, EMMET_LAST_UPDATE_ABBREVIATIONS_KEY, new EmmetAbbreviationBalloon.Callback() { @Override pub... | invoke |
304,317 | void (@NotNull String abbreviation) { try { doUpdateTag(abbreviation, tag, file, editor); } catch (EmmetException ignore) { } } | onEnter |
304,318 | boolean () { return false; } | startInWriteAction |
304,319 | void (@NotNull Project project, @Nullable String templateText, @NotNull PairProcessor<? super XmlTag, ? super Boolean> processor) { if (StringUtil.isNotEmpty(templateText)) { final PsiFileFactory psiFileFactory = PsiFileFactory.getInstance(project); XmlFile xmlFile = (XmlFile)psiFileFactory.createFileFromText("dummy.xm... | processTags |
304,320 | ThrowableRunnable<RuntimeException> (final @NotNull XmlTag tag, final @NotNull PsiFile file, final @Nullable String newTagName, final @NotNull Collection<String> classes, final @NotNull Map<String, String> attributes) { return () -> { if (tag.isValid()) { if (!ReadonlyStatusHandler.getInstance(file.getProject()).ensure... | doUpdateTagAttributes |
304,321 | void (@NotNull AnActionEvent event) { super.update(event); event.getPresentation().setVisible(event.getPresentation().isEnabled()); } | update |
304,322 | boolean (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { return super.isValidForFile(project, editor, file) && EmmetOptions.getInstance().isEmmetEnabled() && findTag(editor, file) != null; } | isValidForFile |
304,323 | void (final @NotNull Editor editor, final @NotNull PsiFile file, final boolean expandPrimitiveAbbreviations) { editor.getDocument().addDocumentListener(new DocumentListener() { @Override public void documentChanged(@NotNull DocumentEvent e) { EmmetPreviewHint existingHint = EmmetPreviewHint.getExistingHint(editor); if ... | addEmmetPreviewListeners |
304,324 | void (@NotNull DocumentEvent e) { EmmetPreviewHint existingHint = EmmetPreviewHint.getExistingHint(editor); if (existingHint != null) { existingHint.updateText(new TemplateTextProducer(editor, file, expandPrimitiveAbbreviations)); } else { e.getDocument().removeDocumentListener(this); } } | documentChanged |
304,325 | void (@NotNull CaretEvent e) { EmmetPreviewHint existingHint = EmmetPreviewHint.getExistingHint(e.getEditor()); if (existingHint != null) { existingHint.updateText(new TemplateTextProducer(editor, file, expandPrimitiveAbbreviations)); } else { e.getEditor().getCaretModel().removeCaretListener(this); } } | caretPositionChanged |
304,326 | String (final @NotNull PsiFile file, @NotNull String templateText) { final PsiFile copy = PsiFileFactory.getInstance(file.getProject()).createFileFromText(file.getName(), file.getFileType(), templateText); CodeStyleManager.getInstance(file.getProject()).reformat(copy); return copy.getText(); } | reformatTemplateText |
304,327 | void (@NotNull Editor editor, char charTyped, @NotNull DataContext dataContext) { if (myOriginalHandler != null) myOriginalHandler.execute(editor, charTyped, dataContext); if (EmmetOptions.getInstance().isEmmetEnabled() && EmmetOptions.getInstance().isPreviewEnabled()) { Project project = CommonDataKeys.PROJECT.getData... | execute |
304,328 | String (@Nullable ZenCodingToken token, boolean allowOperations) { if (token == null) { return ""; } if (token instanceof StringLiteralToken) { final String text = ((StringLiteralToken)token).getText(); return text.substring(1, text.length() - 1); } else if (token instanceof TextToken) { return ((TextToken)token).getTe... | getAttributeValueByToken |
304,329 | ZenCodingNode (@Nullable ZenCodingNode leftPart) { popTagLevel(); return super.parseClimbUpOperation(leftPart); } | parseClimbUpOperation |
304,330 | ZenCodingNode (@Nullable ZenCodingNode leftPart) { String parentTag = getParentTag(leftPart); boolean hasParent = false; if (!Strings.isEmpty(parentTag)) { hasParent = true; tagLevel.push(parentTag); } ZenCodingNode result = super.parseMoreOperation(leftPart); if (result == null) { return null; } if (hasParent) { popTa... | parseMoreOperation |
304,331 | String () { if (!tagLevel.empty()) { String parentTag = tagLevel.peek(); if (parentChildTagMapping.containsKey(parentTag)) { return parentChildTagMapping.get(parentTag); } if (HtmlUtil.isPossiblyInlineTag(parentTag)) { return DEFAULT_INLINE_TAG; } } return DEFAULT_TAG; } | suggestTagName |
304,332 | void () { if (tagLevel.size() > (hasTagContext ? 1 : 0)) { tagLevel.pop(); } } | popTagLevel |
304,333 | String () { return HtmlUtil.CLASS_ATTRIBUTE_NAME; } | getClassAttributeName |
304,334 | List<Couple<String>> () { final List<Couple<String>> result = new ArrayList<>(); while (true) { final Couple<String> attribute = parseAttribute(); if (attribute == null) { return result; } result.add(attribute); final ZenCodingToken token = getToken(); if (token != ZenCodingTokens.COMMA && token != ZenCodingTokens.SPAC... | parseAttributeList |
304,335 | String () { ZenCodingToken token; final StringBuilder attrValueBuilder = new StringBuilder(); String value; do { token = getToken(); value = getAttributeValueByToken(token, true); attrValueBuilder.append(value); if (!isEndOfAttribute(token)) { advance(); } } while (!isEndOfAttribute(token)); return attrValueBuilder.toS... | parseAttributeValue |
304,336 | boolean (@Nullable ZenCodingToken nextToken) { return nextToken == null || nextToken == ZenCodingTokens.SPACE || nextToken == ZenCodingTokens.CLOSING_SQ_BRACKET || nextToken == ZenCodingTokens.COMMA; } | isEndOfAttribute |
304,337 | void (@NotNull EditorFactoryEvent event) { if (event.getEditor() == myParentEditor || event.getEditor() == myEditor || event.getEditor() == topLevelEditor) { hide(true); } } | editorReleased |
304,338 | void (@NotNull DocumentEvent event) { if (!isDisposed && event.isWholeTextReplaced()) { Pair<Point, Short> position = guessPosition(); HintManagerImpl.adjustEditorHintPosition(EmmetPreviewHint.this, myParentEditor, position.first, position.second); myEditor.getScrollingModel().scrollVertically(0); } } | documentChanged |
304,339 | void () { myParentEditor.putUserData(KEY, this); Pair<Point, Short> position = guessPosition(); JRootPane pane = myParentEditor.getComponent().getRootPane(); JComponent layeredPane = pane != null ? pane.getLayeredPane() : myParentEditor.getComponent(); HintHint hintHint = new HintHint(layeredPane, position.first) .setA... | showHint |
304,340 | void (final @NotNull Supplier<String> contentProducer) { myAlarm.cancelAllRequests(); myAlarm.addRequest(() -> { if (isDisposed) return; Project project = myEditor.getProject(); if (project == null) return; PsiDocumentManager.getInstance(project).commitDocument(myParentEditor.getDocument()); ReadAction.nonBlocking(() -... | updateText |
304,341 | String () { return myEditor.getDocument().getText(); } | getContent |
304,342 | EmmetPreviewHint (final @NotNull EditorEx parentEditor, @NotNull String templateText, @NotNull FileType fileType) { EditorFactory editorFactory = EditorFactory.getInstance(); Document document = editorFactory.createDocument(templateText); final EditorEx previewEditor = (EditorEx)editorFactory.createEditor(document, par... | createHint |
304,343 | Dimension () { Dimension size = super.getPreferredSize(); Dimension parentEditorSize = parentEditor.getScrollPane().getSize(); int maxWidth = (int)parentEditorSize.getWidth() / 3; int maxHeight = (int)parentEditorSize.getHeight() / 2; final int width = settings.isUseSoftWraps() ? maxWidth : Math.min((int)size.getWidth(... | getPreferredSize |
304,344 | Insets () { return JBUI.insets(1, 2, 0, 0); } | getInsets |
304,345 | boolean () { return true; } | vetoesHiding |
304,346 | void (boolean ok) { super.hide(ok); ApplicationManager.getApplication().invokeLater(() -> Disposer.dispose(this)); } | hide |
304,347 | void () { isDisposed = true; myAlarm.cancelAllRequests(); EmmetPreviewHint existingBalloon = myParentEditor.getUserData(KEY); if (existingBalloon == this) { myParentEditor.putUserData(KEY, null); } if (!myEditor.isDisposed()) { EditorFactory.getInstance().releaseEditor(myEditor); } } | dispose |
304,348 | CodeInsightActionHandler () { return new CodeInsightActionHandler() { @Override public void invoke(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiDocumentManager.getInstance(file.getProject()).commitDocument(editor.getDocument()); ReadAction.nonBlocking(() -> EmmetPreviewUtil.calculateTem... | getHandler |
304,349 | void (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiDocumentManager.getInstance(file.getProject()).commitDocument(editor.getDocument()); ReadAction.nonBlocking(() -> EmmetPreviewUtil.calculateTemplateText(editor, file, true)) .finishOnUiThread(ModalityState.any(), templateText -> { if (S... | invoke |
304,350 | boolean () { return false; } | startInWriteAction |
304,351 | boolean (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { return super.isValidForFile(project, editor, file) && ZenCodingTemplate.findApplicableDefaultGenerator(new CustomTemplateCallback(editor, file), false) instanceof XmlZenCodingGenerator; } | isValidForFile |
304,352 | void (@NotNull String testingAbbreviation, @NotNull Disposable parentDisposable) { ourTestingAbbreviation = testingAbbreviation; Disposer.register(parentDisposable, new Disposable() { @Override public void dispose() { //noinspection AssignmentToStaticFieldFromInstanceMethod ourTestingAbbreviation = null; } }); } | setTestingAbbreviation |
304,353 | void () { //noinspection AssignmentToStaticFieldFromInstanceMethod ourTestingAbbreviation = null; } | dispose |
304,354 | void (final @NotNull CustomTemplateCallback customTemplateCallback) { if (ApplicationManager.getApplication().isUnitTestMode()) { if (ourTestingAbbreviation == null) { throw new RuntimeException("Testing abbreviation is not set. See EmmetAbbreviationBalloon#setTestingAbbreviation"); } myCallback.onEnter(ourTestingAbbre... | show |
304,355 | void (@NotNull DocumentEvent e) { if (!isValid(customTemplateCallback)) { balloon.hide(); return; } validateTemplateKey(field, balloon, field.getText(), customTemplateCallback); } | textChanged |
304,356 | void (@NotNull KeyEvent e) { if (!field.isPopupVisible()) { if (!isValid(customTemplateCallback)) { balloon.hide(); return; } switch (e.getKeyCode()) { case KeyEvent.VK_ENTER -> { final String abbreviation = field.getText(); if (validateTemplateKey(field, balloon, abbreviation, customTemplateCallback)) { myCallback.onE... | keyPressed |
304,357 | void (@NotNull LightweightWindowEvent event) { field.setText(PropertiesComponent.getInstance().getValue(myLastAbbreviationKey, "")); } | beforeShown |
304,358 | void (@NotNull LightweightWindowEvent event) { field.removeKeyListener(keyListener); field.removeDocumentListener(documentListener); } | onClosed |
304,359 | boolean (@NotNull TextFieldWithHistory field, @Nullable Balloon balloon, @NotNull String abbreviation, @NotNull CustomTemplateCallback callback) { final boolean correct = ZenCodingTemplate.checkTemplateKey(abbreviation, callback); field.getTextEditor().setBackground(correct ? LightColors.SLIGHTLY_GREEN : LightColors.RE... | validateTemplateKey |
304,360 | boolean (CustomTemplateCallback callback) { return !callback.getEditor().isDisposed(); } | isValid |
304,361 | ContextHelpLabel () { String linkText = doIfNotNull(myLinkText, Supplier::get); String description = myDescription.get(); if (StringUtil.isEmpty(linkText) || StringUtil.isEmpty(myLinkUrl)) { return ContextHelpLabel.create(description); } return ContextHelpLabel.createWithLink(null, description, linkText, () -> BrowserU... | createHelpLabel |
304,362 | void (@NotNull String key) { } | deleteTemplateKey |
304,363 | void (@NotNull Template template, Map<String, String> predefinedValues, TemplateEditingListener listener) { if (template instanceof TemplateImpl && !((TemplateImpl)template).isDeactivated()) { myTemplate = (TemplateImpl)template; } } | startTemplate |
304,364 | boolean (@NotNull List<ZenCodingToken> tokens, @NotNull ZenCodingGenerator generator) { for (ZenCodingToken token : tokens) { if (token instanceof TextToken && !(generator instanceof XmlZenCodingGenerator)) { return false; } } return true; } | validate |
304,365 | boolean (@NotNull String key, CustomTemplateCallback callback, @NotNull ZenCodingGenerator generator) { return parse(key, callback, generator, null) != null; } | checkTemplateKey |
304,366 | void (@NotNull String key, @NotNull CustomTemplateCallback callback) { ZenCodingGenerator defaultGenerator = findApplicableDefaultGenerator(callback, false); Editor editor = callback.getEditor(); if (defaultGenerator == null) { LOG.error("Cannot find defaultGenerator for key `" + key + "` at " + editor.getCaretModel().... | expand |
304,367 | void (Caret startCaret, @NotNull Editor editor, @NotNull PsiFile file, @NotNull Runnable command) { runForCaret(startCaret, editor, () -> { CaretModel model = editor.getCaretModel(); if (model.getCaretCount() == 0) { WriteCommandAction.writeCommandAction(editor.getProject(), file).run(() -> command.run()); } else { Doc... | writeActionForCaret |
304,368 | void (@NotNull Caret caret, Editor editor, Runnable runnable) { editor.getCaretModel().runForEachCaret(candidate -> { if (candidate != caret) return; runnable.run(); }); } | runForCaret |
304,369 | List<ZenCodingFilter> (ZenCodingNode node, PsiElement context) { List<ZenCodingFilter> result = new ArrayList<>(); while (node instanceof FilterNode filterNode) { String filterSuffix = filterNode.getFilter(); for (ZenCodingFilter filter : ZenCodingFilter.getInstances()) { if (filter.isMyContext(context) && filter.getSu... | getFilters |
304,370 | boolean (@NotNull ZenCodingNode node) { if (node instanceof TemplateNode) { final TemplateToken token = ((TemplateNode)node).getTemplateToken(); if (token != null) { final Map<String, String> attributes = token.getAttributes(); return attributes.isEmpty() || attributes.containsKey(HtmlUtil.CLASS_ATTRIBUTE_NAME) && Stri... | isPrimitiveNode |
304,371 | void (final @NotNull String selection, final @NotNull CustomTemplateCallback callback) { new EmmetAbbreviationBalloon(EMMET_RECENT_WRAP_ABBREVIATIONS_KEY, EMMET_LAST_WRAP_ABBREVIATIONS_KEY, new EmmetAbbreviationBalloon.Callback() { @Override public void onEnter(@NotNull String abbreviation) { doWrap(abbreviation, callb... | wrap |
304,372 | void (@NotNull String abbreviation) { doWrap(abbreviation, callback); } | onEnter |
304,373 | boolean (String inputString, CustomTemplateCallback callback) { ZenCodingGenerator generator = findApplicableDefaultGenerator(callback, true); if (generator == null) { int offset = callback.getEditor().getCaretModel().getOffset(); LOG.error("Emmet is disabled for context for file " + callback.getFileType().getName() + ... | checkTemplateKey |
304,374 | boolean (@NotNull CustomTemplateCallback callback, int offset, boolean wrapping) { final ZenCodingGenerator applicableGenerator = findApplicableDefaultGenerator(callback, wrapping); return applicableGenerator != null && applicableGenerator.isEnabled(); } | isApplicable |
304,375 | boolean (@NotNull CustomTemplateCallback callback, int offset) { final ZenCodingGenerator applicableGenerator = findApplicableDefaultGenerator(callback, false); return applicableGenerator != null && applicableGenerator.isEnabled() && applicableGenerator.hasCompletionItem(); } | hasCompletionItem |
304,376 | void (final @NotNull String abbreviation, final @NotNull CustomTemplateCallback callback) { final ZenCodingGenerator defaultGenerator = findApplicableDefaultGenerator(callback, true); assert defaultGenerator != null; Editor editor = callback.getEditor(); CaretModel model = editor.getCaretModel(); model.runForEachCaret(... | doWrap |
304,377 | void (@NotNull String abbreviation, @NotNull CustomTemplateCallback callback, @NotNull Caret startCaret, @NotNull ZenCodingGenerator defaultGenerator) { CollectCustomTemplateCallback collect = new CollectCustomTemplateCallback(callback.getEditor(), callback.getFile()); Editor editor = callback.getEditor(); ReadAction.n... | doWrapForCaret |
304,378 | String () { return XmlBundle.message("emmet.title"); } | getTitle |
304,379 | char () { return (char)EmmetOptions.getInstance().getEmmetExpandShortcut(); } | getShortcut |
304,380 | String (@NotNull CustomTemplateCallback callback) { ZenCodingGenerator generator = findApplicableDefaultGenerator(callback, false); if (generator == null) return null; return generator.computeTemplateKey(callback); } | computeTemplateKey |
304,381 | boolean () { return true; } | supportsWrapping |
304,382 | void (CompletionParameters parameters, CompletionResultSet result) { if (!parameters.isAutoPopup()) { return; } PsiFile file = parameters.getPosition().getContainingFile(); int offset = parameters.getOffset(); Editor editor = parameters.getEditor(); final CollectCustomTemplateCallback callback = new CollectCustomTempla... | addCompletions |
304,383 | void (@NotNull LookupElementPresentation presentation) { super.renderElement(presentation); presentation.setTailText("\t Emmet abbreviation", true); } | renderElement |
304,384 | boolean (@NotNull String s) { return s.contains(SURROUNDED_TEXT_MARKER); } | containsSurroundedTextMarker |
304,385 | String (String s, int numberInIteration, int totalIterations, @Nullable String surroundedText) { String by = Integer.toString(numberInIteration + 1); StringBuilder builder = new StringBuilder(s.length()); int markerStartIndex = -1; int i = 0; int n = s.length(); while (i <= n) { char c = i < n ? s.charAt(i) : 0; if (c ... | replaceMarkers |
304,386 | String (String value, int numberInIteration, int totalIterations, String surroundedText) { String s = replaceMarkers(value, numberInIteration, totalIterations, surroundedText); return s.replace("\"", """); } | getValue |
304,387 | boolean (String str) { final int colon = str.indexOf(':'); if (colon == 0 || colon == str.length() - 1) { return false; } if (colon > 0) { final String prefix = str.substring(0, colon); final String localPart = str.substring(colon + 1); return XML11Char.isXML11ValidNCName(prefix) && XML11Char.isXML11ValidNCName(localPa... | isXML11ValidQName |
304,388 | boolean (CustomTemplateCallback callback) { FileType type = callback.getFileType(); if (type == HtmlFileType.INSTANCE || type == XHtmlFileType.INSTANCE) { return true; } return type instanceof LanguageFileType && ((LanguageFileType)type).getLanguage().isKindOf(HTMLLanguage.INSTANCE); } | isHtml |
304,389 | boolean (@NotNull String suffix) { for (ZenCodingGenerator generator : ZenCodingGenerator.getInstances()) { if (suffix.equals(generator.getSuffix())) { return true; } } for (ZenCodingFilter filter : ZenCodingFilter.getInstances()) { if (suffix.equals(filter.getSuffix())) { return true; } } return false; } | checkFilterSuffix |
304,390 | int () { return myIndex; } | getIndex |
304,391 | ZenCodingNode (ZenCodingNode node) { return node != null ? node : ZenEmptyNode.INSTANCE; } | notNullNode |
304,392 | int () { return myIndex++; } | advance |
304,393 | boolean (final TemplateToken token, TemplateImpl template) { if (template == null) { template = myGenerator.createTemplateByKey(token.getKey(), token.isForceSingleTag()); } if (template == null) { return false; } token.setTemplate(template, myCallback); return true; } | setTemplate |
304,394 | int () { return myIndex; } | getCurrentPosition |
304,395 | void (int position) { myIndex = position; } | restorePosition |
304,396 | boolean (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { return EmmetOptions.getInstance().isEmmetEnabled() && TemplateManagerImpl.isApplicable(new ZenCodingTemplate(), TemplateActionContext.surrounding(file, editor)); } | isValidForFile |
304,397 | CodeInsightActionHandler () { return new SurroundWithEmmetHandler(); } | getHandler |
304,398 | void (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { SelectionModel selectionModel = editor.getSelectionModel(); if (!selectionModel.hasSelection()) { SurroundWithHandler.selectLogicalLineContentsAtCaret(editor); } ZenCodingTemplate emmetCustomTemplate = CustomLiveTemplate.EP_NAME.findExtens... | invoke |
304,399 | boolean () { return false; } | startInWriteAction |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.