Skip to content

Commit

Permalink
minor code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
idegtiarenko committed Nov 21, 2015
1 parent 0cf851e commit bba1cac
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/fileTemplates/ConcordionSpec.html.ft
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html xmlns:concordion="http://www.concordion.org/2007/concordion">
<html xmlns:c="http://www.concordion.org/2007/concordion">
<head>
<title>${NAME}</title>
</head>
Expand Down
1 change: 1 addition & 0 deletions src/org/concordion/internal/MultiPattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.List;
import java.util.regex.Pattern;

//This class is copied from concordion library so that I do not need to make 1mb dependency on concordion for it
public class MultiPattern {

private final List<Pattern> patterns;
Expand Down
2 changes: 1 addition & 1 deletion src/org/concordion/internal/SimpleEvaluator.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.concordion.internal;

//This class is copied from concordion library so that I do not need to make 1mb dependency on it
//This class is copied from concordion library so that I do not need to make 1mb dependency on concordion for it
public class SimpleEvaluator {

private static final String METHOD_NAME_PATTERN = "[a-z][a-zA-Z0-9_]*";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.concordion.plugin.idea;
package org.concordion.plugin.idea.autocomplete;

import com.intellij.codeInsight.completion.JavaLookupElementBuilder;
import com.intellij.codeInsight.completion.util.MethodParenthesesHandler;
Expand All @@ -7,6 +7,8 @@
import com.intellij.icons.AllIcons;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.*;
import org.concordion.plugin.idea.ConcordionPsiUtils;
import org.concordion.plugin.idea.ConcordionVariableUsage;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.intellij.util.ProcessingContext;
import org.concordion.plugin.idea.ConcordionElementPattern;
import org.concordion.plugin.idea.Namespaces;
import org.concordion.plugin.idea.lang.ConcordionIcons;
import org.jetbrains.annotations.NotNull;

import java.util.Collection;
Expand Down Expand Up @@ -96,7 +97,7 @@ private static Iterable<LookupElement> forCommands(Namespaces namespace, String

return commands.stream()
.map(c -> prefix + ':' + c)
.map(c -> LookupElementBuilder.create(c).withInsertHandler(handler))
.map(c -> LookupElementBuilder.create(c).withInsertHandler(handler).withIcon(ConcordionIcons.ICON))
.collect(toList());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.jetbrains.annotations.NotNull;

import static com.intellij.patterns.PlatformPatterns.*;
import static org.concordion.plugin.idea.CompleteInformation.*;
import static org.concordion.plugin.idea.autocomplete.CompleteInformation.*;
import static org.concordion.plugin.idea.ConcordionElementPattern.*;

public class ConcordionExpressionCompletionContributor extends CompletionContributor {
Expand Down

0 comments on commit bba1cac

Please sign in to comment.