本文整理汇总了Java中org.openide.WizardDescriptor.CLOSED_OPTION属性的典型用法代码示例。如果您正苦于以下问题:Java WizardDescriptor.CLOSED_OPTION属性的具体用法?Java WizardDescriptor.CLOSED_OPTION怎么用?Java WizardDescriptor.CLOSED_OPTION使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.openide.WizardDescriptor
的用法示例。
在下文中一共展示了WizardDescriptor.CLOSED_OPTION属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: show
boolean show () {
wizardIterator = new PanelsIterator();
wizardDescriptor = new WizardDescriptor(wizardIterator);
wizardDescriptor.setTitleFormat(new MessageFormat("{0}")); // NOI18N
wizardDescriptor.setTitle(org.openide.util.NbBundle.getMessage(PushWizard.class, "LBL_PushWizard.title")); // NOI18N
Dialog dialog = DialogDisplayer.getDefault().createDialog(wizardDescriptor);
setErrorMessage(wizardIterator.selectUriStep.getErrorMessage());
dialog.setVisible(true);
dialog.toFront();
Object value = wizardDescriptor.getValue();
boolean finnished = value == WizardDescriptor.FINISH_OPTION;
if (!finnished) {
// wizard wasn't properly finnished ...
if (value == WizardDescriptor.CLOSED_OPTION || value == WizardDescriptor.CANCEL_OPTION ) {
// wizard was closed or canceled -> reset all steps & kill all running tasks
wizardIterator.selectUriStep.cancelBackgroundTasks();
}
}
return finnished;
}
示例2: show
boolean show () {
wizardIterator = new PanelsIterator();
wizardDescriptor = new WizardDescriptor(wizardIterator);
wizardDescriptor.setTitleFormat(new MessageFormat("{0}")); // NOI18N
wizardDescriptor.setTitle(org.openide.util.NbBundle.getMessage(PullWizard.class, "LBL_PullWizard.title")); // NOI18N
Dialog dialog = DialogDisplayer.getDefault().createDialog(wizardDescriptor);
setErrorMessage(wizardIterator.selectUriStep.getErrorMessage());
dialog.setVisible(true);
dialog.toFront();
Object value = wizardDescriptor.getValue();
boolean finnished = value == WizardDescriptor.FINISH_OPTION;
if (!finnished) {
// wizard wasn't properly finnished ...
if (value == WizardDescriptor.CLOSED_OPTION || value == WizardDescriptor.CANCEL_OPTION ) {
// wizard was closed or canceled -> reset all steps & kill all running tasks
wizardIterator.selectUriStep.cancelBackgroundTasks();
}
}
return finnished;
}
示例3: show
boolean show () {
wizardIterator = new PanelsIterator();
wizardDescriptor = new WizardDescriptor(wizardIterator);
wizardDescriptor.setTitleFormat(new MessageFormat("{0}")); // NOI18N
wizardDescriptor.setTitle(org.openide.util.NbBundle.getMessage(FetchWizard.class, "LBL_FetchWizard.title")); // NOI18N
Dialog dialog = DialogDisplayer.getDefault().createDialog(wizardDescriptor);
setErrorMessage(wizardIterator.selectUriStep.getErrorMessage());
dialog.setVisible(true);
dialog.toFront();
Object value = wizardDescriptor.getValue();
boolean finnished = value == WizardDescriptor.FINISH_OPTION;
if (!finnished) {
// wizard wasn't properly finnished ...
if (value == WizardDescriptor.CLOSED_OPTION || value == WizardDescriptor.CANCEL_OPTION ) {
// wizard was closed or canceled -> reset all steps & kill all running tasks
wizardIterator.selectUriStep.cancelBackgroundTasks();
wizardIterator.fetchBranchesStep.cancelBackgroundTasks();
}
}
return finnished;
}
示例4: show
public boolean show() {
wizardIterator = new PanelsIterator();
wizardDescriptor = new WizardDescriptor(wizardIterator);
wizardDescriptor.setTitleFormat(new MessageFormat("{0}")); // NOI18N
wizardDescriptor.setTitle(org.openide.util.NbBundle.getMessage(CheckoutWizard.class, "CTL_Checkout")); // NOI18N
Dialog dialog = DialogDisplayer.getDefault().createDialog(wizardDescriptor);
dialog.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CheckoutWizard.class, "CTL_Checkout"));
dialog.setVisible(true);
dialog.toFront();
Object value = wizardDescriptor.getValue();
boolean finnished = value == WizardDescriptor.FINISH_OPTION;
if(finnished) {
onFinished();
} else {
// wizard wasn't properly finnished ...
if(value == WizardDescriptor.CLOSED_OPTION ||
value == WizardDescriptor.CANCEL_OPTION )
{
// wizard was closed or canceled -> reset all steps & kill all running tasks
repositoryStep.stop();
}
}
return finnished;
}
示例5: show
boolean show () {
wizardIterator = new PanelsIterator();
wizardDescriptor = new WizardDescriptor(wizardIterator);
wizardDescriptor.setTitleFormat(new MessageFormat("{0}")); // NOI18N
wizardDescriptor.setTitle(org.openide.util.NbBundle.getMessage(CloneWizard.class, "LBL_CloneWizard.title")); // NOI18N
Dialog dialog = DialogDisplayer.getDefault().createDialog(wizardDescriptor);
if(pa != null && forPath != null) {
Git.getInstance().getRequestProcessor().post(new Runnable() {
@Override
public void run () {
wizardIterator.repositoryStep.waitPopulated();
// url and credential already provided, so try
// to reach the next step ...
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
wizardDescriptor.doNextClick();
}
});
}
});
}
setErrorMessage(wizardIterator.repositoryStep.getErrorMessage());
dialog.setVisible(true);
dialog.toFront();
Object value = wizardDescriptor.getValue();
boolean finished = value == WizardDescriptor.FINISH_OPTION;
if (finished) {
onFinished();
} else {
// wizard wasn't properly finnished ...
if (value == WizardDescriptor.CLOSED_OPTION || value == WizardDescriptor.CANCEL_OPTION ) {
// wizard was closed or canceled -> reset all steps & kill all running tasks
wizardIterator.repositoryStep.cancelBackgroundTasks();
}
}
return finished;
}
示例6: show
public boolean show() {
wizardIterator = new PanelsIterator();
wizardDescriptor = new WizardDescriptor(wizardIterator);
wizardDescriptor.setTitleFormat(new MessageFormat("{0}")); // NOI18N
wizardDescriptor.setTitle(org.openide.util.NbBundle.getMessage(ImportWizard.class, "CTL_Import")); // NOI18N
Dialog dialog = DialogDisplayer.getDefault().createDialog(wizardDescriptor);
dialog.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ImportWizard.class, "CTL_Import"));
dialog.setVisible(true);
dialog.toFront();
Object value = wizardDescriptor.getValue();
boolean finnished = value == WizardDescriptor.FINISH_OPTION;
if(!finnished) {
// wizard wasn't properly finnished ...
if(value == WizardDescriptor.CLOSED_OPTION ||
value == WizardDescriptor.CANCEL_OPTION )
{
// wizard was closed or canceled -> reset all steps & kill all running tasks
repositoryStep.stop();
importStep.stop();
importPreviewStep.stop();
}
} else if (value == WizardDescriptor.FINISH_OPTION) {
if(wizardIterator.current() == importStep) {
setupImportPreviewStep(true);
} else if (wizardIterator.current() == importPreviewStep) {
importPreviewStep.storeTableSorter();
importPreviewStep.startCommitTask(repositoryStep.getRepositoryFile().getRepositoryUrl());
}
}
return finnished;
}