summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d4bcb3)
raw | patch | inline | side by side (parent: 0d4bcb3)
author | ishmal <ishmal@users.sourceforge.net> | |
Tue, 1 Apr 2008 19:31:19 +0000 (19:31 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Tue, 1 Apr 2008 19:31:19 +0000 (19:31 +0000) |
src/bind/java/org/inkscape/script/ScriptConsole.java | patch | blob | history |
diff --git a/src/bind/java/org/inkscape/script/ScriptConsole.java b/src/bind/java/org/inkscape/script/ScriptConsole.java
index 890d78189184be78e9773d226c3f272556bdb3c1..c7d71b5756c0b2a3c5b351a1bf1e9b710f841eec 100644 (file)
{
for (ScriptEngine engine : engines)
{
- if (langName.equalsIgnoreCase(engine.getFactory().getLanguageName()))
- {
- setEngine(engine);
- return true;
+ for(String name: engine.getFactory().getNames())
+ {
+ if (langName.equalsIgnoreCase(name))
+ {
+ setEngine(engine);
+ return true;
+ }
}
}
return false;
trace("ScriptEngineFactory Info");
String engName = factory.getEngineName();
String engVersion = factory.getEngineVersion();
+ String fullEngName = engName + " (" + engVersion + ")";
String langName = factory.getLanguageName();
String langVersion = factory.getLanguageVersion();
- trace("\tScript Engine: %s (%s)", engName, engVersion);
+ String fullLangName = langName + " (" + langVersion + ")";
+ trace("\t" + fullEngName);
List<String> engNames = factory.getNames();
for(String name: engNames)
{
- trace("\tEngine Alias: %s", name);
+ trace("\tEngine Alias: " + name);
}
- trace("\tLanguage: %s (%s)", langName, langVersion);
+ trace("\t" + fullLangName);
engines.add(factory.getScriptEngine());
- //JLabel item = new JLabel(langName);
- engineBox.addItem(langName);
+ engineBox.addItem(fullLangName + " / " + fullEngName);
}
if (engineBox.getItemCount()>0)
{