From bb0a7befc5a8964c7b9ac726258e932edbd55941 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Fri, 18 Jan 2013 00:11:56 +0000 Subject: [PATCH] SDK: - AssetCompletionProvider: add changed command check to loadModel as well git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10090 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/gde/core/completion/AssetCompletionProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java b/sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java index 4b96ffb40..0df02ce32 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/completion/AssetCompletionProvider.java +++ b/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;