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


Java IDLTKLanguageToolkit類代碼示例

本文整理匯總了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();
}
 
開發者ID:UndefinedOffset,項目名稱:eclipse-silverstripedt,代碼行數:66,代碼來源:FilteredTypesSelectionDialog.java

示例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();
}
 
開發者ID:UndefinedOffset,項目名稱:eclipse-silverstripedt,代碼行數:8,代碼來源:FilteredTypesSelectionDialog.java

示例3: getCoreToolkit

import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
public IDLTKLanguageToolkit getCoreToolkit() {
  return JuliaLanguageToolkit.getDefault();
}
 
開發者ID:JuliaComputing,項目名稱:JuliaDT,代碼行數:4,代碼來源:JuliaUILanguageToolkit.java

示例4: getLanguageToolkit

import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
@Override
public IDLTKLanguageToolkit getLanguageToolkit() {
  return JuliaLanguageToolkit.getDefault();
}
 
開發者ID:JuliaComputing,項目名稱:JuliaDT,代碼行數:5,代碼來源:JuliaEditor.java

示例5: getDefault

import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
public static IDLTKLanguageToolkit getDefault() {
  return instance;
}
 
開發者ID:JuliaComputing,項目名稱:JuliaDT,代碼行數:4,代碼來源:JuliaLanguageToolkit.java

示例6: getLanguageToolkit

import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
@Override
public IDLTKLanguageToolkit getLanguageToolkit() {
  return GnLanguageToolkit.getDefault();
}
 
開發者ID:chromium,項目名稱:eclipse-gn,代碼行數:5,代碼來源:GnEditor.java

示例7: getCoreToolkit

import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
@Override
public IDLTKLanguageToolkit getCoreToolkit() {
  return GnLanguageToolkit.getDefault();
}
 
開發者ID:chromium,項目名稱:eclipse-gn,代碼行數:5,代碼來源:GnUiLanguageToolkit.java

示例8: getDefault

import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
public static IDLTKLanguageToolkit getDefault() {
  if (toolkit == null) {
    toolkit = new GnLanguageToolkit();
  }
  return toolkit;
}
 
開發者ID:chromium,項目名稱:eclipse-gn,代碼行數:7,代碼來源:GnLanguageToolkit.java

示例9: ConsistencyRunnable

import org.eclipse.dltk.core.IDLTKLanguageToolkit; //導入依賴的package包/類
ConsistencyRunnable(IDLTKLanguageToolkit toolkit) {
    this.tookit = DLTKUILanguageManager.getLanguageToolkit(toolkit
            .getNatureId());
}
 
開發者ID:UndefinedOffset,項目名稱:eclipse-silverstripedt,代碼行數:5,代碼來源:FilteredTypesSelectionDialog.java


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