📄 licensekeyaction.java
字号:
/*
* Created on 2004-9-10
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.xqtu.google.actions;
/**
* @author limeiyong
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;
import com.xqtu.google.views.SearchView;
import com.xqtu.google.wizards.LicenseKeyWizard;
public class LicenseKeyAction implements IViewActionDelegate {
private SearchView searchView;
public void init(IViewPart view) {
this.searchView = (SearchView) view;
}
public void run(IAction action) {
LicenseKeyWizard wizard = new LicenseKeyWizard();
WizardDialog dialog = new WizardDialog(searchView.getViewSite()
.getShell(), wizard);
dialog.open();
}
public void selectionChanged(IAction action, ISelection selection) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -