tablemouseadapter.java
来自「一个eclipse插件源代码。用于web开发」· Java 代码 · 共 70 行
JAVA
70 行
/*
* $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/bind/listeners/TableMouseAdapter.java,v 1.1.1.1 2004/07/01 09:07:42 wang_j Exp $
* $Revision: 1.1.1.1 $
* $Date: 2004/07/01 09:07:42 $
*
* ====================================================================
*
* The NanJing HopeRun(IT-FOREST) Software License, Version 2.0.0
*
* Copyright 2003-2004 by NanJing HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and
* IT Forest Corporation
* All rights reserved.
*
* This software is the confidential and proprietary information of
* HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
* You shall not disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into with
* HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
*/
package com.webpump.ui.bind.listeners;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Vector;
import org.eclipse.core.resources.IFile;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.TableItem;
import com.webpump.ui.bind.editors.BindEditor;
import com.webpump.ui.bind.editors.ParameterValue;
import com.webpump.ui.bind.data.*;
import com.webpump.ui.bind.dialog.*;
import com.webpump.ui.perspective.WebpumpIDEPlugin;
import com.webpump.ui.module.model.Model;
import com.webpump.ui.module.model.Modules;
import com.webpump.ui.module.model.Page;
/**
* Class for table MouseAdapter .
*
* @author luo_sa
* @version 2.0.0 2004-2-11
*/
public class TableMouseAdapter extends MouseAdapter {
/** editor to which this TableMouseAdapter listen */
private BindEditor m_objBindEditor;
/**
* constructor
* @param editor
*/
public TableMouseAdapter(BindEditor editor){
m_objBindEditor = editor ;
}
/**
* achieve operations when mouse double click on table
*
* @param e mouse event type
*/
public void mouseDoubleClick(MouseEvent e) {
int index = m_objBindEditor.getTable().getSelectionIndex();
//取得被双击的柄
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?