use of main.gui.SessionWindow in project Eidolons by IDemiurge.
the class ArcaneTower method selectEntity.
public static void selectEntity(ArcaneEntity entity) {
SessionWindow window = ArcaneTower.getSessionWindow(entity);
window.getInfoPanel().selectType(entity.getType());
setSelectedEntity(entity);
window.refresh();
window.getGoalsPanel().getSelectedPanel().refresh();
}
use of main.gui.SessionWindow in project Eidolons by IDemiurge.
the class SessionMaster method createSessionFromText.
public static Session createSessionFromText(String text, boolean mergeWithLast) {
String typeName = getSessionName(text);
Entity oldType = null;
if (mergeWithLast) {
oldType = ZeitMaster.getLatest(AT_OBJ_TYPE.SESSION, true);
typeName = oldType.getName();
typeName = NameMaster.getUniqueVersionedName(DataManager.getTypes(AT_OBJ_TYPE.SESSION), typeName);
}
typeName = DialogMaster.inputText("Session/Outcome Name?", typeName);
// TODO fill out - deadline, priority, type
ObjType type = new ObjType(typeName, AT_OBJ_TYPE.SESSION);
// type.setGroup(group, false);
if (oldType != null) {
type.copyValues(oldType, copiedVals);
type.copyValues(oldType, ContentManager.getValuesForType(AT_OBJ_TYPE.SESSION.getName(), false));
}
Session session = getNewSession(type, false);
CaptureParser.initSessionCapture(session, text);
session.setLocked(true);
// initSession(session);
session.toBase();
SessionWindow window = showInWindow(session);
window.refresh();
return session;
}
use of main.gui.SessionWindow in project Eidolons by IDemiurge.
the class SessionMaster method showInWindow.
private static SessionWindow showInWindow(Session session) {
SessionWindow window = new SessionWindow(session);
window.refresh();
session.setWindow(window);
// session.setStatus();
// session.start();
session.setProperty(AT_PROPS.SESSION_TYPE, PENDING);
session.setParam(AT_PARAMS.TIME_LAST_MODIFIED, ZeitMaster.getTime());
VersionMaster.saveVersionFolder();
// start timers, set status,
return window;
}
Aggregations