/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | LintColumn.java | 89 public abstract String getValue(@NonNull IMarker marker); in getValue() argument 95 public StyledString getStyledValue(@NonNull IMarker marker) { in getStyledValue() argument 104 public Image getImage(@NonNull IMarker marker) { in getImage() argument 113 public Font getFont(@NonNull IMarker marker) { in getFont() argument 159 public String getValue(@NonNull IMarker marker) { in getValue() argument 160 return getStyledValue(marker).toString(); in getValue() 164 public StyledString getStyledValue(@NonNull IMarker marker) { in getStyledValue() argument 167 String message = marker.getAttribute(IMarker.MESSAGE, ""); in getStyledValue() 170 int count = mList.getCount(marker); in getStyledValue() 180 public Image getImage(@NonNull IMarker marker) { in getImage() argument [all …]
|
D | LintFixGenerator.java | 112 public boolean hasResolutions(IMarker marker) { in hasResolutions() argument 114 assert marker.getType().equals(AdtConstants.MARKER_LINT); in hasResolutions() 122 public IMarkerResolution[] getResolutions(IMarker marker) { in getResolutions() argument 123 String id = marker.getAttribute(EclipseLintRunner.MARKER_CHECKID_PROPERTY, in getResolutions() 125 IResource resource = marker.getResource(); in getResolutions() 130 AddSuppressAnnotation.createFixes(marker, id, resolutions); in getResolutions() 133 resolutions.add(new MoreInfoProposal(id, marker.getAttribute(IMarker.MESSAGE, null))); in getResolutions() 178 for (IMarker marker : markers) { in computeQuickAssistProposals() 179 String id = marker.getAttribute(EclipseLintRunner.MARKER_CHECKID_PROPERTY, in computeQuickAssistProposals() 183 List<LintFix> fixes = LintFix.getFixes(id, marker); in computeQuickAssistProposals() [all …]
|
D | LintListDialog.java | 189 private void selectMarker(IMarker marker) { in selectMarker() argument 190 if (marker == null) { in selectMarker() 195 mDetailsText.setText(EclipseLintClient.describe(marker)); in selectMarker() 213 for (IMarker marker : selection) { in widgetSelected() 214 List<LintFix> fixes = LintFix.getFixes(EclipseLintClient.getId(marker), marker); in widgetSelected() 231 for (IMarker marker : mList.getSelectedMarkers()) { in widgetSelected() 232 String id = EclipseLintClient.getId(marker); in widgetSelected() 238 for (IMarker marker : mList.getSelectedMarkers()) { in widgetSelected() 239 LintFixGenerator.addSuppressAnnotation(marker); in widgetSelected() 243 for (IMarker marker : mList.getSelectedMarkers()) { in widgetSelected() [all …]
|
D | AddSuppressAttribute.java | 70 @NonNull IMarker marker, in AddSuppressAttribute() argument 76 mMarker = marker; in AddSuppressAttribute() 142 @NonNull IMarker marker, in createFixes() argument 145 String fileName = marker.getResource().getName(); in createFixes() 150 int offset = marker.getAttribute(IMarker.CHAR_START, -1); in createFixes() 177 fixes.add(new AddSuppressAttribute(editor, id, marker, element, desc, null)); in createFixes() 182 String message = marker.getAttribute(IMarker.MESSAGE, null); in createFixes() 192 fixes.add(new AddSuppressAttribute(editor, id, marker, element, in createFixes() 197 fixes.add(new AddSuppressAttribute(editor, id, marker, element, in createFixes() 219 @NonNull IMarker marker, in createFixForAll() argument [all …]
|
D | LintViewPart.java | 332 for (IMarker marker : markers) { in enableActions() 333 if (!LintFix.hasFix(EclipseLintClient.getId(marker))) { in enableActions() 340 List<LintFix> fixes = LintFix.getFixes(EclipseLintClient.getId(marker), marker); in enableActions() 350 for (IMarker marker : markers) { in enableActions() 351 IResource resource = marker.getResource(); in enableActions() 490 for (IMarker marker : markers) { in run() 491 List<LintFix> fixes = LintFix.getFixes(EclipseLintClient.getId(marker), in run() 492 marker); in run() 497 IResource resource = marker.getResource(); in run() 501 int start = marker.getAttribute(IMarker.CHAR_START, -1); in run() [all …]
|
D | LintList.java | 277 for (IMarker marker : markers) { in getMarkers() 278 markerList.add(marker); in getMarkers() 279 int severity = marker.getAttribute(IMarker.SEVERITY, 0); in getMarkers() 354 for (IMarker marker : list) { in getElements() 355 String id = EclipseLintClient.getId(marker); in getElements() 356 types.put(id, marker); in getElements() 408 public int getCount(IMarker marker) { in getCount() argument 410 Integer count = mTypeCount.get(marker); in getCount() 546 for (IMarker marker : topMarkers) { in runInUIThread() 547 String id = EclipseLintClient.getId(marker); in runInUIThread() [all …]
|
D | DosLineEndingsFix.java | 27 protected DosLineEndingsFix(String id, IMarker marker) { in DosLineEndingsFix() argument 28 super(id, marker); in DosLineEndingsFix()
|
D | EclipseLintClient.java | 400 IMarker marker = null; 407 marker = BaseProjectHelper.markResource(resource, MARKER_LINT, 420 marker = BaseProjectHelper.markResource(file, MARKER_LINT, 426 if (marker == null) { 427 marker = BaseProjectHelper.markResource(mResources.get(0), MARKER_LINT, 431 if (marker != null) { 434 marker.setAttribute(MARKER_CHECKID_PROPERTY, issue.getId()); 444 if (mCollectNodes && location != null && marker != null) { 461 mNodeMap.put(node, marker); 464 mNodeMap.put(node, marker); [all …]
|
D | AddSuppressAnnotation.java | 92 @NonNull IMarker marker, in AddSuppressAnnotation() argument 97 mMarker = marker; in AddSuppressAnnotation() 119 public void run(IMarker marker) { in run() argument 310 public static void createFixes(IMarker marker, String id, in createFixes() argument 324 int start = marker.getAttribute(IMarker.CHAR_START, -1); in createFixes() 325 int end = marker.getAttribute(IMarker.CHAR_END, -1); in createFixes() 337 String message = marker.getAttribute(IMarker.MESSAGE, null); in createFixes() 407 resolutions.add(new AddSuppressAnnotation(id, marker, declaration, desc, null)); in createFixes() 418 resolutions.add(new AddSuppressAnnotation(id, marker, declaration, desc, in createFixes()
|
D | AddPrefixFix.java | 34 private AddPrefixFix(String id, IMarker marker) { in AddPrefixFix() argument 35 super(id, marker); in AddPrefixFix()
|
D | SetScrollViewSizeFix.java | 35 private SetScrollViewSizeFix(String id, IMarker marker) { in SetScrollViewSizeFix() argument 36 super(id, marker); in SetScrollViewSizeFix()
|
D | DocumentFix.java | 32 protected DocumentFix(String id, IMarker marker) { in DocumentFix() argument 33 super(id, marker); in DocumentFix()
|
D | LinearLayoutWeightFix.java | 36 private LinearLayoutWeightFix(String id, IMarker marker) { in LinearLayoutWeightFix() argument 37 super(id, marker); in LinearLayoutWeightFix()
|
D | ObsoleteLayoutParamsFix.java | 32 private ObsoleteLayoutParamsFix(String id, IMarker marker) { in ObsoleteLayoutParamsFix() argument 33 super(id, marker); in ObsoleteLayoutParamsFix()
|
D | LintFix.java | 63 protected LintFix(String id, IMarker marker) { in LintFix() argument 65 mMarker = marker; in LintFix() 192 public static List<LintFix> getFixes(@NonNull String id, @NonNull IMarker marker) { in getFixes() argument 199 LintFix fix = constructor.newInstance(id, marker); in getFixes()
|
D | TypographyFix.java | 37 private TypographyFix(String id, IMarker marker) { in TypographyFix() argument 38 super(id, marker); in TypographyFix()
|
D | UseCompoundDrawableDetectorFix.java | 41 protected UseCompoundDrawableDetectorFix(String id, IMarker marker) { in UseCompoundDrawableDetectorFix() argument 42 super(id, marker); in UseCompoundDrawableDetectorFix()
|
D | ExtractStringFix.java | 46 private ExtractStringFix(String id, IMarker marker) { in ExtractStringFix() argument 47 super(id, marker); in ExtractStringFix()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/build/ |
D | AaptParserTest.java | 173 for (IMarker marker : markers) { in checkRanges() 174 marker.delete(); in checkRanges() 188 IMarker marker = markers[0]; in checkRanges() local 189 String message = marker.getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$ in checkRanges() 192 int start = marker.getAttribute(IMarker.CHAR_START, 0); in checkRanges() 193 int end = marker.getAttribute(IMarker.CHAR_END, 0); in checkRanges()
|
D | AaptQuickFixTest.java | 125 for (IMarker marker : markers) { in checkResourceFix() 126 int start = marker.getAttribute(IMarker.CHAR_START, 0); in checkResourceFix() 127 int end = marker.getAttribute(IMarker.CHAR_END, 0); in checkResourceFix() 130 assertTrue(aaptQuickFix.hasResolutions(marker)); in checkResourceFix() 131 IMarkerResolution[] resolutions = aaptQuickFix.getResolutions(marker); in checkResourceFix() 236 IMarker marker = markers[0]; in checkNamespaceFix() local 238 assertTrue(aaptQuickFix.hasResolutions(marker)); in checkNamespaceFix() 239 IMarkerResolution[] resolutions = aaptQuickFix.getResolutions(marker); in checkNamespaceFix()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ |
D | BaseProjectHelper.java | 145 IMarker marker = resource.createMarker(markerId); in markResource() local 146 marker.setAttribute(IMarker.MESSAGE, message); in markResource() 147 marker.setAttribute(IMarker.SEVERITY, severity); in markResource() 151 if (lineNumber < 1 && marker.isSubtypeOf(IMarker.TEXT)) { in markResource() 156 marker.setAttribute(IMarker.LINE_NUMBER, lineNumber); in markResource() 160 marker.setAttribute(IMarker.CHAR_START, startOffset); in markResource() 161 marker.setAttribute(IMarker.CHAR_END, endOffset); in markResource() 169 return marker; in markResource() 212 IMarker marker = project.createMarker(markerId); in markProject() local 213 marker.setAttribute(IMarker.MESSAGE, message); in markProject() [all …]
|
D | XmlErrorHandler.java | 161 IMarker marker = BaseProjectHelper.markResource(getFile(), in checkClass() local 165 if (marker != null) { in checkClass() 167 marker.setAttribute(AdtConstants.MARKER_ATTR_TYPE, in checkClass() 169 marker.setAttribute(AdtConstants.MARKER_ATTR_CLASS, className); in checkClass()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
D | AaptQuickFix.java | 90 public boolean hasResolutions(IMarker marker) { in hasResolutions() argument 93 message = (String) marker.getAttribute(IMarker.MESSAGE); in hasResolutions() 104 public IMarkerResolution[] getResolutions(IMarker marker) { in getResolutions() argument 105 IResource markerResource = marker.getResource(); in getResolutions() 108 String message = (String) marker.getAttribute(IMarker.MESSAGE); in getResolutions() 118 int start = marker.getAttribute(IMarker.CHAR_START, 0); in getResolutions() 119 int end = marker.getAttribute(IMarker.CHAR_END, 0); in getResolutions() 179 for (IMarker marker : markers) { in computeQuickAssistProposals() 180 String message = marker.getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$ in computeQuickAssistProposals() 182 int start = marker.getAttribute(IMarker.CHAR_START, 0); in computeQuickAssistProposals() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | LintTooltip.java | 60 IMarker marker = delegate.getIssueForNode(node); in createContents() local 61 if (marker != null) { in createContents() 62 String message = marker.getAttribute(IMarker.MESSAGE, null); in createContents()
|
D | LintOverlay.java | 108 IMarker marker = editor.getIssueForNode(vi.getUiViewNode()); in paint() local 109 if (marker != null) { in paint() 110 int severity = marker.getAttribute(IMarker.SEVERITY, 0); in paint()
|