use of org.eclipse.ui.wizards.IWizardCategory in project tdi-studio-se by Talend.
the class TalendExportPage method restoreWidgetValues.
protected void restoreWidgetValues() {
IWizardCategory exportRoot = WorkbenchPlugin.getDefault().getExportWizardRegistry().getRootCategory();
expandPreviouslyExpandedCategories(STORE_EXPANDED_EXPORT_CATEGORIES, exportRoot, exportTree.getViewer());
selectPreviouslySelected(STORE_SELECTED_EXPORT_WIZARD_ID, exportRoot, exportTree.getViewer());
}
use of org.eclipse.ui.wizards.IWizardCategory in project translationstudio8 by heartsome.
the class NewActionProvider method hasExamples.
/**
* Return whether or not any examples are in the current install.
*
* @return True if there exists a full examples wizard category.
*/
private boolean hasExamples() {
IWizardRegistry newRegistry = PlatformUI.getWorkbench().getNewWizardRegistry();
IWizardCategory category = newRegistry.findCategory(FULL_EXAMPLES_WIZARD_CATEGORY);
return category != null;
}
use of org.eclipse.ui.wizards.IWizardCategory in project translationstudio8 by heartsome.
the class ApplicationWorkbenchWindowAdvisor method getAllWizards.
private IWizardDescriptor[] getAllWizards(IWizardCategory... categories) {
List<IWizardDescriptor> results = new ArrayList<IWizardDescriptor>();
for (IWizardCategory wizardCategory : categories) {
results.addAll(Arrays.asList(wizardCategory.getWizards()));
results.addAll(Arrays.asList(getAllWizards(wizardCategory.getCategories())));
}
return results.toArray(new IWizardDescriptor[0]);
}
use of org.eclipse.ui.wizards.IWizardCategory in project tdi-studio-se by Talend.
the class TalendExportPage method createTreeViewer.
protected Composite createTreeViewer(Composite parent) {
IWizardCategory root = WorkbenchPlugin.getDefault().getExportWizardRegistry().getRootCategory();
// exportTree = new TalendCategorizedWizardSelectionTree(root,
// WorkbenchMessages.ExportWizard_selectDestination);
exportTree = new TalendCategorizedWizardSelectionTree(root, //$NON-NLS-1$
Messages.getString("WorkbenchMessages.ExportWizard_selectDestination"));
Composite exportComp = exportTree.createControl(parent);
exportTree.getViewer().addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
listSelectionChanged(event.getSelection());
}
});
exportTree.getViewer().addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
treeDoubleClicked(event);
}
});
setTreeViewer(exportTree.getViewer());
return exportComp;
}
Aggregations