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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? addlibraryjob.java

?? The ElectricTM VLSI Design System is an open-source Electronic Design Automation (EDA) system that c
?? JAVA
字號:
/* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: AddLibraryJob.java * Project management tool: Add a library to the Project Management 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.hierarchy.Cell;import com.sun.electric.database.hierarchy.Library;import com.sun.electric.database.topology.NodeInst;import com.sun.electric.tool.Job;import com.sun.electric.tool.JobException;import com.sun.electric.tool.user.ui.WindowFrame;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.PrintStream;import java.util.HashSet;import java.util.Iterator;import java.util.Set;/** * This class adds the current library to the Project Management repository. */public class AddLibraryJob extends Job{	private Set<Library> libList;	private ProjectDB pdb;	/**	 * Method to add the current library to the repository.	 */	public static void addThisLibrary()	{		addLibrary(Library.getCurrent());	}	/**	 * Method to add a library to the repository.	 * Finds dependent libraries and asks if they, too, should be added.	 * @param lib the Library to add to the repository.	 */	public static void addLibrary(Library lib)	{		// make sure there is a valid user name and repository		if (Users.needUserName()) return;		if (Project.ensureRepository()) return;		// verify that project is to be built		boolean response = Job.getUserInterface().confirmMessage(			"Are you sure you want to enter this library into the repository?");		if (!response) return;		// prepare a list of libraries to add to the repository		Set<Library> yesList = new HashSet<Library>();		yesList.add(lib);		// include dependent libraries		Set<Library> noList = new HashSet<Library>();		includeDependentLibraries(lib, yesList, noList, false);		// add them to the repository		new AddLibraryJob(yesList);	}	/**	 * Method to add all libraries to the repository.	 */	public static void addAllLibraries()	{		// make sure there is a valid user name and repository		if (Users.needUserName()) return;		if (Project.ensureRepository()) return;		// verify that projects are to be built		boolean response = Job.getUserInterface().confirmMessage(			"Are you sure you want to enter libraries into the repository?");		if (!response) return;		Set<Library> libList = new HashSet<Library>();		for(Iterator<Library>it = Library.getLibraries(); it.hasNext(); )		{			Library lib = it.next();			if (lib.isHidden()) continue;			if (Project.isLibraryManaged(lib)) continue;			libList.add(lib);		}		new AddLibraryJob(libList);	}	private AddLibraryJob(Set<Library> libList)	{		super("Add Library", Project.getProjectTool(), Job.Type.CHANGE, null, null, Job.Priority.USER);		this.libList = libList;		this.pdb = Project.projectDB;		startJob();	}	public boolean doIt() throws JobException	{		for(Library aLib : libList)		{			ProjectLibrary pl = pdb.findProjectLibrary(aLib);			if (!pl.isEmpty()) continue;			addLibraryNow(aLib, pl);		// CHANGES DATABASE		}		fieldVariableChanged("pdb");		return true;	}    public void terminateOK()    {    	// take the new version of the project database from the server    	Project.projectDB = pdb;		// update explorer tree		WindowFrame.wantToRedoLibraryTree();    	// advise the user of these libraries		Job.getUserInterface().showInformationMessage(			"Libraries have been checked-into the repository and marked appropriately.",			"Libraries Added");    }	/**	 * Method to recursively check library contents to make sure all dependent libraries are	 * considered for inclusion in the repository.	 * @param lib the Library being added to the repository.	 * @param yesList a set of libraries that will be added.	 * @param noList a set of libraries that will not be added.	 * @param yesToAll true if dependent libraries should be included without asking.	 */	private static void includeDependentLibraries(Library lib, Set<Library>yesList, Set<Library>noList, boolean yesToAll)	{		// see if dependent libraries should also be added		for(Iterator<Cell>it = lib.getCells(); it.hasNext(); )		{			Cell cell = it.next();			for(Iterator<NodeInst>nIt = cell.getNodes(); nIt.hasNext(); )			{				NodeInst ni = nIt.next();				if (ni.isCellInstance())				{					Cell subCell = (Cell)ni.getProto();					Library oLib = subCell.getLibrary();					if (oLib == lib) continue;					// external library found: see if it is in the "yes" or "no" lists					if (yesList.contains(oLib)) continue;					if (noList.contains(oLib)) continue;					// see if it is already managed					if (Project.isLibraryManaged(oLib)) continue;					// ask the user if this library should also be added to the repository					int ret = 0;					if (!yesToAll)					{						String [] options = {"Yes", "No", "Yes to All"};						ret = Job.getUserInterface().askForChoice(							"Do you also want to add dependent library " + oLib.getName() + " to the repository?",							"Add Dependent Library To Repository", options, "Yes");							}					if (ret == 1)					{						noList.add(oLib);					} else					{						if (ret == 2) yesToAll = true;						yesList.add(oLib);						includeDependentLibraries(oLib, yesList, noList, yesToAll);					}				}			}		}	}	/**	 * Method to check a library into the repository.	 * @param lib the library to add to the repository.	 * @param pl the ProjectLibrary associated with the library.	 * Throws a JobException on error.	 */	private void addLibraryNow(Library lib, ProjectLibrary pl)		throws JobException	{		// get path prefix for cell libraries		String libraryname = lib.getName();		// create the top-level directory for this library		pl.setProjectDirectory(Project.getRepositoryLocation() + File.separator + libraryname);		File dir = new File(pl.getProjectDirectory());		if (dir.exists())		{			throw new JobException(				"Repository directory '" + pl.getProjectDirectory() + "' already exists");		}		if (!dir.mkdir())		{			throw new JobException(				"Could not create repository directory '" + pl.getProjectDirectory() + "'");		}		System.out.println("Making repository directory '" + pl.getProjectDirectory() + "'...");		// turn off all tools		Project.setChangeStatus(true);		// make libraries for every cell		for(Iterator<Cell> it = lib.getCells(); it.hasNext(); )		{			Cell cell = it.next();			ProjectCell pc = new ProjectCell(cell, pl);			pc.setLastOwner(Project.getCurrentUserName());			pc.setComment("Initial checkin");			// ignore old unused cell versions			if (cell.getNewestVersion() != cell)			{				if (cell.getNumUsagesIn() == 0) continue;				System.out.println("Warning: including old version of " + cell);				pc.setLatestVersion(false);			}			// link the cell into the project lists			pl.linkProjectCellToCell(pc, cell);			if (Project.writeCell(cell, pc)) System.out.println("Error writing cell file"); else		// CHANGES DATABASE			{				// write the cell to disk in its own library				System.out.println("Entering " + cell);				// mark this cell "checked in" and locked				Project.markLocked(cell, true);		// CHANGES DATABASE			}		}		// create the project file		String projfile = pl.getProjectDirectory() + File.separator + Project.PROJECTFILE;		lib.newVar(Project.PROJPATHKEY, projfile);		try		{			PrintStream buffWriter = new PrintStream(new FileOutputStream(projfile));			for(Iterator<ProjectCell> it = pl.getProjectCells(); it.hasNext(); )			{				ProjectCell pc = it.next();				buffWriter.println("::" + pc.getCellName() + ":" + pc.getVersion() + "-" +					pc.getView().getFullName() + "." + pc.getLibExtension() + ":" +					pc.getOwner() + ":" + pc.getLastOwner() + ":" + pc.getComment());			}			buffWriter.close();		} catch (IOException e)		{			System.out.println("Error creating " + projfile);		}		// restore tool state		Project.setChangeStatus(false);	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产美女视频一区| 欧美日韩亚洲高清一区二区| 精品久久一区二区三区| 国产原创一区二区| 国产日产欧美一区二区三区| a美女胸又www黄视频久久| 日韩一区在线免费观看| 日本久久电影网| 天天av天天翘天天综合网色鬼国产| 欧美在线观看一区二区| 午夜欧美2019年伦理| 精品国产露脸精彩对白| 成人网男人的天堂| 亚洲尤物视频在线| 日韩欧美色综合网站| 丰满少妇在线播放bd日韩电影| 国产精品黄色在线观看| 欧美综合亚洲图片综合区| 日日骚欧美日韩| 国产欧美一区二区精品婷婷| 欧美一区二区久久| 国产乱码字幕精品高清av| 亚洲视频免费看| 日韩一级片在线观看| 青青草国产成人99久久| 国产一区二区美女诱惑| 亚洲伦理在线免费看| 91精品国产一区二区三区| 国产成人免费在线视频| 亚洲国产日韩综合久久精品| 欧美精品一区二区三区蜜桃视频| 9色porny自拍视频一区二区| 奇米综合一区二区三区精品视频| 国产欧美日产一区| 欧美体内she精视频| 国产成人午夜片在线观看高清观看| 亚洲免费观看高清完整版在线观看| 欧美一卡在线观看| 日本丰满少妇一区二区三区| 久久疯狂做爰流白浆xx| 亚洲一区二区三区在线播放| 国产网站一区二区三区| 日韩一区二区精品葵司在线| 91婷婷韩国欧美一区二区| 国产米奇在线777精品观看| 久久丁香综合五月国产三级网站| 亚洲精品视频在线观看网站| 国产色产综合产在线视频| 欧美日韩黄色一区二区| 9色porny自拍视频一区二区| 久久91精品久久久久久秒播| 亚洲成av人片在线观看无码| 一区二区中文字幕在线| 欧美精品一区二区蜜臀亚洲| 欧美无乱码久久久免费午夜一区 | 国产农村妇女精品| 欧美老肥妇做.爰bbww视频| 在线成人av网站| 91小视频免费观看| 高清国产一区二区| 国产一区二区三区四| 精品制服美女丁香| 欧洲精品一区二区| 99九九99九九九视频精品| 国产乱子轮精品视频| 美腿丝袜亚洲综合| 日韩国产精品大片| 日韩中文字幕91| 亚洲成人免费在线观看| 一区二区三区四区高清精品免费观看 | 欧美成人艳星乳罩| 91精品国产美女浴室洗澡无遮挡| 欧美主播一区二区三区| 91蜜桃视频在线| 一本色道**综合亚洲精品蜜桃冫| 成年人国产精品| caoporen国产精品视频| av中文字幕亚洲| bt7086福利一区国产| 91香蕉视频污| 欧美大片在线观看一区二区| 欧美日韩精品一区二区三区蜜桃 | 国产午夜精品久久| 中文字幕欧美国产| 中文字幕亚洲一区二区av在线| 国产拍欧美日韩视频二区| 国产情人综合久久777777| 欧美国产精品一区| 亚洲色图色小说| 亚洲一区二区成人在线观看| 午夜精品视频一区| 免费在线观看不卡| 国产大陆精品国产| 一本大道久久a久久精品综合| 欧美视频第二页| 91精品久久久久久久久99蜜臂| 欧美一区二区三区免费观看视频 | 精品一区二区三区视频在线观看 | 国产精品一区在线观看乱码| 国产成人亚洲精品狼色在线| 99riav久久精品riav| 色婷婷激情久久| 日韩免费看的电影| 亚洲国产激情av| 亚洲综合男人的天堂| 男人的天堂亚洲一区| 成人性生交大片| 欧洲人成人精品| 欧美精品一区二区三区久久久 | 91麻豆精品国产91久久久久久| 精品久久久久久久久久久久久久久久久| 欧美成人乱码一区二区三区| 日本一区二区三区高清不卡| 亚洲高清免费视频| 国产一区二区三区| 在线观看亚洲一区| 久久综合色8888| 亚洲视频在线观看一区| 奇米影视在线99精品| 成人视屏免费看| 在线成人午夜影院| 国产精品狼人久久影院观看方式| 一区二区三区波多野结衣在线观看| 久久机这里只有精品| 99久久精品国产导航| 日韩欧美电影在线| 亚洲激情图片qvod| 欧美喷潮久久久xxxxx| 国产精品免费aⅴ片在线观看| 天天免费综合色| 色94色欧美sute亚洲13| 久久久精品人体av艺术| 丝袜亚洲精品中文字幕一区| 成人黄色a**站在线观看| 日韩免费高清av| 亚洲国产一区在线观看| 成人免费三级在线| 欧美v国产在线一区二区三区| 亚洲精品自拍动漫在线| 成人一区二区三区| 亚洲欧美一区二区在线观看| 久久精品国产99国产精品| 91福利社在线观看| 国产精品免费视频一区| 久久99精品久久久久久国产越南| 欧洲国产伦久久久久久久| 国产精品久久久久aaaa| 国内精品写真在线观看| 日韩一区二区免费在线观看| 亚洲福利视频一区| 色婷婷综合中文久久一本| 国产精品丝袜久久久久久app| 国产伦精品一区二区三区免费迷 | 欧美人xxxx| 亚洲一区二区三区爽爽爽爽爽| 成人精品高清在线| 国产欧美一区二区三区在线看蜜臀 | 久久午夜老司机| 久久99精品国产麻豆婷婷| 日韩欧美资源站| 免费不卡在线观看| 91精品国产全国免费观看| 日韩精品福利网| 欧美美女喷水视频| 日韩和欧美一区二区| 8v天堂国产在线一区二区| 青青草国产成人99久久| 日韩精品一区二区三区四区| 久久疯狂做爰流白浆xx| 久久这里只精品最新地址| 国产精品一区一区| 久久―日本道色综合久久| 国产精一区二区三区| 亚洲国产高清aⅴ视频| av在线不卡免费看| 亚洲视频在线一区观看| 欧洲一区二区av| 日韩av一级片| 欧美精品一区二区不卡| 国产成人在线视频网址| 亚洲特黄一级片| 欧美午夜片在线看| 日韩高清在线不卡| 久久久久久电影| 91片黄在线观看| 午夜一区二区三区视频| 日韩精品一区国产麻豆| 高清不卡在线观看av| 亚洲精品高清在线| 欧美高清激情brazzers| 久久99久久久久| 国产精品美女视频| 欧美视频一区二区在线观看| 日韩av成人高清| 国产清纯白嫩初高生在线观看91 | 538在线一区二区精品国产| 久久精品久久99精品久久| 日本一区二区视频在线观看| 日本大香伊一区二区三区| 日产国产高清一区二区三区|