Skip to content

Commit

Permalink
[ui] Give proposals on field's type.
Browse files Browse the repository at this point in the history
close #510

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Nov 10, 2016
1 parent e8f9b89 commit a2f355c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -245,7 +245,7 @@
<extension
point="org.eclipse.ui.intro.quicklinks">
<command
id="org.eclipse.ui.newWizard(newWizardId=io.sarl.examples.helloworld)"
id="org.eclipse.ui.newWizard(newWizardId=io.sarl.examples.helloworld)"
description="%HelloworldExample_Description"
label="%HelloworldExample_Name"
icon="platform:/plugin/org.eclipse.ui.intro.universal/themes/circles/graphics/icons/ctool/sa_onesample48.gif">
Expand Down
Expand Up @@ -77,6 +77,7 @@
import io.sarl.lang.sarl.SarlCapacityUses;
import io.sarl.lang.sarl.SarlClass;
import io.sarl.lang.sarl.SarlEvent;
import io.sarl.lang.sarl.SarlField;
import io.sarl.lang.sarl.SarlInterface;
import io.sarl.lang.sarl.SarlRequiredCapacity;
import io.sarl.lang.sarl.SarlSkill;
Expand Down Expand Up @@ -470,6 +471,9 @@ public void completeJvmParameterizedTypeReference_Type(EObject model, Assignment
completeImplements(model, context, acceptor);
}
}
} else if (model instanceof SarlField) {
completeJavaTypes(context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, true,
getQualifiedNameValueConverter(), createVisibilityFilter(context), acceptor);
} else {
super.completeJvmParameterizedTypeReference_Type(model, assignment, context, acceptor);
}
Expand Down

0 comments on commit a2f355c

Please sign in to comment.