Permalink
Browse files

Code completion and include file creation

The plugin now offers code completion for the include tag.
It will list all .ss files it finds in Includes directories in the project.
If a file name is typed and it cannot be found a quick fix is offered that
will create the file for you in the directory of choice.
This will default to the closest Includes directory it can find based on the
current file you're in. It will look in the current dir and one dir up.
  • Loading branch information...
1 parent 7464d1d commit 23c1fc02db221fedf38ae7ff1f2dbad1b1710689 @MarcusDalgren MarcusDalgren committed Apr 1, 2013
Showing with 445 additions and 266 deletions.
  1. +3 −1 META-INF/plugin.xml
  2. +4 −1 gen/com/GeneratedParserUtilBase.java
  3. +6 −7 gen/com/raket/silverstripe/parser/SilverStripeParser.java
  4. +3 −2 gen/com/raket/silverstripe/psi/SilverStripeOuterWrapper.java
  5. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsBadBlockStatement.java
  6. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsBlockContinueStatement.java
  7. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsBlockEndStatement.java
  8. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsBlockSimpleStatement.java
  9. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsBlockStartStatement.java
  10. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsBlockStatement.java
  11. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsCommentStatement.java
  12. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsFragment.java
  13. +0 −2 gen/com/raket/silverstripe/psi/SilverStripeSsVarStatement.java
  14. +2 −3 gen/com/raket/silverstripe/psi/SilverStripeTypes.java
  15. +2 −2 gen/com/raket/silverstripe/psi/SilverStripeVisitor.java
  16. +4 −6 gen/com/raket/silverstripe/psi/impl/SilverStripeOuterWrapperImpl.java
  17. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsBadBlockStatementImpl.java
  18. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsBlockContinueStatementImpl.java
  19. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsBlockEndStatementImpl.java
  20. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsBlockSimpleStatementImpl.java
  21. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsBlockStartStatementImpl.java
  22. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsBlockStatementImpl.java
  23. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsCommentStatementImpl.java
  24. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsFragmentImpl.java
  25. +2 −7 gen/com/raket/silverstripe/psi/impl/SilverStripeSsVarStatementImpl.java
  26. BIN idea-silverstripe.jar
  27. +2 −2 src/com/raket/silverstripe/SilverStripeLexer.java
  28. +26 −0 src/com/raket/silverstripe/editor/actions/SilverStripeTypedHandler.java
  29. +90 −0 src/com/raket/silverstripe/editor/annotations/CreateIncludeQuickFix.java
  30. +22 −30 src/com/raket/silverstripe/editor/annotations/SilverStripeIncludeAnnotator.java
  31. +1 −0 src/com/raket/silverstripe/editor/braces/SilverStripeBraceMatcher.java
  32. +43 −0 src/com/raket/silverstripe/editor/completions/SilverStripeCompletionContributor.java
  33. +5 −6 src/com/raket/silverstripe/editor/lines/SilverStripeLineMarkerProvider.java
  34. +18 −14 src/com/raket/silverstripe/file/SilverStripeFileUtil.java
  35. +9 −5 src/com/raket/silverstripe/parser/SilverStripeBaseParser.java
  36. +4 −14 src/com/raket/silverstripe/parser/SilverStripeParserDefinition.java
  37. +11 −0 src/com/raket/silverstripe/psi/SilverStripeIncludeFile.java
  38. +13 −0 src/com/raket/silverstripe/psi/SilverStripeNamedElement.java
  39. +1 −0 src/com/raket/silverstripe/psi/SilverStripeTypes.java
  40. +62 −0 src/com/raket/silverstripe/psi/impl/SilverStripeIncludeImpl.java
  41. +12 −0 src/com/raket/silverstripe/psi/impl/SilverStripeNamedElementImpl.java
  42. +64 −0 src/com/raket/silverstripe/psi/references/SilverStripeReference.java
  43. +0 −75 src/com/raket/silverstripe/references/SilverStripePsiReferenceProvider.java
  44. +20 −17 src/com/raket/silverstripe/references/SilverStripeReferenceContributor.java
View
@@ -94,8 +94,10 @@
<enterHandlerDelegate implementation="com.raket.silverstripe.editor.actions.SilverStripeEnterHandler"/>
<!--
<lang.syntaxHighlighterFactory key="SilverStripe" implementationClass="com.raket.silverstripe.editor.highlighting.SilverStripeSyntaxHighlighterFactory"/>
- -->
+ <psi.referenceContributor language="SilverStripe" implementation="com.raket.silverstripe.references.SilverStripeReferenceContributor"/>
+ -->
<codeInsight.lineMarkerProvider language="SilverStripe" implementationClass="com.raket.silverstripe.editor.lines.SilverStripeLineMarkerProvider"/>
+ <completion.contributor language="SilverStripe" implementationClass="com.raket.silverstripe.editor.completions.SilverStripeCompletionContributor"/>
<annotator language="SilverStripe" implementationClass="com.raket.silverstripe.editor.annotations.SilverStripeIncludeAnnotator"/>
</extensions>
</idea-plugin>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 23c1fc0

Please sign in to comment.