本文整理汇总了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();
}
示例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();
}
示例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;
}
}
示例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);
}
}
}
示例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();
}
示例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);
}