|
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 |
| private final static MessageFormatter _formatter = new MessageFormatter(ResolverMessages.class); |
|
33 |
| |
|
34 |
3
| static String noSuchComponentType(String type, INamespace namespace)
|
|
35 |
| { |
|
36 |
3
| return _formatter.format("no-such-component-type", type, namespace);
|
|
37 |
| } |
|
38 |
| |
|
39 |
6
| static String noSuchPage(String name, INamespace namespace)
|
|
40 |
| { |
|
41 |
6
| return _formatter.format("no-such-page", name, namespace.getNamespaceId());
|
|
42 |
| } |
|
43 |
| |
|
44 |
42
| static String resolvingComponent(String type, INamespace namespace)
|
|
45 |
| { |
|
46 |
42
| return _formatter.format("resolving-component", type, namespace);
|
|
47 |
| } |
|
48 |
| |
|
49 |
171
| static String checkingResource(Resource resource)
|
|
50 |
| { |
|
51 |
171
| return _formatter.format("checking-resource", resource);
|
|
52 |
| } |
|
53 |
| |
|
54 |
30
| static String installingComponent(String type, INamespace namespace,
|
|
55 |
| IComponentSpecification specification) |
|
56 |
| { |
|
57 |
30
| return _formatter.format("installing-component", type, namespace, specification);
|
|
58 |
| } |
|
59 |
| |
|
60 |
24
| static String installingPage(String pageName, INamespace namespace,
|
|
61 |
| IComponentSpecification specification) |
|
62 |
| { |
|
63 |
24
| return _formatter.format("installing-page", pageName, namespace, specification);
|
|
64 |
| } |
|
65 |
| |
|
66 |
48
| static String resolvingPage(String pageName, INamespace namespace)
|
|
67 |
| { |
|
68 |
48
| return _formatter.format("resolving-page", pageName, namespace);
|
|
69 |
| } |
|
70 |
| |
|
71 |
6
| static String foundFrameworkPage(String pageName)
|
|
72 |
| { |
|
73 |
6
| return _formatter.format("found-framework-page", pageName);
|
|
74 |
| } |
|
75 |
| |
|
76 |
6
| static String foundHTMLTemplate(Resource resource)
|
|
77 |
| { |
|
78 |
6
| return _formatter.format("found-html-template", resource);
|
|
79 |
| } |
|
80 |
| |
|
81 |
18
| public static String componentIsDeprecated(String componentType, Location location)
|
|
82 |
| { |
|
83 |
18
| return _formatter.format("component-is-deprecated", componentType, HiveMind
|
|
84 |
| .getLocationString(location)); |
|
85 |
| } |
|
86 |
| |
|
87 |
6
| static String webInfNotAllowed(String simpleName)
|
|
88 |
| { |
|
89 |
6
| return _formatter.format("web-inf-not-allowed", simpleName);
|
|
90 |
| } |
|
91 |
| } |