當前位置: 首頁>>代碼示例>>Java>>正文


Java WizardDialog.setHelpAvailable方法代碼示例

本文整理匯總了Java中org.eclipse.jface.wizard.WizardDialog.setHelpAvailable方法的典型用法代碼示例。如果您正苦於以下問題:Java WizardDialog.setHelpAvailable方法的具體用法?Java WizardDialog.setHelpAvailable怎麽用?Java WizardDialog.setHelpAvailable使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.jface.wizard.WizardDialog的用法示例。


在下文中一共展示了WizardDialog.setHelpAvailable方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doEditFormula

import org.eclipse.jface.wizard.WizardDialog; //導入方法依賴的package包/類
/**
 * Opens a dialog for formula processing and returns the edited formula  
 * @param formula initial formula, can be <code>null</code>
 * @return result of editing or <code>null</code>, if editing canceled
 */
protected Formula doEditFormula(Formula formula)
{
    // Create the wizard
    FormulaWizard wizard = new FormulaWizard(section.getText(), section.getDescription());
    wizard.setFormula(formula);

    // Create the wizard dialog
    WizardDialog dialog = new WizardDialog(getTableViewer().getTable().getShell(), wizard);
    dialog.setHelpAvailable(true);

    // Open the wizard dialog
    if (Window.OK == dialog.open())
    {
        return wizard.getFormula();
    } else
    {
        return null;
    }
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:25,代碼來源:TraceExplorerComposite.java

示例2: doEditFormula

import org.eclipse.jface.wizard.WizardDialog; //導入方法依賴的package包/類
protected Assignment doEditFormula(Assignment formula) // gets called when editing a constant and ...
{
    Assert.isNotNull(formula);

    // Create the wizard
    AssignmentWizard wizard = new AssignmentWizard(getSection().getText(), getSection().getDescription(),
            (Assignment) formula, AssignmentWizard.SHOW_OPTION, AssignmentWizardPage.CONSTANT_WIZARD_ID);
    // Create the wizard dialog
    WizardDialog dialog = new WizardDialog(getTableViewer().getTable().getShell(), wizard);
    wizard.setWizardDialog(dialog);
    dialog.setHelpAvailable(true);

    // Open the wizard dialog
    if (Window.OK == dialog.open())
    {
        return wizard.getFormula();
    } else
    {
        return null;  // We get here if the user cancels.
    }
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:22,代碼來源:ValidateableConstantSectionPart.java

示例3: doEditFormula

import org.eclipse.jface.wizard.WizardDialog; //導入方法依賴的package包/類
/**
 * Opens a dialog for formula processing and returns the edited formula  
 * @param formula initial formula, can be <code>null</code>
 * @return result of editing or <code>null</code>, if editing canceled
 */
protected Formula doEditFormula(Formula formula)
{
    // Create the wizard
    FormulaWizard wizard = new FormulaWizard(getSection().getText(), getSection().getDescription());
    wizard.setFormula(formula);

    // Create the wizard dialog
    WizardDialog dialog = new WizardDialog(getTableViewer().getTable().getShell(), wizard);
    dialog.setHelpAvailable(true);

    // Open the wizard dialog
    if (Window.OK == dialog.open())
    {
        return wizard.getFormula();
    } else
    {
        return null;
    }
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:25,代碼來源:ValidateableTableSectionPart.java

示例4: doFindResource

import org.eclipse.jface.wizard.WizardDialog; //導入方法依賴的package包/類
public static void doFindResource(ServerProvider sp, TreeViewer treeViewer) {
	TreeSelection ts = (TreeSelection) treeViewer.getSelection();
	Object el = ts.getFirstElement();
	MServerProfile msp = null;
	if (el instanceof MServerProfile)
		msp = (MServerProfile) el;
	else if (el instanceof MResource) {
		INode n = ((MResource) el).getRoot();
		if (n != null && n instanceof MServerProfile)
			msp = (MServerProfile) n;
	}
	if (msp != null) {
		FindResourceWizard wizard = new FindResourceWizard(msp);
		WizardDialog dialog = new FindWizardDialog(UIUtils.getShell(), wizard);
		dialog.setHelpAvailable(false);
		dialog.create();
		if (dialog.open() == Dialog.OK) {
			ResourceDescriptor rd = wizard.getValue();
			if (rd != null)
				selectResource(sp, msp, rd, treeViewer);
		}
	}
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:24,代碼來源:FindResourceJob.java

示例5: execute

import org.eclipse.jface.wizard.WizardDialog; //導入方法依賴的package包/類
/**
 * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
 */
public Object execute(ExecutionEvent event) throws ExecutionException
{
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);

    // Create the wizard
    NewSpecWizard wizard = new NewSpecWizard(event.getParameter(PARAM_PATH));
    // we pass null for structured selection, cause we just not using it
    wizard.init(window.getWorkbench(), null);
    Shell parentShell = window.getShell();
    // Create the wizard dialog
    WizardDialog dialog = new WizardDialog(parentShell, wizard);
    dialog.setHelpAvailable(true);
    
    // Open the wizard dialog
    if (Window.OK == dialog.open() && wizard.getRootFilename() != null)
    {
    	// read UI values from the wizard page
    	final boolean importExisting = wizard.isImportExisting();
    	final String specName = wizard.getSpecName();
    	final String rootFilename = wizard.getRootFilename();
        
        // the moment the user clicks finish on the wizard page does
        // not correspond with the availability of the spec object
        // it first has to be created/parsed fully before it can be shown in
        // the editor. Thus, delay opening the editor until parsing is done.        	
        createModuleAndSpecInNonUIThread(rootFilename, importExisting, specName);
    }

    return null;
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:34,代碼來源:NewSpecHandler.java


注:本文中的org.eclipse.jface.wizard.WizardDialog.setHelpAvailable方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。