Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 94) sorted by relevance

1234

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRenameResourceParticipantTest.java340 @NonNull Object resource, in renameResource() argument
344 renameResource(testData, resource, updateReferences, newName, expected, null); in renameResource()
349 @NonNull Object resource, in renameResource() argument
355 renameResource(project, resource, updateReferences, newName, expected, expectedWarnings); in renameResource()
360 @NonNull Object resource, in renameResource() argument
366 if (resource instanceof String) { in renameResource()
367 String url = (String) resource; in renameResource()
368 assert url.startsWith("@") : resource; in renameResource()
377 } else if (resource instanceof IResource) { in renameResource()
378 IResource r = (IResource) resource; in renameResource()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/
DPreCompilerDeltaVisitor.java182 IResource resource = delta.getResource(); in visit() local
183 IPath path = resource.getFullPath(); in visit()
212 IFile manifestFile = (IFile)resource; in visit()
255 if (resource.getType() == IResource.FOLDER) { in visit()
259 if (resource.getType() != IResource.FILE) { in visit()
262 IFile file = (IFile)resource; in visit()
275 String fileName = resource.getName(); in visit()
326 if (resource.getType() == IResource.FOLDER) { in visit()
331 String ext = resource.getFileExtension(); in visit()
334 String p = resource.getProjectRelativePath().toString(); in visit()
[all …]
DPatternBasedDeltaVisitor.java85 IResource resource = delta.getResource(); in visit() local
87 if (resource.getType() == IResource.FOLDER) { in visit()
89 return BuildHelper.checkFolderForPackaging((IFolder)resource); in visit()
91 } else if (resource.getType() == IResource.FILE) { in visit()
92 IPath path = resource.getFullPath().makeRelativeTo(mDeltaProject.getFullPath()); in visit()
108 resource.getFullPath().toString()); in visit()
112 resource.getFullPath().toString()); in visit()
126 resource.getFullPath().toString()); in visit()
130 resource.getFullPath().toString()); in visit()
DResourceManagerBuilder.java148 IResource resource = project.findMember(SdkConstants.FD_GEN_SOURCES); in build() local
149 genFolderPresent = resource != null && resource.exists(); in build()
155 if (resource.getType() == IResource.FOLDER) { in build()
159 resource.getFullPath().toString()); in build()
164 resource.getFullPath().toString()); in build()
DBaseBuilder.java166 protected final void checkXML(IResource resource, BaseDeltaVisitor visitor) { in checkXML() argument
169 if (resource instanceof IFile) { in checkXML()
170 IFile file = (IFile)resource; in checkXML()
217 public final void removeMarkersFromResource(IResource resource, String markerId) { in removeMarkersFromResource() argument
219 if (resource.exists()) { in removeMarkersFromResource()
220 resource.deleteMarkers(markerId, true, IResource.DEPTH_ZERO); in removeMarkersFromResource()
223 String msg = String.format(Messages.Marker_Delete_Error, markerId, resource.toString()); in removeMarkersFromResource()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DIdeScanningContext.java102 public void startScanning(@NonNull IResource resource) { in startScanning() argument
104 mCurrentFile = resource; in startScanning()
105 mScannedResources.add(resource); in startScanning()
113 public void finishScanning(@NonNull IResource resource) { in finishScanning() argument
141 for (IResource resource : mScannedResources) { in updateMarkers()
143 if (resource.exists()) { in updateMarkers()
144 int depth = resource instanceof IFolder ? DEPTH_ONE : DEPTH_ZERO; in updateMarkers()
145 resource.deleteMarkers(MARKER_AAPT_COMPILE, true, depth); in updateMarkers()
173 for (IResource resource : mScannedResources) { in hasModifiedFilesWithErrors()
175 int depth = resource instanceof IFolder ? DEPTH_ONE : DEPTH_ZERO; in hasModifiedFilesWithErrors()
[all …]
DDynamicIdMap.java61 public Integer getId(Pair<ResourceType, String> resource) { in getId() argument
62 Integer value = mDynamicIds.get(resource); in getId()
65 mDynamicIds.put(resource, value); in getId()
66 mRevDynamicIds.put(value, resource); in getId()
DProjectClassLoader.java309 IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(path); in handleClassPathEntry() local
310 if (resource != null && resource.exists() && in handleClassPathEntry()
311 resource.getType() == IResource.FILE) { in handleClassPathEntry()
314 oslibraryList.add(new File(resource.getLocation().toOSString()) in handleClassPathEntry()
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/discovery/
DNdkScannerInfoCollector.java39 public void contributeToScannerConfig(Object resource, Map scannerInfo) { in contributeToScannerConfig() argument
44 public List getCollectedScannerInfo(Object resource, ScannerInfoTypes type) { in getCollectedScannerInfo() argument
79 public void deleteAllPaths(IResource resource) { in deleteAllPaths() argument
84 public void deleteAllSymbols(IResource resource) { in deleteAllSymbols() argument
89 public void deletePath(IResource resource, String path) { in deletePath() argument
94 public void deleteSymbol(IResource resource, String symbol) { in deleteSymbol() argument
99 public void deleteAll(IResource resource) { in deleteAll() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DLintFixGenerator.java125 IResource resource = marker.getResource(); in getResolutions() local
129 if (resource.getName().endsWith(DOT_JAVA)) { in getResolutions()
134 resolutions.add(new SuppressProposal(resource, id, false)); in getResolutions()
135 resolutions.add(new SuppressProposal(resource.getProject(), id, true /* all */)); in getResolutions()
136 resolutions.add(new SuppressProposal(resource, id, true /* all */)); in getResolutions()
137 resolutions.add(new ClearMarkersProposal(resource, true /* all */)); in getResolutions()
217 public static void suppressDetector(String id, boolean updateMarkers, IResource resource, in suppressDetector() argument
223 Collections.singletonList(resource), null, false); in suppressDetector()
225 IProject eclipseProject = resource.getProject(); in suppressDetector()
232 File file = AdtUtils.getAbsolutePath(resource).toFile(); in suppressDetector()
[all …]
DLintViewPart.java46 import org.eclipse.jface.resource.ImageDescriptor;
351 IResource resource = marker.getResource(); in enableActions() local
352 if (resource instanceof IFile || resource instanceof IFolder) { in enableActions()
354 String name = resource.getName(); in enableActions()
497 IResource resource = marker.getResource(); in run() local
498 if (fix.needsFocus() && resource instanceof IFile) { in run()
506 AdtPlugin.openFile((IFile) resource, region); in run()
508 AdtPlugin.log(e, "Can't open file %1$s", resource); in run()
513 provider.connect(resource); in run()
514 IDocument document = provider.getDocument(resource); in run()
[all …]
DEclipseLintRunner.java200 for (IResource resource : resources) { in addLibraries()
201 if (resource instanceof IProject) { in addLibraries()
211 for (IResource resource : resources) { in addLibraries()
212 if (resource instanceof IProject) { in addLibraries()
213 IProject project = (IProject) resource; in addLibraries()
217 result.add(resource); in addLibraries()
DLintColumn.java29 import org.eclipse.jface.resource.JFaceResources;
325 IResource resource = marker.getResource(); in getStyledValue() local
326 if (resource instanceof IProject) { in getStyledValue()
327 styledString.append(resource.getName()); in getStyledValue()
330 styledString.append(resource.getName()); in getStyledValue()
331 if (resource instanceof IFile) { in getStyledValue()
336 } else if (resource instanceof IFolder) { in getStyledValue()
340 if (!(resource.getParent() instanceof IProject)) { in getStyledValue()
342 styledString.append(resource.getParent().getName(), in getStyledValue()
346 styledString.append(String.format(" (%1$s)", resource.getProject().getName()), in getStyledValue()
DLintDeltaProcessor.java114 IResource resource = delta.getResource(); in gatherFiles() local
115 String name = resource.getName(); in gatherFiles()
117 if (resource.equals(mActiveFile)) { in gatherFiles()
118 mFiles.add(resource); in gatherFiles()
132 mFiles.add(resource); in gatherFiles()
DLintJob.java89 for (IResource resource : mResources) { in run()
90 File file = AdtUtils.getAbsolutePath(resource).toFile(); in run()
93 if (resource instanceof IProject && mSource == null) { in run()
96 String name = resource.getName(); in run()
103 } else if (name.endsWith(DOT_JAVA) && resource instanceof IFile) { in run()
112 } else if (name.endsWith(DOT_CLASS) && resource instanceof IFile) { in run()
DEclipseLintClient.java276 for (IResource resource : mResources) { in getProject()
277 IProject p = resource.getProject(); in getProject()
338 IResource resource = AdtUtils.fileToResource(location.getFile()); in report() local
339 if (resource != null && resource.isAccessible()) { in report()
340 marker = BaseProjectHelper.markResource(resource, MARKER_LINT, in report()
424 public static void clearMarkers(@NonNull IResource resource) { in clearMarkers() argument
425 clearMarkers(Collections.singletonList(resource)); in clearMarkers()
430 for (IResource resource : resources) { in clearMarkers()
432 if (resource.isAccessible()) { in clearMarkers()
433 resource.deleteMarkers(MARKER_LINT, false, IResource.DEPTH_INFINITE); in clearMarkers()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
DAaptQuickFix.java126 String resource = document.get(start, length); in getResolutions() local
127 if (ResourceHelper.canCreateResource(resource)) { in getResolutions()
129 new CreateResourceProposal(project, resource) in getResolutions()
185 String resource = document.get(start, length); in computeQuickAssistProposals() local
188 if (ResourceHelper.canCreateResource(resource)) { in computeQuickAssistProposals()
191 new CreateResourceProposal(project, resource) in computeQuickAssistProposals()
340 CreateResourceProposal(IProject project, String resource) { in CreateResourceProposal() argument
343 mResource = resource; in CreateResourceProposal()
347 Pair<ResourceType,String> resource = ResourceRepository.parseResource(mResource); in perform() local
348 ResourceType type = resource.getFirst(); in perform()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DNewTemplateWizard.java164 IResource resource = project.findMember(path); in openFiles()
165 if (resource != null) { in openFiles()
166 if (resource instanceof IFile) { in openFiles()
168 AdtPlugin.openFile((IFile) resource, null, false); in openFiles()
171 resource.getFullPath().toString()); in openFiles()
177 BasicNewResourceWizard.selectAndReveal(resource, in openFiles()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DXmlStringFileHelper.java100 IResource resource = project.getFile(xmlFileWsPath); in internalGetResIdsForFile() local
102 if (resource != null && resource.exists() && resource.getType() == IResource.FILE) { in internalGetResIdsForFile()
106 IFile file = (IFile) resource; in internalGetResIdsForFile()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/
DAndroidTypeMoveParticipantTest.java115 IResource resource = type.getResource(); in moveType() local
116 assertNotNull(typeFqcn, resource); in moveType()
117 assertTrue(typeFqcn, resource.exists()); in moveType()
119 IResource[] resources = new IResource[] { resource }; in moveType()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DBaseProjectHelper.java114 public final static IMarker markResource(IResource resource, String markerId, in markResource() argument
116 return markResource(resource, markerId, message, lineNumber, -1, -1, severity); in markResource()
135 public final static IMarker markResource(IResource resource, String markerId, in markResource() argument
137 if (!resource.isAccessible()) { in markResource()
142 IMarker marker = resource.createMarker(markerId); in markResource()
164 resource.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor()); in markResource()
169 markerId, resource.getFullPath()); in markResource()
185 public final static IMarker markResource(IResource resource, String markerId, in markResource() argument
187 return markResource(resource, markerId, message, -1, severity); in markResource()
DProjectHelper.java670 public static boolean saveStringProperty(IResource resource, String propertyName, in saveStringProperty() argument
675 resource.setPersistentProperty(qname, value); in saveStringProperty()
689 public static String loadStringProperty(IResource resource, String propertyName) { in loadStringProperty() argument
693 String value = resource.getPersistentProperty(qname); in loadStringProperty()
707 public static boolean saveBooleanProperty(IResource resource, String propertyName, in saveBooleanProperty() argument
709 return saveStringProperty(resource, propertyName, Boolean.toString(value)); in saveBooleanProperty()
719 public static boolean loadBooleanProperty(IResource resource, String propertyName, in loadBooleanProperty() argument
721 String value = loadStringProperty(resource, propertyName); in loadBooleanProperty()
729 public static Boolean loadBooleanProperty(IResource resource, String propertyName) { in loadBooleanProperty() argument
730 String value = loadStringProperty(resource, propertyName); in loadBooleanProperty()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRefactoringAssistant.java109 Pair<ResourceType, String> resource = null; in computeQuickAssistProposals() local
125 resource = RenameResourceXmlTextAction.findResource(doc, offset); in computeQuickAssistProposals()
144 resource = RenameResourceXmlTextAction.findResource(doc, offset); in computeQuickAssistProposals()
154 if (isTagName || isAttributeName || isValue || resource != null) { in computeQuickAssistProposals()
186 } else if (resource != null) { in computeQuickAssistProposals()
188 file.getProject(), resource.getFirst(), in computeQuickAssistProposals()
189 resource.getSecond(), null); in computeQuickAssistProposals()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/
DSourceRevealer.java136 IResource resource = unit.getResource(); in revealMethod() local
137 if (resource instanceof IFile) { in revealMethod()
138 IFile file = (IFile) resource; in revealMethod()
188 IResource resource = type.getResource(); in revealMethod() local
189 if (resource instanceof IFile) { in revealMethod()
193 return displayFile((IFile) resource, lineNumber); in revealMethod()
305 IResource resource) { in filterMatchByResource() argument
309 if (m.getResource().equals(resource)) { in filterMatchByResource()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourcePreviewHelper.java94 public void updatePreview(ResourceType type, String resource) { in updatePreview() argument
129 ResourceValue value = resources.findResValue(resource, false); in updatePreview()
140 ResourceValue drawable = resources.findResValue(resource, false); in updatePreview()
180 AdtPlugin.log(IStatus.WARNING, "Can't generate preview for %1$s", resource); in updatePreview()

1234