Java源码示例:org.eclipse.search.internal.ui.SearchPlugin

示例1
private String getEditorID(IFile file) throws PartInitException {
	IEditorDescriptor desc= IDE.getEditorDescriptor(file);
	if (desc == null)
		return SearchPlugin.getDefault().getWorkbench().getEditorRegistry().findEditor(IEditorRegistry.SYSTEM_EXTERNAL_EDITOR_ID).getId();
	return desc.getId();
}
 
示例2
@Override
public void run() {
    Shell shell = SearchPlugin.getActiveWorkbenchShell();
    PreferencesUtil.createPreferenceDialogOn(shell, SearchPreferencePage.PAGE_ID, null, null).open();
}
 
示例3
/**
 * Returns the page settings for this Text search page.
 *
 * @return the page settings to be used
 */
private IDialogSettings getDialogSettings() {
  return SearchPlugin.getDefault().getDialogSettingsSection(PAGE_NAME);
}