📄 customereditorinput.java
字号:
package myrcp.intro;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
public class CustomerEditorInput implements IEditorInput {
Customer customer;
public CustomerEditorInput(Customer customer){
this.customer=customer;
}
public boolean exists() {
// TODO Auto-generated method stub
return customer!=null;
}
public ImageDescriptor getImageDescriptor() {
// TODO Auto-generated method stub
return null;
}
public String getName() {
// TODO Auto-generated method stub
return "";
}
public IPersistableElement getPersistable() {
// TODO Auto-generated method stub
return null;
}
public String getToolTipText() {
// TODO Auto-generated method stub
return "CustomerEditor";
}
public Object getAdapter(Class adapter) {
// TODO Auto-generated method stub
return null;
}
public Customer getCustomer(){
return customer;
}
public void SetCustomer(Customer customer){
this.customer=customer;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -