亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? checkinjob.java

?? The ElectricTM VLSI Design System is an open-source Electronic Design Automation (EDA) system that c
?? JAVA
字號(hào):
/* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: CheckInJob.java * Project management tool: check a cell into the repository * Written by: Steven M. Rubin * * Copyright (c) 2006 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.project;import com.sun.electric.database.geometry.GenMath.MutableInteger;import com.sun.electric.database.hierarchy.Cell;import com.sun.electric.database.hierarchy.Library;import com.sun.electric.database.topology.NodeInst;import com.sun.electric.database.variable.UserInterface;import com.sun.electric.tool.Job;import com.sun.electric.tool.JobException;import java.util.HashMap;import java.util.Iterator;/** * Class to check a cell into the Project Management repository. */public class CheckInJob extends Job{	private ProjectDB pdb;	private Library lib;	private HashMap<Cell,MutableInteger> cellsMarked;	private String comment;	private static String lastComment = null;	/**	 * Method to check the currently edited cell back into the repository.	 */	public static void checkInThisCell()	{		UserInterface ui = Job.getUserInterface();		Cell cell = ui.needCurrentCell();		if (cell == null) return;		checkIn(cell);	}	/**	 * Method to check a cell back into the repository.	 * @param cell the Cell to check back in.	 */	public static void checkIn(Cell cell)	{		// make sure there is a valid user name and repository		if (Users.needUserName()) return;		if (Project.ensureRepository()) return;			// determine all of the cells to write		HashMap<Cell,MutableInteger> cellsMarked = markRelatedCells(cell);			// check the cells for validity		for(Cell aCell : cellsMarked.keySet())		{			MutableInteger mi = cellsMarked.get(aCell);			if (mi.intValue() == 0) continue;				// find this in the project file			ProjectCell pc = Project.projectDB.findProjectCell(aCell);			if (pc == null)			{				Job.getUserInterface().showErrorMessage("Cell " + aCell.describe(true) +					" is not in the project.  Add it before checking it in or out.", "Check-In Error");				return;			}			// see if it is available			if (!pc.getOwner().equals(Project.getCurrentUserName()))			{				Job.getUserInterface().showErrorMessage("Cell " + aCell.describe(true) +					"You cannot check-in " + aCell + " because it is checked out to '" + pc.getOwner() + "', not you.", "Check-In Error");				return;			}		}			String comment = Job.getUserInterface().askForInput("Reason for checking-in " + cell.describe(true),			"Describe the Change", lastComment);		if (comment == null) return;		lastComment = comment;			new CheckInJob(Project.projectDB, cell.getLibrary(), cellsMarked, comment);	}	private CheckInJob(ProjectDB pdb, Library lib, HashMap<Cell,MutableInteger> cellsMarked, String comment)	{		super("Check in cells", Project.getProjectTool(), Job.Type.CHANGE, null, null, Job.Priority.USER);		this.pdb = pdb;		this.lib = lib;		this.cellsMarked = cellsMarked;		this.comment = comment;		startJob();	}	public boolean doIt() throws JobException	{		ProjectLibrary pl = pdb.findProjectLibrary(lib);		// lock access to the project files (throws JobException on error)		pl.lockProjectFile();		// prevent tools (including this one) from seeing the change		Project.setChangeStatus(true);		// check in the requested cells		String cellNames = "";		for(Cell cell : cellsMarked.keySet())		{			MutableInteger mi = cellsMarked.get(cell);			if (mi.intValue() == 0) continue;			if (cellNames.length() > 0) cellNames += ", ";			cellNames += cell.describe(false);		}		String error = null;		for(Cell cell : cellsMarked.keySet())		{			MutableInteger mi = cellsMarked.get(cell);			if (mi.intValue() == 0) continue;			// find this in the project file			ProjectCell pc = pdb.findProjectCell(cell);			if (pc == null)			{				error = "Cell " + cell.describe(true) + " is not in the project.  Add it before checking it in or out.";			} else			{				// see if it is available				if (!pc.getOwner().equals(Project.getCurrentUserName()))				{					error = "You cannot check-in " + cell + " because it is checked out to '" + pc.getOwner() + "', not you.";				} else				{					// write the cell out there					if (Project.writeCell(cell, pc))		// CHANGES DATABASE					{						error = "Error writing " + cell;					} else					{						pc.setOwner("");						pc.setLastOwner(Project.getCurrentUserName());						pc.setVersion(cell.getVersion());						pc.setComment(comment);						Project.markLocked(cell, true);		// CHANGES DATABASE						System.out.println("Cell " + cell.describe(true) + " checked in");					}				}			}		}		// restore change broadcast		Project.setChangeStatus(false);		// relase project file lock		pl.releaseProjectFileLock(true);		if (error != null) throw new JobException(error);		return true;	}	/**	 * Method to determine what other cells need to be checked-in with a given Cell.	 * @param cell the Cell being checked-in.	 * @return a Map of Cells to check-in (if an entry in the map, associated with a Cell,	 * is not null, that Cell should be checked-in).	 */	private static HashMap<Cell,MutableInteger> markRelatedCells(Cell cell)	{		// mark the cell to be checked-in		HashMap<Cell,MutableInteger> cellsMarked1 = new HashMap<Cell,MutableInteger>();		HashMap<Cell,MutableInteger> cellsMarked2 = new HashMap<Cell,MutableInteger>();		for(Iterator<Library> it = Library.getLibraries(); it.hasNext(); )		{			Library oLib = it.next();			for(Iterator<Cell> cIt = oLib.getCells(); cIt.hasNext(); )			{				Cell oCell = cIt.next();				cellsMarked1.put(oCell, new MutableInteger(0));				cellsMarked2.put(oCell, new MutableInteger(0));			}		}		MutableInteger mi = cellsMarked1.get(cell);		mi.setValue(1);		// look for cells above this one that must also be checked in		mi = cellsMarked2.get(cell);		mi.setValue(1);		boolean propagated = true;		while (propagated)		{			propagated = false;			for(Iterator<Library> it = Library.getLibraries(); it.hasNext(); )			{				Library oLib = it.next();				for(Iterator<Cell> cIt = oLib.getCells(); cIt.hasNext(); )				{					Cell oCell = cIt.next();					mi = cellsMarked2.get(oCell);					if (mi.intValue() == 1)					{						propagated = true;						mi.setValue(2);						for(Iterator<NodeInst> nIt = oCell.getInstancesOf(); nIt.hasNext(); )						{							NodeInst ni = nIt.next();							mi = cellsMarked2.get(ni.getParent());							if (mi.intValue() == 0) mi.setValue(1);						}					}				}			}		}		mi = cellsMarked2.get(cell);		mi.setValue(0);		int total = 0;		for(Iterator<Library> it = Library.getLibraries(); it.hasNext(); )		{			Library oLib = it.next();			for(Iterator<Cell> cIt = oLib.getCells(); cIt.hasNext(); )			{				Cell oCell = cIt.next();				mi = cellsMarked2.get(oCell);				if (mi.intValue() == 0) continue;				String owner = Project.getCellOwner(oCell);				if (owner.length() == 0) continue;				if (owner.equals(Project.getCurrentUserName()))				{					mi = cellsMarked1.get(oCell);					mi.setValue(1);					total++;				}			}		}		// look for cells below this one that must also be checked in		for(Iterator<Library> it = Library.getLibraries(); it.hasNext(); )		{			Library oLib = it.next();			for(Iterator<Cell> cIt = oLib.getCells(); cIt.hasNext(); )			{				Cell oCell = cIt.next();				mi = cellsMarked2.get(oCell);				mi.setValue(0);			}		}		mi = cellsMarked2.get(cell);		mi.setValue(1);		propagated = true;		while (propagated)		{			propagated = false;			for(Iterator<Library> it = Library.getLibraries(); it.hasNext(); )			{				Library oLib = it.next();				for(Iterator<Cell> cIt = oLib.getCells(); cIt.hasNext(); )				{					Cell oCell = cIt.next();					mi = cellsMarked2.get(oCell);					if (mi.intValue() == 1)					{						propagated = true;						mi.setValue(2);						for(Iterator<NodeInst> nIt = oCell.getNodes(); nIt.hasNext(); )						{							NodeInst ni = nIt.next();							if (!ni.isCellInstance()) continue;							mi = cellsMarked2.get(ni.getProto());							if (mi.intValue() == 0) mi.setValue(1);						}					}				}			}		}		mi = cellsMarked2.get(cell);		mi.setValue(0);		for(Iterator<Library> it = Library.getLibraries(); it.hasNext(); )		{			Library oLib = it.next();			for(Iterator<Cell> cIt = oLib.getCells(); cIt.hasNext(); )			{				Cell oCell = cIt.next();				mi = cellsMarked2.get(oCell);				if (mi.intValue() == 0) continue;				String owner = Project.getCellOwner(oCell);				if (owner.length() == 0) continue;				if (owner.equals(Project.getCurrentUserName()))				{					mi = cellsMarked1.get(oCell);					mi.setValue(1);					total++;				}			}		}		// advise of additional cells that must be checked-in		if (total > 0)		{			total = 0;			StringBuffer infstr = new StringBuffer();			for(Iterator<Library> it = Library.getLibraries(); it.hasNext(); )			{				Library oLib = it.next();				for(Iterator<Cell> cIt = oLib.getCells(); cIt.hasNext(); )				{					Cell oCell = cIt.next();					mi = cellsMarked1.get(oCell);					if (oCell == cell || mi.intValue() == 0) continue;					if (total > 0) infstr.append(", ");					infstr.append(oCell.describe(true));					total++;				}			}			System.out.println("Also checking in related cell(s): " + infstr.toString());		}		return cellsMarked1;	}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丁香天五香天堂综合| 五月婷婷久久丁香| 国产精品911| 国产亚洲精品7777| 成人午夜激情在线| 国产精品国产三级国产| 91亚洲精品乱码久久久久久蜜桃 | 日韩一区二区在线看片| 奇米色777欧美一区二区| 精品国产网站在线观看| 国产精品亚洲第一| 国产精品电影一区二区| 色婷婷综合久久久久中文一区二区| 亚洲视频在线观看三级| 欧美日韩亚洲另类| 麻豆精品一区二区综合av| 久久久天堂av| 91福利视频网站| 韩国女主播一区二区三区| 中文字幕国产一区| 欧美日韩免费视频| 国产在线麻豆精品观看| 亚洲视频一区在线| 欧美一区二区三区在线| 国产成人精品影视| 一级精品视频在线观看宜春院| 欧美二区在线观看| 成人精品gif动图一区| 午夜精品在线看| 中文字幕+乱码+中文字幕一区| 欧美亚日韩国产aⅴ精品中极品| 久久99精品久久久| 一区二区三区国产精品| 精品国产sm最大网站免费看| 91蝌蚪porny成人天涯| 老司机精品视频在线| 亚洲视频你懂的| 91精品国产91综合久久蜜臀| 国产成人aaa| 日产欧产美韩系列久久99| 中文字幕一区二区在线观看| 91精品国产综合久久久蜜臀粉嫩| www.性欧美| 精品一区二区久久久| 亚洲国产视频a| 1024国产精品| 欧美激情综合在线| 日韩欧美www| 欧美在线小视频| 99视频国产精品| 国产高清一区日本| 免播放器亚洲一区| 亚洲一区二区欧美| 1024精品合集| 国产精品国产自产拍高清av| 欧美精品一区二区高清在线观看| 欧美网站大全在线观看| 成人爱爱电影网址| 国产成人精品影院| 紧缚捆绑精品一区二区| 日本va欧美va精品发布| 亚洲成人免费视频| 亚洲乱码国产乱码精品精98午夜| 国产日韩欧美制服另类| www国产成人免费观看视频 深夜成人网| 欧美欧美欧美欧美| 欧洲视频一区二区| 94-欧美-setu| 97久久精品人人爽人人爽蜜臀| 国产不卡在线播放| 国产精品系列在线播放| 久久99精品一区二区三区| 美女视频网站久久| 日本欧美一区二区在线观看| 日韩有码一区二区三区| 亚洲成人在线免费| 亚洲成人7777| 日韩国产成人精品| 视频一区国产视频| 亚洲动漫第一页| 午夜精品一区在线观看| 视频一区欧美日韩| 久久99热99| 极品少妇xxxx精品少妇| 国产黄色成人av| 9色porny自拍视频一区二区| 色婷婷香蕉在线一区二区| 色一情一乱一乱一91av| 在线一区二区三区四区| 欧美性大战久久久久久久蜜臀| 欧美日韩亚洲综合一区| 日韩一区二区中文字幕| 国产亚洲女人久久久久毛片| 国产精品美女www爽爽爽| 亚洲日本丝袜连裤袜办公室| 亚洲国产视频一区二区| 裸体健美xxxx欧美裸体表演| 国产馆精品极品| 在线亚洲一区二区| 91精品国产麻豆国产自产在线| 欧美电视剧免费观看| 欧美经典一区二区三区| 亚洲男同性恋视频| 日韩影视精彩在线| 国产剧情一区二区| 色狠狠色狠狠综合| 日韩亚洲欧美成人一区| 久久久久久久综合| 亚洲主播在线观看| 精品一区二区日韩| 91老师片黄在线观看| 日韩视频一区二区| 最新欧美精品一区二区三区| 污片在线观看一区二区| 国产成人午夜片在线观看高清观看| 99久久99久久免费精品蜜臀| 欧美美女bb生活片| 国产欧美一区在线| 亚洲成人tv网| 国产91精品一区二区麻豆亚洲| 色88888久久久久久影院按摩| 日韩一区二区在线看| 亚洲女同女同女同女同女同69| 奇米色一区二区| 99久久久无码国产精品| 欧美videossexotv100| 1区2区3区国产精品| 精品午夜一区二区三区在线观看| 91麻豆国产福利精品| 精品国产一区二区三区忘忧草| 亚洲激情图片一区| 国产河南妇女毛片精品久久久 | 欧美日韩一区在线| 久久久久久久久免费| 日韩精品电影在线| 99精品视频一区二区| www激情久久| 日韩国产高清影视| 色婷婷综合激情| 国产精品美女一区二区| 国产在线精品一区二区夜色| 精品视频1区2区| 亚洲欧美日韩一区| 国产精品一区二区久久不卡| 欧美精品精品一区| 亚洲男人天堂av| av电影在线观看一区| 久久久99精品久久| 蜜桃av噜噜一区二区三区小说| 欧美三级一区二区| 亚洲人成在线观看一区二区| 国产999精品久久| 欧美精品一区二区三区视频| 秋霞午夜av一区二区三区| 在线亚洲精品福利网址导航| 亚洲日本在线天堂| 成人高清视频免费观看| 久久久久久黄色| 韩国女主播成人在线| 26uuu精品一区二区| 六月婷婷色综合| 日韩网站在线看片你懂的| 天堂久久久久va久久久久| 欧美伊人精品成人久久综合97| 亚洲女同一区二区| 色综合久久久久网| 亚洲女与黑人做爰| 欧美在线高清视频| 亚洲一卡二卡三卡四卡五卡| 欧美亚洲精品一区| 亚洲一区二区三区不卡国产欧美| 欧美日韩中文字幕一区二区| 亚洲综合色丁香婷婷六月图片| 欧美亚男人的天堂| 视频一区欧美日韩| 精品国产一区二区国模嫣然| 精品一区二区久久| 国产精品免费久久| 一道本成人在线| 一区二区三区 在线观看视频| 欧美日韩中文另类| 久久丁香综合五月国产三级网站 | 国产成人精品在线看| 国产精品久久一级| 99精品久久只有精品| **性色生活片久久毛片| 色狠狠av一区二区三区| 亚洲v日本v欧美v久久精品| 91精品免费在线观看| 国内精品伊人久久久久av影院 | 成人免费一区二区三区在线观看 | 免费xxxx性欧美18vr| 久久久久久久久99精品| 99久久精品免费精品国产| 亚洲综合免费观看高清完整版| 91精品国产综合久久香蕉麻豆 | 5858s免费视频成人| 韩国中文字幕2020精品| 国产精品久久久久久亚洲伦| 欧美在线免费视屏|