📄 session.java
字号:
/*******************************************************************************
* Copyright (c) 2004, 2005 Jean-Michel Lemieux, Jeff McAffer and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Hyperbola is an RCP application developed for the book
* Eclipse Rich Client Platform -
* Designing, Coding, and Packaging Java Applications
*
* Contributors:
* Jean-Michel Lemieux and Jeff McAffer - initial implementation
*******************************************************************************/
package org.eclipsercp.hyperbola.model;
public class Session {
private ContactsGroup rootGroup;
private String name;
private String server;
public Session() {
}
public void setSessionDescription(String name, String server) {
this.name = name;
this.server = server;
}
public ContactsGroup getRoot() {
if (rootGroup == null)
rootGroup = new ContactsGroup(null, "RootGroup");
return rootGroup;
}
public String getName() {
return name;
}
public String getServer() {
return server;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -