Aslak Knutsen created FORGE-1847:
------------------------------------
Summary: UIContext.getSelection() always return null
Key: FORGE-1847
URL:
https://issues.jboss.org/browse/FORGE-1847
Project: Forge
Issue Type: Bug
Components: UI - Shell
Affects Versions: 2.5.0.Final
Reporter: Aslak Knutsen
{code}
value.setDefaultValue(new Callable<JavaResource>() {
@Override
public JavaResource call() throws Exception {
Object selected = builder.getUIContext().getSelection();
if(selected != null && selected instanceof JavaResource) {
return (JavaResource)selected;
}
return null;
}
});
{code}
Object selected is always null.
Using builder.getUIContext().getInitialSelection().get() works as expected.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)