⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 propertysheetactionex.java

📁 对eclipse gef进行封装,可以生成图形化编辑器
💻 JAVA
字号:
/*******************************************************************************
 * $Header: /cvsroot/EOS6/work_dir/niegy/com.primeton.studio.gef.ui/src/com/primeton/studio/gef/ui/properties/PropertySheetActionEx.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.jface.action.Action;

/**
 * TODO此处填写 class 信息
 *
 * @author niegy (mailto:niegy@primeton.com)
 */
/*
 * 修改历史
 * $Log: PropertySheetActionEx.java,v $
 * Revision 1.1  2006/11/17 03:15:13  niegy
 * create
 * 
 */
public abstract class PropertySheetActionEx extends Action {
    protected PropertySheetViewerEx viewer;

    private String id;

    /**
     * Create a PropertySheetViewer action.
     */
    protected PropertySheetActionEx(PropertySheetViewerEx viewer, String name) {
        super(name);
        this.id = name;
        this.viewer = viewer;
    }

    /**
     * Return the unique action ID that will be
     * used in contribution managers.
     */
    public String getId() {
        return id;
    }

    /**
     * Return the PropertySheetViewer
     */
    public PropertySheetViewerEx getPropertySheet() {
        return viewer;
    }

    /**
     * Set the unique ID that should be used
     * in the contribution managers.
     */
    public void setId(String newId) {
        id = newId;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -