1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.tapestry.resolver; |
16 |
| |
17 |
| import org.apache.hivemind.HiveMind; |
18 |
| import org.apache.hivemind.Location; |
19 |
| import org.apache.hivemind.Resource; |
20 |
| import org.apache.hivemind.impl.MessageFormatter; |
21 |
| import org.apache.tapestry.INamespace; |
22 |
| import org.apache.tapestry.spec.IComponentSpecification; |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
| |
30 |
| class ResolverMessages |
31 |
| { |
32 |
| protected static MessageFormatter _formatter = new MessageFormatter(ResolverMessages.class, |
33 |
| "ResolverStrings"); |
34 |
| |
35 |
1
| static String noSuchComponentType(String type, INamespace namespace)
|
36 |
| { |
37 |
1
| return _formatter.format("no-such-component-type", type, namespace);
|
38 |
| } |
39 |
| |
40 |
2
| static String noSuchPage(String name, INamespace namespace)
|
41 |
| { |
42 |
2
| return _formatter.format("no-such-page", name, namespace.getNamespaceId());
|
43 |
| } |
44 |
| |
45 |
14
| static String resolvingComponent(String type, INamespace namespace)
|
46 |
| { |
47 |
14
| return _formatter.format("resolving-component", type, namespace);
|
48 |
| } |
49 |
| |
50 |
57
| static String checkingResource(Resource resource)
|
51 |
| { |
52 |
57
| return _formatter.format("checking-resource", resource);
|
53 |
| } |
54 |
| |
55 |
10
| static String installingComponent(String type, INamespace namespace,
|
56 |
| IComponentSpecification specification) |
57 |
| { |
58 |
10
| return _formatter.format("installing-component", type, namespace, specification);
|
59 |
| } |
60 |
| |
61 |
8
| static String installingPage(String pageName, INamespace namespace,
|
62 |
| IComponentSpecification specification) |
63 |
| { |
64 |
8
| return _formatter.format("installing-page", pageName, namespace, specification);
|
65 |
| } |
66 |
| |
67 |
16
| static String resolvingPage(String pageName, INamespace namespace)
|
68 |
| { |
69 |
16
| return _formatter.format("resolving-page", pageName, namespace);
|
70 |
| } |
71 |
| |
72 |
2
| static String foundFrameworkPage(String pageName)
|
73 |
| { |
74 |
2
| return _formatter.format("found-framework-page", pageName);
|
75 |
| } |
76 |
| |
77 |
2
| static String foundHTMLTemplate(Resource resource)
|
78 |
| { |
79 |
2
| return _formatter.format("found-html-template", resource);
|
80 |
| } |
81 |
| |
82 |
5
| public static String componentIsDeprecated(String componentType, Location location)
|
83 |
| { |
84 |
5
| return _formatter.format("component-is-deprecated", componentType, HiveMind
|
85 |
| .getLocationString(location)); |
86 |
| } |
87 |
| } |