browseComposite.setLayout(new GridLayout(2,false));
modelCombo = new CCombo(browseComposite, SWT.BORDER|SWT.READ_ONLY);
final WidgetSupport support = new WidgetSupportImpl();
- SimanticsUI.getSession().asyncRequest(new ReadRequest() {
+ Simantics.getSession().asyncRequest(new ReadRequest() {
@Override
public void run(ReadGraph graph) throws DatabaseException {
- Resource project = SimanticsUI.getProject().get();
+ Resource project = Simantics.getProject().get();
modelToComboListener = new ModelToComboListener(modelCombo) {
@Override
public Resource getCurrentModel() {
if (res == null)
return;
try {
- final Resource selected = SimanticsUI.getSession().syncRequest(new Read<Resource>() {
+ final Resource selected = Simantics.getSession().syncRequest(new Read<Resource>() {
@Override
public Resource perform(ReadGraph graph) throws DatabaseException {
try {
return;
}
ISelection realSelection = new StructuredSelection(selected);
- objectExplorer.setInput(SimanticsUI.getSessionContext(), realSelection);
- propertyExplorer.setInput(SimanticsUI.getSessionContext(), realSelection);
+ objectExplorer.setInput(Simantics.getSessionContext(), realSelection);
+ propertyExplorer.setInput(Simantics.getSessionContext(), realSelection);
Simantics.getSession().asyncRequest(new ReadRequest() {
@Override
if (model.equals(r)) {
modelCombo.select(i);
ISelection realSelection = new StructuredSelection(currentModel);
- browseExplorer.setInput(SimanticsUI.getSessionContext(), realSelection);
+ browseExplorer.setInput(Simantics.getSessionContext(), realSelection);
return;
}
}
modelCombo.select(-1);
ISelection realSelection = new StructuredSelection();
- browseExplorer.setInput(SimanticsUI.getSessionContext(), realSelection);
+ browseExplorer.setInput(Simantics.getSessionContext(), realSelection);
}
@SuppressWarnings("rawtypes")