Java Code Examples for com.intellij.util.ArrayUtil#EMPTY_OBJECT_ARRAY
The following examples show how to use
com.intellij.util.ArrayUtil#EMPTY_OBJECT_ARRAY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HaxeSupertypesHierarchyTreeStructure.java From intellij-haxe with Apache License 2.0 | 5 votes |
protected final Object[] buildChildren(final HierarchyNodeDescriptor descriptor) { final PsiClass theHaxeClass = ((HaxeTypeHierarchyNodeDescriptor) descriptor).getHaxeClass(); if (null == theHaxeClass) return ArrayUtil.EMPTY_OBJECT_ARRAY; final PsiClass[] supers = theHaxeClass.getSupers(); final List<HaxeTypeHierarchyNodeDescriptor> descriptors = new ArrayList<HaxeTypeHierarchyNodeDescriptor>(); for (PsiClass aSuper : supers) { descriptors.add(new HaxeTypeHierarchyNodeDescriptor(myProject, descriptor, aSuper, false)); } return descriptors.toArray(new HaxeTypeHierarchyNodeDescriptor[descriptors.size()]); }
Example 2
Source File: HaxeSubtypesHierarchyTreeStructure.java From intellij-haxe with Apache License 2.0 | 5 votes |
@NotNull private final Object[] typeListToObjArray(@NotNull final HaxeTypeHierarchyNodeDescriptor descriptor, @NotNull final List<PsiClass> classes) { final int size = classes.size(); if (size > 0) { final List<HaxeTypeHierarchyNodeDescriptor> descriptors = new ArrayList<HaxeTypeHierarchyNodeDescriptor>(size); for (PsiClass aClass : classes) { descriptors.add(new HaxeTypeHierarchyNodeDescriptor(myProject, descriptor, aClass, false)); } return descriptors.toArray(new HaxeTypeHierarchyNodeDescriptor[descriptors.size()]); } return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 3
Source File: CertificateTreeBuilder.java From consulo with Apache License 2.0 | 5 votes |
@Override public Object[] getChildElements(Object element) { if (element == RootDescriptor.ROOT) { return ArrayUtil.toStringArray(myCertificates.keySet()); } else if (element instanceof String) { return ArrayUtil.toObjectArray(myCertificates.get((String)element)); } return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 4
Source File: HaxeParameterInfoHandler.java From intellij-haxe with Apache License 2.0 | 5 votes |
@Override public Object[] getParametersForLookup(@NotNull LookupElement item, ParameterInfoContext context) { final Object object = item.getObject(); if (object instanceof PsiElement) { final PsiElement element = (PsiElement)object; final HaxeComponentType type = HaxeComponentType.typeOf(element.getParent()); if (type == HaxeComponentType.METHOD) { return new Object[]{element.getParent()}; } } return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 5
Source File: FileReference.java From consulo with Apache License 2.0 | 5 votes |
@Override @Nonnull public Object[] getVariants() { FileReferenceCompletion completion = FileReferenceCompletion.getInstance(); if (completion != null) { return completion.getFileReferenceCompletionVariants(this); } return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 6
Source File: StringUtilsTest.java From EclipseCodeFormatter with Apache License 2.0 | 4 votes |
@Override @NotNull public <T> T[] getComponents(Class<T> baseClass) { return (T[]) ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 7
Source File: ViewHelperXmlElementDescriptor.java From idea-php-typo3-plugin with MIT License | 4 votes |
@NotNull @Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 8
Source File: CSharpGenericParameterInfoHandler.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Nullable @Override public Object[] getParametersForDocumentation(DotNetGenericParameterListOwner p, ParameterInfoContext context) { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 9
Source File: CSharpGenericParameterInfoHandler.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Nullable @Override public Object[] getParametersForLookup(LookupElement item, ParameterInfoContext context) { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 10
Source File: RTImportTagDescriptor.java From react-templates-plugin with MIT License | 4 votes |
@Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 11
Source File: RTClassTagDescriptor.java From react-templates-plugin with MIT License | 4 votes |
@Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 12
Source File: ISMLTagDescriptor.java From intellij-demandware with MIT License | 4 votes |
@Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 13
Source File: GraphQLCachingReference.java From js-graphql-intellij-plugin with MIT License | 4 votes |
@NotNull @Override public Object[] getVariants() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 14
Source File: CppParameterInfo.java From CppTools with Apache License 2.0 | 4 votes |
public Object[] getParametersForDocumentation(String s, ParameterInfoContext parameterInfoContext) { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 15
Source File: RTClassTagDescriptor.java From react-templates-plugin with MIT License | 4 votes |
@Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 16
Source File: RenameableFakePsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 17
Source File: XQueryParameterInfoHandler.java From intellij-xquery with Apache License 2.0 | 4 votes |
@Nullable @Override public Object[] getParametersForLookup(LookupElement item, ParameterInfoContext context) { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 18
Source File: DialogWrapperPeer.java From consulo with Apache License 2.0 | 4 votes |
public Object[] getCurrentModalEntities() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 19
Source File: WeexAttrDescriptor.java From weex-language-support with MIT License | 4 votes |
@Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }
Example 20
Source File: ViewHelperArgumentDescriptor.java From idea-php-typo3-plugin with MIT License | 4 votes |
@NotNull @Override public Object[] getDependences() { return ArrayUtil.EMPTY_OBJECT_ARRAY; }