📄 record.java
字号:
package com.intotherain.examples.SimpleCellEditor.model;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.model.IWorkbenchAdapter;
import org.eclipse.ui.views.properties.IPropertySource;
import com.intotherain.examples.SimpleCellEditor.properties.RecordProperties;
/**
*
* @author intotherain
*
*/
public class Record implements IAdaptable {
private String id;
private String usrName;
private String totalTime;
private IETypeEnum ieType = IETypeEnum.MisrcoSoft_IE;
public Record(String newId, String name, String time, IETypeEnum ie ) {
id = newId;
usrName = name;
totalTime = time;
ieType = ie;
}
public IETypeEnum getIeType() {
return ieType;
}
public void setIeType(IETypeEnum ieType) {
this.ieType = ieType;
}
public String getTotalTime() {
return totalTime;
}
public void setTotalTime(String totalTime) {
this.totalTime = totalTime;
}
public void setId(String id) {
this.id = id;
}
public String getId() {
return id;
}
public String getUsrName() {
return usrName;
}
public Object getAdapter(Class adapter) {
if (adapter == IWorkbenchAdapter.class)
return this;
if (adapter == IPropertySource.class) {
return new RecordProperties(this);
}
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -