?? refreshcontactsviewactiondelegate.java
字號:
package gr.osmosis.rcpsamples.contact.actions;
import gr.osmosis.rcpsamples.contact.View;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;
public class RefreshContactsViewActionDelegate implements IViewActionDelegate {
private IViewPart view;
public void init(IViewPart view) {
this.view=view;
}
public void run(IAction action) {
if (this.view!=null){
((View) this.view).update();
}
}
public void selectionChanged(IAction action, ISelection selection) {
// TODO Auto-generated method stub
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -