equal
deleted
inserted
replaced
|
1 "{ Encoding: utf8 }" |
|
2 |
1 " |
3 " |
2 COPYRIGHT (c) 2006 by eXept Software AG |
4 COPYRIGHT (c) 2006 by eXept Software AG |
3 All Rights Reserved |
5 All Rights Reserved |
4 |
6 |
5 This software is furnished under a license and may be used |
7 This software is furnished under a license and may be used |
269 " |
271 " |
270 ! ! |
272 ! ! |
271 |
273 |
272 !ProjectProblem class methodsFor:'instance creation'! |
274 !ProjectProblem class methodsFor:'instance creation'! |
273 |
275 |
|
276 newClass:aClass usesPoolButItDoesNotExist:poolName |
|
277 ^ self newClassUsesPoolButItDoesNotExist |
|
278 className: aClass name; |
|
279 poolName: poolName; |
|
280 yourself |
|
281 ! |
|
282 |
274 newClassIsCompiledButSuperclassIsAutoloaded |
283 newClassIsCompiledButSuperclassIsAutoloaded |
275 |
284 |
276 ^ClassIsCompiledButSuperclassIsAutoloaded new |
285 ^ClassIsCompiledButSuperclassIsAutoloaded new |
277 |
286 |
278 "Created: / 20-09-2013 / 11:18:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
287 "Created: / 20-09-2013 / 11:18:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
297 ^ClassListedBeforeItsSuperclass new |
306 ^ClassListedBeforeItsSuperclass new |
298 |
307 |
299 "Created: / 13-09-2012 / 17:13:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
308 "Created: / 13-09-2012 / 17:13:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
300 ! |
309 ! |
301 |
310 |
|
311 newClassListedBeforeItsSuperclass:aClass |
|
312 ^ self newClassListedBeforeItsSuperclass |
|
313 className: aClass name; |
|
314 superClassName: aClass superclass name |
|
315 ! |
|
316 |
302 newClassListedButDoesNotExist |
317 newClassListedButDoesNotExist |
303 |
318 |
304 ^ClassListedButDoesNotExist new |
319 ^ClassListedButDoesNotExist new |
305 |
320 |
306 "Created: / 23-02-2012 / 13:18:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
321 "Created: / 23-02-2012 / 13:18:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
314 newClassListedMultipleTimes |
329 newClassListedMultipleTimes |
315 |
330 |
316 ^ClassListedMultipleTimes new |
331 ^ClassListedMultipleTimes new |
317 |
332 |
318 "Created: / 13-09-2012 / 17:40:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
333 "Created: / 13-09-2012 / 17:40:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
334 ! |
|
335 |
|
336 newClassListedMultipleTimes:aClass |
|
337 ^ self newClassListedMultipleTimes |
|
338 className:aClass name; |
|
339 yourself |
319 ! |
340 ! |
320 |
341 |
321 newClassNotListed |
342 newClassNotListed |
322 |
343 |
323 ^ClassNotListed new |
344 ^ClassNotListed new |
1558 label |
1579 label |
1559 "Return the label (possibly instance if a Text) shortly describing the problem" |
1580 "Return the label (possibly instance if a Text) shortly describing the problem" |
1560 |
1581 |
1561 |mthd text| |
1582 |mthd text| |
1562 |
1583 |
1563 text := 'Extension method %1 » %2 listed but in different package'. |
1584 text := 'Extension method %1 » %2 listed but in different package'. |
1564 |
1585 |
1565 (mthd := self method) notNil ifTrue:[ |
1586 (mthd := self method) notNil ifTrue:[ |
1566 mthd package = mthd mclass package ifTrue:[ |
1587 mthd package = mthd mclass package ifTrue:[ |
1567 text := 'Extension method %1 » %2 listed but in classes package' |
1588 text := 'Extension method %1 » %2 listed but in classes package' |
1568 ] |
1589 ] |
1569 ]. |
1590 ]. |
1570 ^ text |
1591 ^ text |
1571 bindWith: className allBold |
1592 bindWith: className allBold |
1572 with: selector allBold |
1593 with: selector allBold |
1623 ! |
1644 ! |
1624 |
1645 |
1625 label |
1646 label |
1626 "Return the label (possibly instance if a Text) shortly describing the problem" |
1647 "Return the label (possibly instance if a Text) shortly describing the problem" |
1627 |
1648 |
1628 ^'Extension method %1 » %2 not listed in project definition "%3"' bindWith: className allBold with: selector allBold with:self packageDefinitionClass |
1649 ^'Extension method %1 » %2 not listed in project definition "%3"' bindWith: className allBold with: selector allBold with:self packageDefinitionClass |
1629 |
1650 |
1630 "Modified: / 23-02-2012 / 14:22:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1651 "Modified: / 23-02-2012 / 14:22:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1631 ! ! |
1652 ! ! |
1632 |
1653 |
1633 !ProjectProblem::ExtensionMethodNotListed methodsFor:'fixing'! |
1654 !ProjectProblem::ExtensionMethodNotListed methodsFor:'fixing'! |
1697 ! |
1718 ! |
1698 |
1719 |
1699 label |
1720 label |
1700 "Return the label (possibly instance if a Text) shortly describing the problem" |
1721 "Return the label (possibly instance if a Text) shortly describing the problem" |
1701 |
1722 |
1702 ^'Extension method %1 » %2 listed but class not existing' |
1723 ^'Extension method %1 » %2 listed but class not existing' |
1703 bindWith: className allBold |
1724 bindWith: className allBold |
1704 with: selector allBold |
1725 with: selector allBold |
1705 |
1726 |
1706 "Modified: / 23-02-2012 / 14:22:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1727 "Modified: / 23-02-2012 / 14:22:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1707 ! ! |
1728 ! ! |
1851 |
1872 |
1852 label |
1873 label |
1853 "Return the label (possibly instance if a Text) shortly describing the problem" |
1874 "Return the label (possibly instance if a Text) shortly describing the problem" |
1854 |
1875 |
1855 ^ (errors notNil |
1876 ^ (errors notNil |
1856 ifTrue:[ 'Uncompilable method %1 » %2' ] |
1877 ifTrue:[ 'Uncompilable method %1 » %2' ] |
1857 ifFalse:[ 'Warnings for method %1 » %2' ]) bindWith: className allBold with: selector allBold |
1878 ifFalse:[ 'Warnings for method %1 » %2' ]) bindWith: className allBold with: selector allBold |
1858 |
1879 |
1859 |
1880 |
1860 "Modified: / 11-04-2012 / 16:04:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1881 "Modified: / 11-04-2012 / 16:04:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1861 ! ! |
1882 ! ! |
1862 |
1883 |
2096 |
2117 |
2097 label |
2118 label |
2098 "Return the label (possibly instance if a Text) shortly describing the problem" |
2119 "Return the label (possibly instance if a Text) shortly describing the problem" |
2099 |
2120 |
2100 ^ ((self severity == #error) |
2121 ^ ((self severity == #error) |
2101 ifTrue:[ 'Uncompilable method %1 » %2' ] |
2122 ifTrue:[ 'Uncompilable method %1 » %2' ] |
2102 ifFalse:[ 'Warnings for method %1 » %2' ]) bindWith: className allBold with: selector allBold |
2123 ifFalse:[ 'Warnings for method %1 » %2' ]) bindWith: className allBold with: selector allBold |
2103 |
2124 |
2104 "Modified: / 29-05-2014 / 15:39:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2125 "Modified: / 29-05-2014 / 15:39:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2105 ! ! |
2126 ! ! |
2106 |
2127 |
2107 !ProjectProblem::MethodCompilabilityIssue2 methodsFor:'adding & removing'! |
2128 !ProjectProblem::MethodCompilabilityIssue2 methodsFor:'adding & removing'! |
2151 ! |
2172 ! |
2152 |
2173 |
2153 label |
2174 label |
2154 "Return the label (possibly instance if a Text) shortly describing the problem" |
2175 "Return the label (possibly instance if a Text) shortly describing the problem" |
2155 |
2176 |
2156 ^'Unpackaged method %1 » %2' bindWith: className allBold with: selector allBold |
2177 ^'Unpackaged method %1 » %2' bindWith: className allBold with: selector allBold |
2157 |
2178 |
2158 "Modified: / 23-02-2012 / 14:19:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2179 "Modified: / 23-02-2012 / 14:19:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2159 ! ! |
2180 ! ! |
2160 |
2181 |
2161 !ProjectProblem::MethodInNoPackage methodsFor:'fixing'! |
2182 !ProjectProblem::MethodInNoPackage methodsFor:'fixing'! |
2312 ! |
2333 ! |
2313 |
2334 |
2314 label |
2335 label |
2315 "Return the label (possibly instance if a Text) shortly describing the problem" |
2336 "Return the label (possibly instance if a Text) shortly describing the problem" |
2316 |
2337 |
2317 ^'Method %1 » %2 also present in other pacakge(s)' bindWith: className allBold with: selector allBold |
2338 ^'Method %1 » %2 also present in other pacakge(s)' bindWith: className allBold with: selector allBold |
2318 ! ! |
2339 ! ! |
2319 |
2340 |
2320 !ProjectProblem::MethodListedInOtherPackage methodsFor:'fixing'! |
2341 !ProjectProblem::MethodListedInOtherPackage methodsFor:'fixing'! |
2321 |
2342 |
2322 doRemoveMethodFromOtherPackages |
2343 doRemoveMethodFromOtherPackages |
2369 ! |
2390 ! |
2370 |
2391 |
2371 label |
2392 label |
2372 "Return the label (possibly instance if a Text) shortly describing the problem" |
2393 "Return the label (possibly instance if a Text) shortly describing the problem" |
2373 |
2394 |
2374 ^'Extension method %1 » %2 listed but not existing' bindWith: className allBold with: selector allBold |
2395 ^'Extension method %1 » %2 listed but not existing' bindWith: className allBold with: selector allBold |
2375 |
2396 |
2376 "Modified: / 23-02-2012 / 14:22:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2397 "Modified: / 23-02-2012 / 14:22:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2377 ! ! |
2398 ! ! |
2378 |
2399 |
2379 !ProjectProblem::ExtensionMethodListedButDoesNotExist methodsFor:'fixing'! |
2400 !ProjectProblem::ExtensionMethodListedButDoesNotExist methodsFor:'fixing'! |
2424 ! |
2445 ! |
2425 |
2446 |
2426 label |
2447 label |
2427 "Return the label (possibly instance if a Text) shortly describing the problem" |
2448 "Return the label (possibly instance if a Text) shortly describing the problem" |
2428 |
2449 |
2429 ^ 'Corrupted source code for %1 » %2' bindWith: className allBold with: selector allBold |
2450 ^ 'Corrupted source code for %1 » %2' bindWith: className allBold with: selector allBold |
2430 |
2451 |
2431 "Modified: / 11-04-2012 / 12:42:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2452 "Modified: / 11-04-2012 / 12:42:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2432 ! ! |
2453 ! ! |
2433 |
2454 |
2434 !ProjectProblem::MethodSourceNotAvailable methodsFor:'accessing'! |
2455 !ProjectProblem::MethodSourceNotAvailable methodsFor:'accessing'! |
2457 ! |
2478 ! |
2458 |
2479 |
2459 label |
2480 label |
2460 "Return the label (possibly instance if a Text) shortly describing the problem" |
2481 "Return the label (possibly instance if a Text) shortly describing the problem" |
2461 |
2482 |
2462 ^ 'Unavailable source code for %1 » %2' bindWith: className allBold with: selector allBold |
2483 ^ 'Unavailable source code for %1 » %2' bindWith: className allBold with: selector allBold |
2463 |
2484 |
2464 "Modified: / 11-04-2012 / 12:41:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2485 "Modified: / 11-04-2012 / 12:41:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2465 ! ! |
2486 ! ! |
2466 |
2487 |
2467 !ProjectProblem::ProjectDefinitionDoesNotExist methodsFor:'accessing'! |
2488 !ProjectProblem::ProjectDefinitionDoesNotExist methodsFor:'accessing'! |