All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.ide.spl.control.EditorRightClicked Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20240823
Show newest version
package com.scudata.ide.spl.control;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import com.scudata.ide.common.GC;

/**
 * ????༭?????Ҽ?????¼?
 *
 */
public class EditorRightClicked extends MouseAdapter {
	/**
	 * ????ؼ?
	 */
	private SplControl control;

	/**
	 * ???캯??
	 * 
	 * @param control
	 *            ????ؼ?
	 */
	public EditorRightClicked(SplControl control) {
		this.control = control;
	}

	/**
	 * ??갴??
	 */
	public void mousePressed(MouseEvent e) {
		showPopup(e);
	}

	/**
	 * ????ͷ?
	 */
	public void mouseReleased(MouseEvent e) {
		showPopup(e);
	}

	/**
	 * ??ʾ?Ҽ??????˵?
	 * 
	 * @param e
	 */
	void showPopup(MouseEvent e) {
		if (e.isPopupTrigger()) {
			control.fireRightClicked(e, GC.SELECT_STATE_CELL);
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy