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

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

?? directorydialog.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
字號:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.widgets;import org.eclipse.swt.internal.*;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;/** * Instances of this class allow the user to navigate * the file system and select a directory. * <dl> * <dt><b>Styles:</b></dt> * <dd>(none)</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> */public class DirectoryDialog extends Dialog {	String message = "", filterPath = "";  //$NON-NLS-1$//$NON-NLS-2$	String directoryPath;	/** * Constructs a new instance of this class given only its parent. * * @param parent a shell which will be the parent of the new instance * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> */public DirectoryDialog (Shell parent) {	this (parent, SWT.PRIMARY_MODAL);}/** * Constructs a new instance of this class given its parent * and a style value describing its behavior and appearance. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together  * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a shell which will be the parent of the new instance * @param style the style of dialog to construct * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> */public DirectoryDialog (Shell parent, int style) {	super (parent, style);	checkSubclass ();}int BrowseCallbackProc (int hwnd, int uMsg, int lParam, int lpData) {	switch (uMsg) {		case OS.BFFM_INITIALIZED:			if (filterPath != null && filterPath.length () != 0) {				/* Use the character encoding for the default locale */				TCHAR buffer = new TCHAR (0, filterPath.replace ('/', '\\'), true);				OS.SendMessage (hwnd, OS.BFFM_SETSELECTION, 1, buffer);			}			if (title != null && title.length () != 0) {				/* Use the character encoding for the default locale */				TCHAR buffer = new TCHAR (0, title, true);				OS.SetWindowText (hwnd, buffer);			}			break;		case OS.BFFM_VALIDATEFAILEDA:		case OS.BFFM_VALIDATEFAILEDW:			/* Use the character encoding for the default locale */			TCHAR buffer = new TCHAR (0, 256);			int byteCount = buffer.length () * TCHAR.sizeof;			OS.MoveMemory (buffer, lParam, byteCount);			directoryPath = buffer.toString (0, buffer.strlen ());			break;	}	return 0;}/** * Returns the path which the dialog will use to filter * the directories it shows. * * @return the filter path */public String getFilterPath () {	return filterPath;}/** * Returns the dialog's message, which is a description of * the purpose for which it was opened. This message will be * visible on the dialog while it is open. * * @return the message */public String getMessage () {	return message;}/** * Makes the dialog visible and brings it to the front * of the display. * * @return a string describing the absolute path of the selected directory, *         or null if the dialog was cancelled or an error occurred * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the dialog has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li> * </ul> */public String open () {	if (OS.IsWinCE) SWT.error (SWT.ERROR_NOT_IMPLEMENTED);		/* Initialize OLE */	OS.OleInitialize (0);		int hHeap = OS.GetProcessHeap ();		/* Get the owner HWND for the dialog */	int hwndOwner = 0;	if (parent != null) hwndOwner = parent.handle;	/* Copy the message to OS memory */	int lpszTitle = 0;	if (message.length () != 0) {		String string = message;		if (string.indexOf ('&') != -1) {			int length = string.length ();			char [] buffer = new char [length * 2];			int index = 0;			for (int i=0; i<length; i++) {				char ch = string.charAt (i);				if (ch == '&') buffer [index++] = '&';				buffer [index++] = ch;			}			string = new String (buffer, 0, index);		}		/* Use the character encoding for the default locale */		TCHAR buffer = new TCHAR (0, string, true);		int byteCount = buffer.length () * TCHAR.sizeof;		lpszTitle = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);		OS.MoveMemory (lpszTitle, buffer, byteCount);	}	/* Create the BrowseCallbackProc */	Callback callback = new Callback (this, "BrowseCallbackProc", 4); //$NON-NLS-1$	int address = callback.getAddress ();	/* Make the parent shell be temporary modal */	Shell oldModal = null;	Display display = parent.getDisplay ();	if ((style & (SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {		oldModal = display.getModalDialogShell ();		display.setModalDialogShell (parent);	}		directoryPath = null;	BROWSEINFO lpbi = new BROWSEINFO ();	lpbi.hwndOwner = hwndOwner;	lpbi.lpszTitle = lpszTitle;	lpbi.ulFlags = OS.BIF_NEWDIALOGSTYLE | OS.BIF_RETURNONLYFSDIRS | OS.BIF_EDITBOX | OS.BIF_VALIDATE;	lpbi.lpfn = address;	/*	* Bug in Windows.  On some hardware configurations, SHBrowseForFolder()	* causes warning dialogs with the message "There is no disk in the drive	* Please insert a disk into \Device\Harddisk0\DR0".  This is possibly	* caused by SHBrowseForFolder() calling internally GetVolumeInformation().	* MSDN for GetVolumeInformation() says:	* 	* "If you are attempting to obtain information about a floppy drive	* that does not have a floppy disk or a CD-ROM drive that does not 	* have a compact disc, the system displays a message box asking the 	* user to insert a floppy disk or a compact disc, respectively. 	* To prevent the system from displaying this message box, call the 	* SetErrorMode function with SEM_FAILCRITICALERRORS."	* 	* The fix is to save and restore the error mode using SetErrorMode()	* with the SEM_FAILCRITICALERRORS flag around SHBrowseForFolder().	*/	int oldErrorMode = OS.SetErrorMode (OS.SEM_FAILCRITICALERRORS);		/*	* Bug in Windows.  When a WH_MSGFILTER hook is used to run code	* during the message loop for SHBrowseForFolder(), running code	* in the hook can cause a GP.  Specifically, SetWindowText()	* for static controls seemed to make the problem happen.	* The fix is to ignore the hook while the directory dialog	* is open.	* 	* NOTE:  This only happens in versions of the comctl32.dll	* earlier than 6.0.	*/	boolean oldIgnore = display.ignoreMsgFilter;	if (OS.COMCTL32_MAJOR < 6) display.ignoreMsgFilter = true;	int lpItemIdList = OS.SHBrowseForFolder (lpbi);	if (OS.COMCTL32_MAJOR < 6) display.ignoreMsgFilter = oldIgnore;	OS.SetErrorMode(oldErrorMode);		/* Clear the temporary dialog modal parent */	if ((style & (SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {		display.setModalDialogShell (oldModal);	}		boolean success = lpItemIdList != 0;	if (success) {		/* Use the character encoding for the default locale */		TCHAR buffer = new TCHAR (0, 256);		if (OS.SHGetPathFromIDList (lpItemIdList, buffer)) {			directoryPath = buffer.toString (0, buffer.strlen ());			filterPath = directoryPath;		}	}	/* Free the BrowseCallbackProc */	callback.dispose ();		/* Free the OS memory */	if (lpszTitle != 0) OS.HeapFree (hHeap, 0, lpszTitle);	/* Free the pointer to the ITEMIDLIST */	int [] ppMalloc = new int [1];	if (OS.SHGetMalloc (ppMalloc) == OS.S_OK) {		/* void Free (struct IMalloc *this, void *pv); */		OS.VtblCall (5, ppMalloc [0], lpItemIdList);	}		/* Uninitialize OLE */	OS.OleUninitialize ();		/*	* This code is intentionally commented.  On some	* platforms, the owner window is repainted right	* away when a dialog window exits.  This behavior	* is currently unspecified.	*///	if (hwndOwner != 0) OS.UpdateWindow (hwndOwner);		/* Return the directory path */	if (!success) return null;	return directoryPath;}/** * Sets the path which the dialog will use to filter * the directories it shows to the argument, which may be * null. * * @param string the filter path */public void setFilterPath (String string) {	filterPath = string;}/** * Sets the dialog's message, which is a description of * the purpose for which it was opened. This message will be * visible on the dialog while it is open. * * @param string the message *  * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the string is null</li> * </ul> */public void setMessage (String string) {	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	message = string;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久国产精品免费免费搜索| 一区二区视频在线| 欧美高清视频在线高清观看mv色露露十八| 7777精品伊人久久久大香线蕉 | 国产高清久久久久| 欧美老女人在线| 99在线热播精品免费| 久久品道一品道久久精品| 欧美手机在线视频| 亚洲免费观看高清完整版在线观看| 美女爽到高潮91| 久久亚洲春色中文字幕久久久| 亚洲bt欧美bt精品777| 中文字幕av一区二区三区高| 国产精品一区二区在线播放| 奇米影视一区二区三区小说| 久久女同性恋中文字幕| 51精品秘密在线观看| 欧美日韩视频在线观看一区二区三区 | 五月天婷婷综合| 亚洲国产成人精品视频| 亚洲欧美精品午睡沙发| 中文字幕一区在线观看视频| 99精品欧美一区| 亚洲最大的成人av| 亚洲自拍都市欧美小说| 欧美午夜精品一区二区三区| 色婷婷综合五月| 一本色道a无线码一区v| 色8久久精品久久久久久蜜| 91蝌蚪porny| 日本视频在线一区| 一区二区三区中文字幕精品精品| 国产欧美日韩综合| 精品久久一区二区| 久久你懂得1024| 亚洲欧洲av一区二区三区久久| 国产精品理论在线观看| 亚洲欧美一区二区三区孕妇| 亚洲第一二三四区| 老司机精品视频线观看86| 日韩福利电影在线| 国产91清纯白嫩初高中在线观看| 国产1区2区3区精品美女| 色综合久久中文综合久久牛| 91成人在线观看喷潮| 制服丝袜国产精品| 国产精品色婷婷久久58| 日韩欧美一区二区视频| 成人h版在线观看| 成人短视频下载| 91精品国产手机| 国产精品丝袜黑色高跟| 亚洲国产精品久久艾草纯爱| 极品瑜伽女神91| 91国偷自产一区二区开放时间 | 9久草视频在线视频精品| 欧美精品久久天天躁| 精品国产乱码久久久久久牛牛| 成人午夜私人影院| 欧美日韩精品三区| 久久久99免费| 一区二区三区电影在线播| 精品一区二区精品| 在线电影国产精品| 亚洲日本青草视频在线怡红院| 免费高清在线一区| 欧亚洲嫩模精品一区三区| 91福利在线导航| 亚洲国产激情av| 亚洲成av人片| 99视频精品在线| 日韩一卡二卡三卡四卡| 亚洲国产aⅴ成人精品无吗| eeuss国产一区二区三区| 日韩免费福利电影在线观看| 亚洲二区在线观看| av爱爱亚洲一区| 国产精品你懂的| 国产乱码精品一区二区三区五月婷| 一本色道亚洲精品aⅴ| 亚洲欧美日韩国产成人精品影院| 成人毛片视频在线观看| 久久精品一区二区三区av| 美美哒免费高清在线观看视频一区二区| 91亚洲精品一区二区乱码| 久久久久久亚洲综合| 免费在线观看视频一区| 在线观看91视频| 首页国产欧美久久| 国产一区二区中文字幕| 精品国产1区二区| 国产乱子伦视频一区二区三区 | 国产v日产∨综合v精品视频| 欧美大胆一级视频| 麻豆精品蜜桃视频网站| 日韩亚洲欧美中文三级| 免费一级片91| 久久日一线二线三线suv| 亚洲自拍另类综合| 日韩欧美国产电影| 精品一区二区影视| 久久精品免费在线观看| 成人av中文字幕| 国产精品久久久久9999吃药| www.日韩大片| 石原莉奈在线亚洲三区| 日韩视频免费观看高清完整版在线观看 | 国产成人av资源| 国产精品剧情在线亚洲| 欧美午夜在线一二页| 亚洲va国产天堂va久久en| 欧美美女视频在线观看| 亚洲成人一区在线| 精品久久一二三区| 99久久99久久精品免费观看| 中文字幕日韩一区| 欧美日韩在线电影| 看国产成人h片视频| 中文字幕av资源一区| 国产精品伊人色| 日韩精品欧美成人高清一区二区| 精品国产一区二区三区忘忧草| 国产黄人亚洲片| 亚洲黄色性网站| 精品久久久久久久人人人人传媒 | 国产精品久久精品日日| 久久爱www久久做| 亚洲欧美综合网| 欧美不卡视频一区| 91原创在线视频| 图片区小说区区亚洲影院| 91麻豆6部合集magnet| 久久电影网站中文字幕| 亚洲女与黑人做爰| 欧美大片在线观看| 91女神在线视频| 精品无人码麻豆乱码1区2区| 亚洲久草在线视频| 国产日产精品一区| 国产成人精品免费网站| 奇米影视一区二区三区小说| 中文av字幕一区| 日韩欧美在线网站| 欧美最新大片在线看| 国产成人综合亚洲91猫咪| 日韩精品国产欧美| 玉足女爽爽91| 中文字幕一区二区不卡| 欧美一区二区日韩| 色视频一区二区| av一二三不卡影片| 蜜臀av一区二区三区| 亚洲精品菠萝久久久久久久| 26uuu色噜噜精品一区| 91蝌蚪国产九色| 亚洲一区二区三区精品在线| 国产精品丝袜久久久久久app| 精品国产免费一区二区三区四区 | 欧美影视一区二区三区| a在线欧美一区| 成人免费毛片高清视频| 国产精品乱码妇女bbbb| 久久色视频免费观看| 9191久久久久久久久久久| 91网址在线看| 精品一区二区精品| 久久精品国产**网站演员| 亚洲电影在线播放| 亚洲黄网站在线观看| 亚洲综合自拍偷拍| 亚洲一区二区三区四区在线观看 | 最新欧美精品一区二区三区| 久久久久久久久久久久久女国产乱| 日韩一区二区三区免费观看| 欧美视频精品在线| 欧美视频在线一区二区三区| 99国产精品国产精品毛片| 成人精品gif动图一区| av网站免费线看精品| 一本色道久久综合亚洲aⅴ蜜桃| 极品美女销魂一区二区三区| 国产精品一区二区久激情瑜伽| 国产成人精品免费网站| 99国产精品久久久久| 在线免费观看日本一区| 欧美人牲a欧美精品| 69p69国产精品| 久久综合久色欧美综合狠狠| 国产精品色呦呦| 亚洲一区二区欧美激情| 蜜臀久久99精品久久久画质超高清 | 麻豆国产精品一区二区三区| 久久电影国产免费久久电影| 综合久久给合久久狠狠狠97色| 亚洲青青青在线视频| 天天色天天爱天天射综合| 日本美女一区二区三区| 国产91精品在线观看| 日本高清不卡视频|