Home
last modified time | relevance | path

Searched refs:folderType (Results 1 – 11 of 11) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/
DNewXmlFileWizard.java194 String root, String rootAttributes, String child, ResourceFolderType folderType) { in createXmlFile() argument
211 if (folderType == ResourceFolderType.LAYOUT && root.equals(GRID_LAYOUT)) { in createXmlFile()
258 XmlFormatStyle style = EclipseXmlPrettyPrinter.getForFolderType(folderType); in createXmlFile()
283 && (folderType == ResourceFolderType.LAYOUT in createXmlFile()
284 || folderType == ResourceFolderType.VALUES)) { in createXmlFile()
307 public static boolean canCreateXmlFile(ResourceFolderType folderType) { in canCreateXmlFile() argument
308 TypeInfo typeInfo = NewXmlFileCreationPage.getTypeInfo(folderType); in canCreateXmlFile()
322 ResourceFolderType folderType) { in createXmlFile() argument
323 TypeInfo type = NewXmlFileCreationPage.getTypeInfo(folderType); in createXmlFile()
330 return createXmlFile(file, xmlns, root, attrs, null, folderType); in createXmlFile()
DNewXmlFileCreationPage.java1123 ResourceFolderType folderType = type.getResFolderType();
1124 error = ResourceNameValidator.create(true, folderType).isValid(fileName);
1154 static TypeInfo getTypeInfo(ResourceFolderType folderType) {
1156 if (typeInfo.getResFolderType() == folderType) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DEclipseXmlPrettyPrinter.java213 public static XmlFormatStyle getForFolderType(ResourceFolderType folderType) { in getForFolderType() argument
214 switch (folderType) { in getForFolderType()
243 ResourceFolderType folderType = ResourceFolderType.getFolderType(parentName); in getForFile() local
244 return getForFolderType(folderType); in getForFile()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DResourceHelper.java195 for (ResourceFolderType folderType : folderTypes) { in isValueBasedResourceType()
196 if (folderType == ResourceFolderType.VALUES) { in isValueBasedResourceType()
219 for (ResourceFolderType folderType : folderTypes) { in isFileBasedResourceType()
220 if (folderType != ResourceFolderType.VALUES) { in isFileBasedResourceType()
286 for (ResourceFolderType folderType : FolderTypeRelationship.getRelatedFolders(type)) { in canCreateResourceType()
287 if (NewXmlFileWizard.canCreateXmlFile(folderType)) { in canCreateResourceType()
299 ResourceFolderType folderType = null; in createFileResource() local
302 folderType = f; in createFileResource()
306 if (folderType == null) { in createFileResource()
312 IPath projectPath = new Path(FD_RESOURCES + WS_SEP + folderType.getName() + WS_SEP in createFileResource()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DAndroidTypeRenameParticipant.java334 ResourceFolderType folderType = ResourceFolderType.getFolderType(folderName); in addLayoutFileChanges() local
335 if (folderType != ResourceFolderType.LAYOUT && in addLayoutFileChanges()
336 folderType != ResourceFolderType.VALUES) { in addLayoutFileChanges()
350 addXmlFileChanges(file, result, folderType); in addLayoutFileChanges()
361 ResourceFolderType folderType) { in addXmlFileChanges() argument
376 if (folderType == null) { in addXmlFileChanges()
379 } else if (folderType == ResourceFolderType.VALUES) { in addXmlFileChanges()
382 assert folderType == ResourceFolderType.LAYOUT; in addXmlFileChanges()
DRenameResourceParticipant.java443 ResourceFolderType folderType = ResourceFolderType.getFolderType(folderName); in addResourceFileChanges() local
452 addResourceXmlChanges(file, change, folderType); in addResourceFileChanges()
460 && mFolderType == folderType) { in addResourceFileChanges()
496 ResourceFolderType folderType) { in addResourceXmlChanges() argument
511 addReplacements(edits, root, document, folderType); in addResourceXmlChanges()
544 @Nullable ResourceFolderType folderType) { in addReplacements() argument
546 if (folderType == ResourceFolderType.VALUES) { in addReplacements()
628 addReplacements(edits, (Element) child, document, folderType); in addReplacements()
DAndroidTypeMoveParticipant.java199 ResourceFolderType folderType = ResourceFolderType.getFolderType(folderName); in addLayoutFileChanges() local
200 if (folderType != ResourceFolderType.LAYOUT) { in addLayoutFileChanges()
DAndroidPackageRenameParticipant.java359 ResourceFolderType folderType = ResourceFolderType.getFolderType(folderName);
360 if (folderType != ResourceFolderType.LAYOUT) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/
DAnimationContentAssist.java64 ResourceFolderType folderType = ResourceFolderType.getFolderType(folderName); in getRootDescriptorId() local
65 if (folderType == ResourceFolderType.ANIM) { in getRootDescriptorId()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DTemplateHandler.java764 ResourceFolderType folderType = ResourceFolderType.getFolderType(parentFolderName); in merge() local
765 if (folderType != null) { in merge()
771 modified = mergeResourceFile(currentDocument, fragment, folderType, paramMap); in merge()
808 ResourceFolderType folderType, Map<String, Object> paramMap) { in mergeResourceFile() argument
842 if (folderType == ResourceFolderType.VALUES) { in mergeResourceFile()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/
DAdtUtils.java1532 public static ResourceType getResourceTypeFor(@NonNull ResourceFolderType folderType) {
1533 switch (folderType) {
1557 assert false : folderType;