📄 defaultsaction.java
字号:
/*******************************************************************************
* $Header: /cvsroot/EOS6/work_dir/niegy/com.primeton.studio.gef.ui/src/com/primeton/studio/gef/ui/properties/DefaultsAction.java,v 1.1 2006/11/17 03:15:13 niegy Exp $
* $Revision: 1.1 $
* $Date: 2006/11/17 03:15:13 $
*
*==============================================================================
*
* Copyright (c) 2001-2006 Primeton Technologies, Ltd.
* All rights reserved.
*
* Created on 2006-10-26
*******************************************************************************/
package com.primeton.studio.gef.ui.properties;
import org.eclipse.ui.PlatformUI;
/**
* TODO此处填写 class 信息
*
* @author niegy (mailto:niegy@primeton.com)
*/
/*
* 修改历史
* $Log: DefaultsAction.java,v $
* Revision 1.1 2006/11/17 03:15:13 niegy
* create
*
*/
public class DefaultsAction extends PropertySheetActionEx {
/**
* Create the Defaults action. This action is used to set
* the properties back to their default values.
*
* @param viewer the viewer
* @param name the name
*/
public DefaultsAction(PropertySheetViewerEx viewer, String name) {
super(viewer, name);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
IPropertiesHelpContextIds.DEFAULTS_ACTION);
}
/**
* Reset the properties to their default values.
*/
public void run() {
getPropertySheet().deactivateCellEditor();
getPropertySheet().resetProperties();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -