📄 tabbedsashviewlistener.java
字号:
/*
* Copyright (C) 2004-2005 Rutger M. Ovidius for use with the sancho project.
* See LICENSE.txt for license information.
*/
package sancho.view.viewFrame;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.swt.custom.SashForm;
import sancho.view.viewer.actions.FlipSashAction;
import sancho.view.viewer.actions.MaximizeAction;
public abstract class TabbedSashViewListener extends ViewListener {
protected SashForm sashForm;
public TabbedSashViewListener(TabbedSashViewFrame viewFrame) {
super(viewFrame);
this.sashForm = viewFrame.getParentSashForm();
}
public void createSashActions(IMenuManager menuManager, String string) {
menuManager.add(new Separator());
menuManager.add(new FlipSashAction(this.sashForm));
menuManager.add(new MaximizeAction(this.sashForm, this.control, string));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -