private StackLayout stackLayout;
+ private Label label;
+
@PostConstruct
public void create(Composite parent, IEclipseContext context) {
if(CdmStore.isActive() && conversation==null){
stackLayout = new StackLayout();
parent.setLayout(stackLayout);
matrix = new CharacterMatrix(parent, this);
- Label label = new Label(parent, SWT.NONE);
+ label = new Label(parent, SWT.NONE);
label.setText(Messages.CharacterMatrixPart_LOADING_MATRIX);
stackLayout.topControl = label;
ContextInjectionFactory.inject(matrix, context);
|| descriptiveDataSet.getDescriptiveSystem().getTermType()==null
|| !descriptiveDataSet.getDescriptiveSystem().getTermType().equals(TermType.Character)){
MessagingUtils.informationDialog(Messages.CharacterMatrixPart_COULD_NOT_OPEN, Messages.CharacterMatrixPart_COULD_NOT_OPEN_MESSAGE);
+ loadingFailed();
return;
}
matrix.initDescriptiveDataSet();
return propertyMap;
}
- public void loadingDone() {
+ private void loadingFailed() {
+ label.setText("Loading failed");
+ }
+
+ void loadingDone() {
stackLayout.topControl = matrix;
matrix.getParent().layout();
}