当前位置: 首页>>代码示例>>Java>>正文


Java Policy.JFACE属性代码示例

本文整理汇总了Java中org.eclipse.jface.util.Policy.JFACE属性的典型用法代码示例。如果您正苦于以下问题:Java Policy.JFACE属性的具体用法?Java Policy.JFACE怎么用?Java Policy.JFACE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.jface.util.Policy的用法示例。


在下文中一共展示了Policy.JFACE属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hardClose

/**
 * Closes this window.
 * 
 * @return <code>true</code> if the window is (or was already) closed, and
 *         <code>false</code> if it is still open
 */
private boolean hardClose() {
	// inform wizards
	for (int i = 0; i < createdWizards.size(); i++) {
		IWizard createdWizard = (IWizard) createdWizards.get(i);
		try {
			createdWizard.dispose();
		} catch (Exception e) {
			Status status = new Status(IStatus.ERROR, Policy.JFACE, IStatus.ERROR, e.getMessage(), e);
			Policy.getLog().log(status);
		}
		// Remove this dialog as a parent from the managed wizard.
		// Note that we do this after calling dispose as the wizard or
		// its pages may need access to the container during
		// dispose code
		createdWizard.setContainer(null);
	}
	// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=202534
	// disposing the wizards could cause the image currently set in
	// this dialog to be disposed.  A subsequent repaint event during
	// close would then fail.  To prevent this case, we null out the image.
	setTitleImage(null);
	return super.close();
}
 
开发者ID:MentorEmbedded,项目名称:p2-installer,代码行数:29,代码来源:WizardDialog.java

示例2: hardClose

/**
 * Closes this window.
 * 
 * @return <code>true</code> if the window is (or was already) closed, and
 *         <code>false</code> if it is still open
 */
private boolean hardClose() {
	// inform wizards
	for (int i = 0; i < createdWizards.size(); i++) {
		IWizard createdWizard = (IWizard) createdWizards.get(i);
		try {
			createdWizard.dispose();
		} catch (Exception e) {
			Status status = new Status(IStatus.ERROR, Policy.JFACE,
					IStatus.ERROR, e.getMessage(), e);
			Policy.getLog().log(status);
		}
		// Remove this dialog as a parent from the managed wizard.
		// Note that we do this after calling dispose as the wizard or
		// its pages may need access to the container during
		// dispose code
		createdWizard.setContainer(null);
	}
	// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=202534
	// disposing the wizards could cause the image currently set in
	// this dialog to be disposed. A subsequent repaint event during
	// close would then fail. To prevent this case, we null out the image.
	setTitleImage(null);
	return super.close();
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:30,代码来源:WizardDialog.java

示例3: dispose

/**
  * The <code>Wizard</code> implementation of this <code>IWizard</code>
  * method disposes all the pages controls using
  * <code>DialogPage.dispose</code>. Subclasses should extend this method
  * if the wizard instance maintains addition SWT resource that need to be
  * disposed.
  */
 public void dispose() {
     // notify pages
     for (int i = 0; i < pages.size(); i++) {
try {
          ((IWizardPage) pages.get(i)).dispose();
} catch (Exception e) {
	Status status = new Status(IStatus.ERROR, Policy.JFACE, IStatus.ERROR, e.getMessage(), e);
	Policy.getLog().log(status);
}
     }
     // dispose of image
     if (defaultImage != null) {
         JFaceResources.getResources().destroyImage(defaultImageDescriptor);
         defaultImage = null;
     }
 }
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:23,代码来源:Wizard.java

示例4: dispose

/**
 * The <code>Wizard</code> implementation of this <code>IWizard</code>
 * method disposes all the pages controls using
 * <code>DialogPage.dispose</code>. Subclasses should extend this method if
 * the wizard instance maintains addition SWT resource that need to be
 * disposed.
 */
@Override
public void dispose() {
	super.dispose();
	// notify pages
	for (int i = 0; i < pages.size(); i++) {
		try {
			pages.get(i).dispose();
		} catch (Exception e) {
			Status status = new Status(IStatus.ERROR, Policy.JFACE, IStatus.ERROR, e.getMessage(), e);
			Policy.getLog().log(status);
		}
	}
}
 
开发者ID:Pardus-LiderAhenk,项目名称:lider-ahenk-installer,代码行数:20,代码来源:LiderSetupWizard.java

示例5: dispose

/**
 * The <code>Wizard</code> implementation of this <code>IWizard</code> method disposes all the pages controls using
 * <code>DialogPage.dispose</code>. Subclasses should extend this method if the wizard instance maintains addition SWT
 * resource that need to be disposed.
 */
public void dispose() {

	// notify pages
	for (int i = 0; i < wizardPages.size(); i++) {
		try {
			((IWizardPage) wizardPages.get(i)).dispose();
		} catch (Exception e) {
			Status status = new Status(IStatus.ERROR, Policy.JFACE, IStatus.ERROR, e.getMessage(), e);
			Policy.getLog().log(status);
		}
	}
	super.dispose();
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:18,代码来源:JSSWizard.java

示例6: StatusDialog

/**
 * Creates an instance of a status dialog.
 * 
 * @param parent
 *            the parent Shell of the dialog
 */
public StatusDialog(Shell parent) {
	super(parent);
	fLastStatus = new Status(IStatus.OK, Policy.JFACE, IStatus.OK,
			Util.ZERO_LENGTH_STRING, null);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:11,代码来源:StatusDialog.java


注:本文中的org.eclipse.jface.util.Policy.JFACE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。