Skip to content

Commit

Permalink
Update to v0.1.4. Compiled on newer IntelliJ platform, to prevent plu…
Browse files Browse the repository at this point in the history
…gin crash.
  • Loading branch information
Saigut committed Feb 19, 2019
1 parent c378030 commit 1b66f0d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<idea-plugin url="https://github.com/Saigut/intellij-scheme">
<name>Scheme</name>
<id>intellij-scheme</id>
<description>Plugin for Scheme language support</description>
<description>Plugin for supporting Scheme programming language</description>
<category>Custom Languages</category>
<version>0.1.3</version>
<version>0.1.4</version>
<vendor url="https://saigut.com">Tony Saigut</vendor>
<depends>com.intellij.modules.lang</depends>
<depends>com.intellij.modules.platform</depends>
Expand Down
4 changes: 2 additions & 2 deletions src/schemely/compiler/SchemeCompilerSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
@State(
name = "SchemeCompilerSettings",
storages = {
@Storage(id = "default", file = "$PROJECT_FILE$")
,@Storage(id = "dir", file = "$PROJECT_CONFIG_DIR$/scheme_compiler.xml", scheme = StorageScheme.DIRECTORY_BASED)
@Storage(file = "$PROJECT_FILE$")
,@Storage(file = "$PROJECT_CONFIG_DIR$/scheme_compiler.xml", scheme = StorageScheme.DIRECTORY_BASED)
}
)
public class SchemeCompilerSettings implements PersistentStateComponent<SchemeCompilerSettings>, ProjectComponent
Expand Down
4 changes: 4 additions & 0 deletions src/schemely/conversion/JavaToSchemeAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class JavaToSchemeAction extends AnAction
@Override
public void update(AnActionEvent e)
{
/*
Presentation presentation = e.getPresentation();
try
Expand Down Expand Up @@ -43,11 +44,13 @@ public void update(AnActionEvent e)
presentation.setEnabled(false);
presentation.setVisible(false);
}
*/
}

@Override
public void actionPerformed(AnActionEvent e)
{
/*
Object data = e.getDataContext().getData(DataConstants.PSI_FILE);
if (data instanceof PsiJavaFile)
{
Expand Down Expand Up @@ -83,5 +86,6 @@ public void run()
}
});
}
*/
}
}
3 changes: 1 addition & 2 deletions src/schemely/findUsages/SchemeIdentifierSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.intellij.psi.search.*;
import com.intellij.psi.search.searches.ReferencesSearch;
import com.intellij.util.Processor;
import com.intellij.util.QueryExecutor;
import com.intellij.util.text.StringSearcher;
import org.jetbrains.annotations.NotNull;
import schemely.psi.impl.symbols.SchemeIdentifier;
Expand All @@ -29,7 +28,7 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;

public class SchemeIdentifierSearch implements QueryExecutor<PsiReference, ReferencesSearch.SearchParameters>
public class SchemeIdentifierSearch
{
public SchemeIdentifierSearch()
{
Expand Down
2 changes: 0 additions & 2 deletions src/schemely/psi/impl/symbols/SchemeIdentifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

public class SchemeIdentifier extends SchemePsiElementBase implements PsiReference, PsiNamedElement
{
private static final IdentifierResolver RESOLVER = new IdentifierResolver();

public SchemeIdentifier(ASTNode node)
{
super(node, "Identifier");
Expand Down
5 changes: 2 additions & 3 deletions src/schemely/settings/SchemeProjectSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@

@State(
name = SchemeConfigurable.PROJECT_SETTINGS,
storages = {@Storage(id = "default", file = "$PROJECT_FILE$"), @Storage(id = "dir",
file = "$PROJECT_CONFIG_DIR$/scheme_project.xml",
scheme = StorageScheme.DIRECTORY_BASED)})
storages = {@Storage(file = "$PROJECT_FILE$"), @Storage(file = "$PROJECT_CONFIG_DIR$/scheme_project.xml",
scheme = StorageScheme.DIRECTORY_BASED)})
public class SchemeProjectSettings implements PersistentStateComponent<SchemeProjectSettings>
{
public SchemeImplementation schemeImplementation = SchemeImplementation.SISC_1_16_6;
Expand Down

0 comments on commit 1b66f0d

Please sign in to comment.