本文整理匯總了Java中org.eclipse.dltk.core.IDLTKLanguageToolkit類的典型用法代碼示例。如果您正苦於以下問題:Java IDLTKLanguageToolkit類的具體用法?Java IDLTKLanguageToolkit怎麽用?Java IDLTKLanguageToolkit使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
IDLTKLanguageToolkit類屬於org.eclipse.dltk.core包,在下文中一共展示了IDLTKLanguageToolkit類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: FilteredTypesSelectionDialog
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
/**
* Creates new FilteredTypesSelectionDialog instance.
*
* @param shell
* shell to parent the dialog on
* @param multi
* <code>true</code> if multiple selection is allowed
* @param context
* context used to execute long-running operations associated
* with this dialog
* @param scope
* scope used when searching for types. If the scope is
* <code>null</code>, then workspace is scope is used as default,
* and the user can choose a working set as scope.
* @param elementKinds
* flags defining nature of searched elements; the only valid
* values are: <code>IJavaSearchConstants.TYPE</code>
* <code>IJavaSearchConstants.ANNOTATION_TYPE</code>
* <code>IJavaSearchConstants.INTERFACE</code>
* <code>IJavaSearchConstants.ENUM</code>
* <code>IJavaSearchConstants.CLASS_AND_INTERFACE</code>
* <code>IJavaSearchConstants.CLASS_AND_ENUM</code>. Please note
* that the bitwise OR combination of the elementary constants is
* not supported.
* @param extension
* an extension of the standard type selection dialog; See
* {@link TypeSelectionExtension}
*/
public FilteredTypesSelectionDialog(Shell shell, boolean multi,
IRunnableContext context, IDLTKSearchScope scope, int elementKinds,
TypeSelectionExtension extension, IDLTKLanguageToolkit toolkit) {
super(shell, multi);
this.fToolkit = toolkit;
setSelectionHistory(new TypeSelectionHistory());
if (scope == null) {
fAllowScopeSwitching = true;
scope = SearchEngine.createWorkspaceScope(toolkit);
}
// PlatformUI.getWorkbench().getHelpSystem().setHelp(shell,
// IJavaHelpContextIds.TYPE_SELECTION_DIALOG2);
fElementKinds = elementKinds;
fExtension = extension;
fFilterExtension = (extension == null) ? null : extension
.getFilterExtension();
fSearchScope = scope;
if (extension != null) {
fValidator = extension.getSelectionValidator();
}
fTypeInfoUtil = new TypeInfoUtil(extension != null ? extension
.getImageProvider() : null);
fTypeInfoLabelProvider = new TypeItemLabelProvider();
setListLabelProvider(fTypeInfoLabelProvider);
setListSelectionLabelDecorator(fTypeInfoLabelProvider);
setDetailsLabelProvider(new TypeItemDetailsLabelProvider(fTypeInfoUtil));
fTypeItemsComparator = new TypeItemsComparator();
}
示例2: needsExecution
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
public static boolean needsExecution(IDLTKLanguageToolkit toolkit) {
OpenTypeHistory history = OpenTypeHistory
.getInstance(DLTKUILanguageManager
.getLanguageToolkit(toolkit.getNatureId()));
return fgFirstTime || history.isEmpty()
|| history.needConsistencyCheck();
}
示例3: getCoreToolkit
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
public IDLTKLanguageToolkit getCoreToolkit() {
return JuliaLanguageToolkit.getDefault();
}
示例4: getLanguageToolkit
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
@Override
public IDLTKLanguageToolkit getLanguageToolkit() {
return JuliaLanguageToolkit.getDefault();
}
示例5: getDefault
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
public static IDLTKLanguageToolkit getDefault() {
return instance;
}
示例6: getLanguageToolkit
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
@Override
public IDLTKLanguageToolkit getLanguageToolkit() {
return GnLanguageToolkit.getDefault();
}
示例7: getCoreToolkit
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
@Override
public IDLTKLanguageToolkit getCoreToolkit() {
return GnLanguageToolkit.getDefault();
}
示例8: getDefault
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
public static IDLTKLanguageToolkit getDefault() {
if (toolkit == null) {
toolkit = new GnLanguageToolkit();
}
return toolkit;
}
示例9: ConsistencyRunnable
import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
ConsistencyRunnable(IDLTKLanguageToolkit toolkit) {
this.tookit = DLTKUILanguageManager.getLanguageToolkit(toolkit
.getNatureId());
}