use of org.kie.workbench.common.stunner.core.client.session.ClientSession in project kie-wb-common by kiegroup.
the class ProjectDiagramExplorerScreen method updateTitle.
private void updateTitle() {
final ClientSession session = clientSessionManager.getCurrentSession();
updateTitle(session);
}
use of org.kie.workbench.common.stunner.core.client.session.ClientSession in project kie-wb-common by kiegroup.
the class ProjectMessagesListener method fireNotification.
void fireNotification(final AbstractNotification notification) {
final ClientSession session = clientSessionManager.getCurrentSession();
final Path path = session.getCanvasHandler().getDiagram().getMetadata().getPath();
final SystemMessage systemMessage = new SystemMessage();
final ArrayList<SystemMessage> messagesList = new ArrayList<>();
switch(notification.getType()) {
case ERROR:
systemMessage.setLevel(Level.ERROR);
break;
case WARNING:
systemMessage.setLevel(Level.WARNING);
break;
case INFO:
systemMessage.setLevel(Level.INFO);
break;
}
systemMessage.setText(notification.getMessage());
systemMessage.setPath(path);
messagesList.add(systemMessage);
PublishMessagesEvent messages = new PublishMessagesEvent();
messages.setMessagesToPublish(messagesList);
publishMessagesEvent.fire(messages);
}
use of org.kie.workbench.common.stunner.core.client.session.ClientSession in project kie-wb-common by kiegroup.
the class ProjectDiagramPropertiesScreen method onOpen.
@OnOpen
public void onOpen() {
log(Level.INFO, "Opening ProjectDiagramPropertiesScreen.");
final ClientSession current = clientSessionManager.getCurrentSession();
handleSession(current);
}
Aggregations