exportmenu.java

来自「The ElectricTM VLSI Design System is an 」· Java 代码 · 共 121 行

JAVA
121
字号
/* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: ExportMenu.java * * Copyright (c) 2003 Sun Microsystems and Static Free Software * * Electric(tm) is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Electric(tm) is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Electric(tm); see the file COPYING.  If not, write to * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, Mass 02111-1307, USA. */package com.sun.electric.tool.user.menus;import static com.sun.electric.tool.user.menus.EMenuItem.SEPARATOR;import com.sun.electric.tool.user.ExportChanges;import com.sun.electric.tool.user.dialogs.ManipulateExports;import com.sun.electric.tool.user.dialogs.ManipulatePorts;import com.sun.electric.tool.user.dialogs.NewExport;import com.sun.electric.tool.user.ui.TopLevel;/** * Class to handle the commands in the "Export" pulldown menu. */public class ExportMenu {	static EMenu makeMenu() {		/****************************** THE EXPORT MENU ******************************/		// mnemonic keys available: AB    G IJK     Q         		return new EMenu("E_xport",			new EMenuItem("_Create Export...", 'E') { public void run() {				new NewExport(TopLevel.getCurrentJFrame()); }},			SEPARATOR,			new EMenuItem("Re-Export Ever_ything") { public void run() {				ExportChanges.reExportAll(); }},			// mnemonic keys available: ABCDEFGHIJKLMNO QRST V XYZ            new EMenu("Re-Export _Selected",                new EMenuItem("_Unwired Ports Only") { public void run() {                	ExportChanges.reExportSelected(false, true); }},                new EMenuItem("Wired and Unwired _Ports") { public void run() {                	ExportChanges.reExportSelected(true, true); }},                new EMenuItem("_Wired Ports Only") { public void run() {                	ExportChanges.reExportSelected(true, false); }}),			new EMenuItem("Re-E_xport Selected Port on All Nodes") { public void run() {				ExportChanges.reExportSelectedPort(); }},			new EMenuItem("Re-Export _Power and Ground") { public void run() {				ExportChanges.reExportPowerAndGround(); }},			SEPARATOR,			// mnemonic keys available: ABCDEFGHIJKLMNO QRST V XYZ            new EMenu("Re-Export _Highlighted Area",                new EMenuItem("_Unwired Ports Only") { public void run() {                	ExportChanges.reExportHighlighted(false, false, true); }},                new EMenuItem("Wired and Unwired _Ports") { public void run() {                	ExportChanges.reExportHighlighted(false, true, true); }},                new EMenuItem("_Wired Ports Only") { public void run() {                	ExportChanges.reExportHighlighted(false, true, false); }}),			// mnemonic keys available: ABCDEFGHIJKLMNO QRST V XYZ            new EMenu("Re-Export D_eep Highlighted Area",                new EMenuItem("_Unwired Ports Only") { public void run() {                	ExportChanges.reExportHighlighted(true, false, true); }},                new EMenuItem("Wired and Unwired _Ports") { public void run() {                	ExportChanges.reExportHighlighted(true, true, true); }},                new EMenuItem("_Wired Ports Only") { public void run() {                	ExportChanges.reExportHighlighted(true, true, false); }}),			SEPARATOR,			new EMenuItem("_Delete Export") { public void run() {				ExportChanges.deleteExport(); }},			new EMenuItem("Delete Exports _on Selected") { public void run() {				ExportChanges.deleteExportsOnSelected(); }},			new EMenuItem("De_lete Exports in Highlighted Area") { public void run() {				ExportChanges.deleteExportsInArea(); }},			new EMenuItem("Mo_ve Export") { public void run() {				ExportChanges.moveExport(); }},			new EMenuItem("_Rename Export...") { public void run() {				ExportChanges.renameExport(); }},			SEPARATOR,			new EMenuItem("Summari_ze Exports") { public void run() {				ExportChanges.describeExports(true); }},			new EMenuItem("Lis_t Exports") { public void run() {				ExportChanges.describeExports(false); }},			new EMenuItem("Sho_w Exports") { public void run() {				ExportChanges.showExports(); }},			new EMenuItem("_Manipulate Exports...") { public void run() {				ManipulateExports.showDialog(); }},			new EMenuItem("_Follow Export Up Hierarchy") { public void run() {				new ExportChanges.FollowExport(); }},			SEPARATOR,			new EMenuItem("Show Ports on _Node") { public void run() {				ExportChanges.showPorts(); }},			new EMenuItem("Manip_ulate Ports on Node...") { public void run() {				ManipulatePorts.showDialog(); }});	}}

⌨️ 快捷键说明

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