-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path535.html
32 lines (32 loc) · 4.27 KB
/
535.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html><head><title>Messages.java</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="sourcestyles.css" />
</head><body link="blue" vlink="blue">
<h3>File: /Users/shatabdi/Education/GitHub/se450_project/src/model/shape/Messages.java</h3>
<SCRIPT>
defaultStatus = "File: /Users/shatabdi/Education/GitHub/se450_project/src/model/shape/Messages.java";
top.document.title = "Messages.java";
</SCRIPT>
<pre><span class="default"></span><a name="1"><font size=-1>1 </font></a><span class="default"></span><span class="keyword">package </span><span class="default">model.<a href="dictionary_M.html#171">shape</a>;</span>
<a name="2"><font size=-1>2 </font></a><span class="default"></span>
<a name="3"><font size=-1>3 </font></a><span class="default"></span><span class="keyword">import </span><span class="default">java.<a href="dictionary_J.html#77">util</a>.<a href="dictionary_J.html#526">MissingResourceException</a>;</span>
<a name="4"><font size=-1>4 </font></a><span class="default"></span><span class="keyword">import </span><span class="default">java.<a href="dictionary_J.html#77">util</a>.<a href="dictionary_J.html#527">ResourceBundle</a>;</span>
<a name="5"><font size=-1>5 </font></a><span class="default"></span>
<a name="6"><font size=-1>6 </font></a><span class="default"></span><span class="keyword">public class <a href="dictionary_M.html#536">Messages</a> </span><span class="default">{</span>
<a name="7"><font size=-1>7 </font></a><span class="default"> </span><span class="keyword">private static final <a href="dictionary_S.html#41">String</a> <a href="dictionary_M.html#541">BUNDLE_NAME</a> </span><span class="default">= </span><span class="string">"model.shape.messages"</span><span class="default">; </span><span class="comment">//$NON-NLS-1$</span>
<a name="8"><font size=-1>8 </font></a><span class="comment"></span>
<a name="9"><font size=-1>9 </font></a><span class="comment"> </span><span class="keyword">private static final <a href="dictionary_J.html#527">ResourceBundle</a> <a href="dictionary_M.html#542">RESOURCE_BUNDLE</a> </span><span class="default">= <a href="dictionary_J.html#527">ResourceBundle</a>.<a href="dictionary_G.html#520">getBundle</a>(<a href="dictionary_M.html#541">BUNDLE_NAME</a>);</span>
<a name="10"><font size=-1>10 </font></a><span class="default"></span>
<a name="11"><font size=-1>11 </font></a><span class="default"> </span><span class="keyword">private <a href="dictionary_M.html#537">Messages</a></span><span class="default">() {</span>
<a name="12"><font size=-1>12 </font></a><span class="default"> }</span>
<a name="13"><font size=-1>13 </font></a><span class="default"></span>
<a name="14"><font size=-1>14 </font></a><span class="default"> </span><span class="keyword">public static <a href="dictionary_S.html#41">String</a> <a href="dictionary_M.html#538">getString</a></span><span class="default">(<a href="dictionary_S.html#41">String</a> <a href="dictionary_M.html#540">key</a>) {</span>
<a name="15"><font size=-1>15 </font></a><span class="default"> </span><span class="keyword">try </span><span class="default">{</span>
<a name="16"><font size=-1>16 </font></a><span class="default"> </span><span class="keyword">return <a href="dictionary_M.html#542">RESOURCE_BUNDLE</a></span><span class="default">.<a href="dictionary_G.html#521">getString</a>(<a href="dictionary_M.html#540">key</a>);</span>
<a name="17"><font size=-1>17 </font></a><span class="default"> } </span><span class="keyword">catch </span><span class="default">(<a href="dictionary_J.html#526">MissingResourceException</a> <a href="dictionary_M.html#539">e</a>) {</span>
<a name="18"><font size=-1>18 </font></a><span class="default"> </span><span class="keyword">return </span><span class="string">'!' </span><span class="default">+ <a href="dictionary_M.html#540">key</a> + </span><span class="string">'!'</span><span class="default">;</span>
<a name="19"><font size=-1>19 </font></a><span class="default"> }</span>
<a name="20"><font size=-1>20 </font></a><span class="default"> }</span>
<a name="21"><font size=-1>21 </font></a><span class="default">}</span>
<a name="22"><font size=-1>22 </font></a><span class="default"></span>
</pre></body></html>