forked from damonkohler/sl4a
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to issue 616 (editor npe in autoclose on unsupported scripts)
This time for sure...
- Loading branch information
rjmatthews62
committed
Mar 26, 2012
1 parent
19e63f9
commit 0351661
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,10 @@ | |
* | ||
* @author [email protected] (Igor Karp) | ||
*/ | ||
public abstract class Language { | ||
public class Language { | ||
|
||
private final static Map<Character, String> AUTO_CLOSE_MAP = | ||
buildAutoCloseMap('[', "[]", '{', "{}", '(', "()", '\'', "''", '"', "\"\""); | ||
private final static Map<Character, String> AUTO_CLOSE_MAP = buildAutoCloseMap('[', "[]", '{', | ||
"{}", '(', "()", '\'', "''", '"', "\"\""); | ||
|
||
/** Returns the initial template for newly created script. */ | ||
public String getContentTemplate() { | ||
|
@@ -67,8 +67,8 @@ public String autoClose(char token) { | |
|
||
/** Returns the RPC call text with given parameter values. */ | ||
public final String getRpcText(String content, MethodDescriptor rpc, String[] values) { | ||
return getMethodCallText(getRpcReceiverName(content), rpc.getName(), rpc | ||
.getParameterValues(values)); | ||
return getMethodCallText(getRpcReceiverName(content), rpc.getName(), | ||
rpc.getParameterValues(values)); | ||
} | ||
|
||
/** Returns the RPC receiver found in the given 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
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