- AssetCompletionProvider: add changed command check to loadModel as well

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10090 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent e51b39a628
commit bb0a7befc5
  1. 2
      sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java

@ -172,7 +172,7 @@ public class AssetCompletionProvider implements CompletionProvider {
final int lineStartOffset = getRowFirstNonWhite(bDoc, caretOffset);
final String line = bDoc.getText(lineStartOffset, caretOffset - lineStartOffset).trim();
//TODO: more intelligence! :)
if (line.endsWith(".loadModel(\"")) {
if (hasLastCommand(line, ".loadModel(\"")) {
return AssetType.Model;
} else if (hasLastCommand(line, ".loadMaterial(\"")) {
return AssetType.Material;

Loading…
Cancel
Save