• R/O
  • SSH
  • HTTPS

propedit: 提交


Commit MetaInfo

修訂210 (tree)
時間2009-05-24 21:04:23
作者chomakichi

Log Message

必須プラグインの修正
ログ出力処理の修正

Change Summary

差異

--- tags/v1.0.2/PropertiesHyperlink/license/gpl.html (nonexistent)
+++ tags/v1.0.2/PropertiesHyperlink/license/gpl.html (revision 210)
@@ -0,0 +1,352 @@
1+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2+<HTML>
3+<HEAD>
4+<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
5+<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6+<META http-equiv="Content-Style-Type" content="text/css">
7+<TITLE></TITLE>
8+</HEAD>
9+<BODY>
10+<P> GNU GENERAL PUBLIC LICENSE<BR>
11+ Version 2, June 1991<BR>
12+<BR>
13+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.<BR>
14+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<BR>
15+ Everyone is permitted to copy and distribute verbatim copies<BR>
16+ of this license document, but changing it is not allowed.<BR>
17+<BR>
18+ Preamble<BR>
19+<BR>
20+ The licenses for most software are designed to take away your<BR>
21+freedom to share and change it. By contrast, the GNU General Public<BR>
22+License is intended to guarantee your freedom to share and change free<BR>
23+software--to make sure the software is free for all its users. This<BR>
24+General Public License applies to most of the Free Software<BR>
25+Foundation's software and to any other program whose authors commit to<BR>
26+using it. (Some other Free Software Foundation software is covered by<BR>
27+the GNU Library General Public License instead.) You can apply it to<BR>
28+your programs, too.<BR>
29+<BR>
30+ When we speak of free software, we are referring to freedom, not<BR>
31+price. Our General Public Licenses are designed to make sure that you<BR>
32+have the freedom to distribute copies of free software (and charge for<BR>
33+this service if you wish), that you receive source code or can get it<BR>
34+if you want it, that you can change the software or use pieces of it<BR>
35+in new free programs; and that you know you can do these things.<BR>
36+<BR>
37+ To protect your rights, we need to make restrictions that forbid<BR>
38+anyone to deny you these rights or to ask you to surrender the rights.<BR>
39+These restrictions translate to certain responsibilities for you if you<BR>
40+distribute copies of the software, or if you modify it.<BR>
41+<BR>
42+ For example, if you distribute copies of such a program, whether<BR>
43+gratis or for a fee, you must give the recipients all the rights that<BR>
44+you have. You must make sure that they, too, receive or can get the<BR>
45+source code. And you must show them these terms so they know their<BR>
46+rights.<BR>
47+<BR>
48+ We protect your rights with two steps: (1) copyright the software, and<BR>
49+(2) offer you this license which gives you legal permission to copy,<BR>
50+distribute and/or modify the software.<BR>
51+<BR>
52+ Also, for each author's protection and ours, we want to make certain<BR>
53+that everyone understands that there is no warranty for this free<BR>
54+software. If the software is modified by someone else and passed on, we<BR>
55+want its recipients to know that what they have is not the original, so<BR>
56+that any problems introduced by others will not reflect on the original<BR>
57+authors' reputations.<BR>
58+<BR>
59+ Finally, any free program is threatened constantly by software<BR>
60+patents. We wish to avoid the danger that redistributors of a free<BR>
61+program will individually obtain patent licenses, in effect making the<BR>
62+program proprietary. To prevent this, we have made it clear that any<BR>
63+patent must be licensed for everyone's free use or not licensed at all.<BR>
64+<BR>
65+ The precise terms and conditions for copying, distribution and<BR>
66+modification follow.<BR>
67+ <BR>
68+ GNU GENERAL PUBLIC LICENSE<BR>
69+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION<BR>
70+<BR>
71+ 0. This License applies to any program or other work which contains<BR>
72+a notice placed by the copyright holder saying it may be distributed<BR>
73+under the terms of this General Public License. The &quot;Program&quot;, below,<BR>
74+refers to any such program or work, and a &quot;work based on the Program&quot;<BR>
75+means either the Program or any derivative work under copyright law:<BR>
76+that is to say, a work containing the Program or a portion of it,<BR>
77+either verbatim or with modifications and/or translated into another<BR>
78+language. (Hereinafter, translation is included without limitation in<BR>
79+the term &quot;modification&quot;.) Each licensee is addressed as &quot;you&quot;.<BR>
80+<BR>
81+Activities other than copying, distribution and modification are not<BR>
82+covered by this License; they are outside its scope. The act of<BR>
83+running the Program is not restricted, and the output from the Program<BR>
84+is covered only if its contents constitute a work based on the<BR>
85+Program (independent of having been made by running the Program).<BR>
86+Whether that is true depends on what the Program does.<BR>
87+<BR>
88+ 1. You may copy and distribute verbatim copies of the Program's<BR>
89+source code as you receive it, in any medium, provided that you<BR>
90+conspicuously and appropriately publish on each copy an appropriate<BR>
91+copyright notice and disclaimer of warranty; keep intact all the<BR>
92+notices that refer to this License and to the absence of any warranty;<BR>
93+and give any other recipients of the Program a copy of this License<BR>
94+along with the Program.<BR>
95+<BR>
96+You may charge a fee for the physical act of transferring a copy, and<BR>
97+you may at your option offer warranty protection in exchange for a fee.<BR>
98+<BR>
99+ 2. You may modify your copy or copies of the Program or any portion<BR>
100+of it, thus forming a work based on the Program, and copy and<BR>
101+distribute such modifications or work under the terms of Section 1<BR>
102+above, provided that you also meet all of these conditions:<BR>
103+<BR>
104+ a) You must cause the modified files to carry prominent notices<BR>
105+ stating that you changed the files and the date of any change.<BR>
106+<BR>
107+ b) You must cause any work that you distribute or publish, that in<BR>
108+ whole or in part contains or is derived from the Program or any<BR>
109+ part thereof, to be licensed as a whole at no charge to all third<BR>
110+ parties under the terms of this License.<BR>
111+<BR>
112+ c) If the modified program normally reads commands interactively<BR>
113+ when run, you must cause it, when started running for such<BR>
114+ interactive use in the most ordinary way, to print or display an<BR>
115+ announcement including an appropriate copyright notice and a<BR>
116+ notice that there is no warranty (or else, saying that you provide<BR>
117+ a warranty) and that users may redistribute the program under<BR>
118+ these conditions, and telling the user how to view a copy of this<BR>
119+ License. (Exception: if the Program itself is interactive but<BR>
120+ does not normally print such an announcement, your work based on<BR>
121+ the Program is not required to print an announcement.)<BR>
122+ <BR>
123+These requirements apply to the modified work as a whole. If<BR>
124+identifiable sections of that work are not derived from the Program,<BR>
125+and can be reasonably considered independent and separate works in<BR>
126+themselves, then this License, and its terms, do not apply to those<BR>
127+sections when you distribute them as separate works. But when you<BR>
128+distribute the same sections as part of a whole which is a work based<BR>
129+on the Program, the distribution of the whole must be on the terms of<BR>
130+this License, whose permissions for other licensees extend to the<BR>
131+entire whole, and thus to each and every part regardless of who wrote it.<BR>
132+<BR>
133+Thus, it is not the intent of this section to claim rights or contest<BR>
134+your rights to work written entirely by you; rather, the intent is to<BR>
135+exercise the right to control the distribution of derivative or<BR>
136+collective works based on the Program.<BR>
137+<BR>
138+In addition, mere aggregation of another work not based on the Program<BR>
139+with the Program (or with a work based on the Program) on a volume of<BR>
140+a storage or distribution medium does not bring the other work under<BR>
141+the scope of this License.<BR>
142+<BR>
143+ 3. You may copy and distribute the Program (or a work based on it,<BR>
144+under Section 2) in object code or executable form under the terms of<BR>
145+Sections 1 and 2 above provided that you also do one of the following:<BR>
146+<BR>
147+ a) Accompany it with the complete corresponding machine-readable<BR>
148+ source code, which must be distributed under the terms of Sections<BR>
149+ 1 and 2 above on a medium customarily used for software interchange; or,<BR>
150+<BR>
151+ b) Accompany it with a written offer, valid for at least three<BR>
152+ years, to give any third party, for a charge no more than your<BR>
153+ cost of physically performing source distribution, a complete<BR>
154+ machine-readable copy of the corresponding source code, to be<BR>
155+ distributed under the terms of Sections 1 and 2 above on a medium<BR>
156+ customarily used for software interchange; or,<BR>
157+<BR>
158+ c) Accompany it with the information you received as to the offer<BR>
159+ to distribute corresponding source code. (This alternative is<BR>
160+ allowed only for noncommercial distribution and only if you<BR>
161+ received the program in object code or executable form with such<BR>
162+ an offer, in accord with Subsection b above.)<BR>
163+<BR>
164+The source code for a work means the preferred form of the work for<BR>
165+making modifications to it. For an executable work, complete source<BR>
166+code means all the source code for all modules it contains, plus any<BR>
167+associated interface definition files, plus the scripts used to<BR>
168+control compilation and installation of the executable. However, as a<BR>
169+special exception, the source code distributed need not include<BR>
170+anything that is normally distributed (in either source or binary<BR>
171+form) with the major components (compiler, kernel, and so on) of the<BR>
172+operating system on which the executable runs, unless that component<BR>
173+itself accompanies the executable.<BR>
174+<BR>
175+If distribution of executable or object code is made by offering<BR>
176+access to copy from a designated place, then offering equivalent<BR>
177+access to copy the source code from the same place counts as<BR>
178+distribution of the source code, even though third parties are not<BR>
179+compelled to copy the source along with the object code.<BR>
180+ <BR>
181+ 4. You may not copy, modify, sublicense, or distribute the Program<BR>
182+except as expressly provided under this License. Any attempt<BR>
183+otherwise to copy, modify, sublicense or distribute the Program is<BR>
184+void, and will automatically terminate your rights under this License.<BR>
185+However, parties who have received copies, or rights, from you under<BR>
186+this License will not have their licenses terminated so long as such<BR>
187+parties remain in full compliance.<BR>
188+<BR>
189+ 5. You are not required to accept this License, since you have not<BR>
190+signed it. However, nothing else grants you permission to modify or<BR>
191+distribute the Program or its derivative works. These actions are<BR>
192+prohibited by law if you do not accept this License. Therefore, by<BR>
193+modifying or distributing the Program (or any work based on the<BR>
194+Program), you indicate your acceptance of this License to do so, and<BR>
195+all its terms and conditions for copying, distributing or modifying<BR>
196+the Program or works based on it.<BR>
197+<BR>
198+ 6. Each time you redistribute the Program (or any work based on the<BR>
199+Program), the recipient automatically receives a license from the<BR>
200+original licensor to copy, distribute or modify the Program subject to<BR>
201+these terms and conditions. You may not impose any further<BR>
202+restrictions on the recipients' exercise of the rights granted herein.<BR>
203+You are not responsible for enforcing compliance by third parties to<BR>
204+this License.<BR>
205+<BR>
206+ 7. If, as a consequence of a court judgment or allegation of patent<BR>
207+infringement or for any other reason (not limited to patent issues),<BR>
208+conditions are imposed on you (whether by court order, agreement or<BR>
209+otherwise) that contradict the conditions of this License, they do not<BR>
210+excuse you from the conditions of this License. If you cannot<BR>
211+distribute so as to satisfy simultaneously your obligations under this<BR>
212+License and any other pertinent obligations, then as a consequence you<BR>
213+may not distribute the Program at all. For example, if a patent<BR>
214+license would not permit royalty-free redistribution of the Program by<BR>
215+all those who receive copies directly or indirectly through you, then<BR>
216+the only way you could satisfy both it and this License would be to<BR>
217+refrain entirely from distribution of the Program.<BR>
218+<BR>
219+If any portion of this section is held invalid or unenforceable under<BR>
220+any particular circumstance, the balance of the section is intended to<BR>
221+apply and the section as a whole is intended to apply in other<BR>
222+circumstances.<BR>
223+<BR>
224+It is not the purpose of this section to induce you to infringe any<BR>
225+patents or other property right claims or to contest validity of any<BR>
226+such claims; this section has the sole purpose of protecting the<BR>
227+integrity of the free software distribution system, which is<BR>
228+implemented by public license practices. Many people have made<BR>
229+generous contributions to the wide range of software distributed<BR>
230+through that system in reliance on consistent application of that<BR>
231+system; it is up to the author/donor to decide if he or she is willing<BR>
232+to distribute software through any other system and a licensee cannot<BR>
233+impose that choice.<BR>
234+<BR>
235+This section is intended to make thoroughly clear what is believed to<BR>
236+be a consequence of the rest of this License.<BR>
237+ <BR>
238+ 8. If the distribution and/or use of the Program is restricted in<BR>
239+certain countries either by patents or by copyrighted interfaces, the<BR>
240+original copyright holder who places the Program under this License<BR>
241+may add an explicit geographical distribution limitation excluding<BR>
242+those countries, so that distribution is permitted only in or among<BR>
243+countries not thus excluded. In such case, this License incorporates<BR>
244+the limitation as if written in the body of this License.<BR>
245+<BR>
246+ 9. The Free Software Foundation may publish revised and/or new versions<BR>
247+of the General Public License from time to time. Such new versions will<BR>
248+be similar in spirit to the present version, but may differ in detail to<BR>
249+address new problems or concerns.<BR>
250+<BR>
251+Each version is given a distinguishing version number. If the Program<BR>
252+specifies a version number of this License which applies to it and &quot;any<BR>
253+later version&quot;, you have the option of following the terms and conditions<BR>
254+either of that version or of any later version published by the Free<BR>
255+Software Foundation. If the Program does not specify a version number of<BR>
256+this License, you may choose any version ever published by the Free Software<BR>
257+Foundation.<BR>
258+<BR>
259+ 10. If you wish to incorporate parts of the Program into other free<BR>
260+programs whose distribution conditions are different, write to the author<BR>
261+to ask for permission. For software which is copyrighted by the Free<BR>
262+Software Foundation, write to the Free Software Foundation; we sometimes<BR>
263+make exceptions for this. Our decision will be guided by the two goals<BR>
264+of preserving the free status of all derivatives of our free software and<BR>
265+of promoting the sharing and reuse of software generally.<BR>
266+<BR>
267+ NO WARRANTY<BR>
268+<BR>
269+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY<BR>
270+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN<BR>
271+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES<BR>
272+PROVIDE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED<BR>
273+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF<BR>
274+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS<BR>
275+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE<BR>
276+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,<BR>
277+REPAIR OR CORRECTION.<BR>
278+<BR>
279+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING<BR>
280+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR<BR>
281+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,<BR>
282+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING<BR>
283+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED<BR>
284+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY<BR>
285+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER<BR>
286+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE<BR>
287+POSSIBILITY OF SUCH DAMAGES.<BR>
288+<BR>
289+ END OF TERMS AND CONDITIONS<BR>
290+ <BR>
291+ How to Apply These Terms to Your New Programs<BR>
292+<BR>
293+ If you develop a new program, and you want it to be of the greatest<BR>
294+possible use to the public, the best way to achieve this is to make it<BR>
295+free software which everyone can redistribute and change under these terms.<BR>
296+<BR>
297+ To do so, attach the following notices to the program. It is safest<BR>
298+to attach them to the start of each source file to most effectively<BR>
299+convey the exclusion of warranty; and each file should have at least<BR>
300+the &quot;copyright&quot; line and a pointer to where the full notice is found.<BR>
301+<BR>
302+ &lt;one line to give the program's name and a brief idea of what it does.&gt;<BR>
303+ Copyright (C) &lt;year&gt; &lt;name of author&gt;<BR>
304+<BR>
305+ This program is free software; you can redistribute it and/or modify<BR>
306+ it under the terms of the GNU General Public License as published by<BR>
307+ the Free Software Foundation; either version 2 of the License, or<BR>
308+ (at your option) any later version.<BR>
309+<BR>
310+ This program is distributed in the hope that it will be useful,<BR>
311+ but WITHOUT ANY WARRANTY; without even the implied warranty of<BR>
312+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<BR>
313+ GNU General Public License for more details.<BR>
314+<BR>
315+ You should have received a copy of the GNU General Public License<BR>
316+ along with this program; if not, write to the Free Software<BR>
317+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<BR>
318+<BR>
319+<BR>
320+Also add information on how to contact you by electronic and paper mail.<BR>
321+<BR>
322+If the program is interactive, make it output a short notice like this<BR>
323+when it starts in an interactive mode:<BR>
324+<BR>
325+ Gnomovision version 69, Copyright (C) year name of author<BR>
326+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.<BR>
327+ This is free software, and you are welcome to redistribute it<BR>
328+ under certain conditions; type `show c' for details.<BR>
329+<BR>
330+The hypothetical commands `show w' and `show c' should show the appropriate<BR>
331+parts of the General Public License. Of course, the commands you use may<BR>
332+be called something other than `show w' and `show c'; they could even be<BR>
333+mouse-clicks or menu items--whatever suits your program.<BR>
334+<BR>
335+You should also get your employer (if you work as a programmer) or your<BR>
336+school, if any, to sign a &quot;copyright disclaimer&quot; for the program, if<BR>
337+necessary. Here is a sample; alter the names:<BR>
338+<BR>
339+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program<BR>
340+ `Gnomovision' (which makes passes at compilers) written by James Hacker.<BR>
341+<BR>
342+ &lt;signature of Ty Coon&gt;, 1 April 1989<BR>
343+ Ty Coon, President of Vice<BR>
344+<BR>
345+This General Public License does not permit incorporating your program into<BR>
346+proprietary programs. If your program is a subroutine library, you may<BR>
347+consider it more useful to permit linking proprietary applications with the<BR>
348+library. If this is what you want to do, use the GNU Library General<BR>
349+Public License instead of this License.<BR>
350+</P>
351+</BODY>
352+</HTML>
\ No newline at end of file
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- tags/v1.0.2/PropertiesHyperlink/src/jp/gr/java_conf/ussiy/app/propedit/hyperlink/PropertiesHyperlinkDetector.java (nonexistent)
+++ tags/v1.0.2/PropertiesHyperlink/src/jp/gr/java_conf/ussiy/app/propedit/hyperlink/PropertiesHyperlinkDetector.java (revision 210)
@@ -0,0 +1,121 @@
1+package jp.gr.java_conf.ussiy.app.propedit.hyperlink;
2+
3+import jp.gr.java_conf.ussiy.app.propedit.eclipse.plugin.editors.detector.IHyperlinkDetector;
4+
5+import org.eclipse.core.runtime.ILog;
6+import org.eclipse.core.runtime.IStatus;
7+import org.eclipse.core.runtime.Status;
8+import org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertyKeyHyperlink;
9+import org.eclipse.jface.dialogs.ErrorDialog;
10+import org.eclipse.jface.text.BadLocationException;
11+import org.eclipse.jface.text.IDocument;
12+import org.eclipse.jface.text.IRegion;
13+import org.eclipse.jface.text.ITextViewer;
14+import org.eclipse.jface.text.Region;
15+import org.eclipse.jface.text.hyperlink.IHyperlink;
16+import org.eclipse.ui.IStorageEditorInput;
17+import org.eclipse.ui.texteditor.ITextEditor;
18+
19+public class PropertiesHyperlinkDetector implements IHyperlinkDetector {
20+
21+ private ITextEditor editor;
22+
23+ public void setTextEditor(ITextEditor editor) {
24+ this.editor = editor;
25+ }
26+
27+ public IHyperlink[] detectHyperlinks(ITextViewer viewer,
28+ IRegion region, boolean canMulti) {
29+
30+ try {
31+ IStorageEditorInput editorInput = (IStorageEditorInput) editor
32+ .getEditorInput();
33+ IDocument document = editor.getDocumentProvider().getDocument(
34+ editorInput);
35+
36+ int lineNum = document.getLineOfOffset(region.getOffset());
37+ int lineTopIdx = document.getLineOffset(lineNum);
38+ int endPos = lineTopIdx;
39+ if (endPos - 2 >= 0) {
40+ char c1 = document.getChar(endPos - 2);
41+ char c2 = document.getChar(endPos - 1);
42+ if (c1 == '\\' && (c2 == '\r' || c2 == '\n')) {
43+ return null;
44+ }
45+ }
46+ if (endPos - 3 >= 0) {
47+ char c1 = document.getChar(endPos - 3);
48+ char c2 = document.getChar(endPos - 2);
49+ char c3 = document.getChar(endPos - 1);
50+ if (c1 == '\\' && c2 == '\r' && c3 == '\n') {
51+ return null;
52+ }
53+ }
54+
55+ {
56+ char c = document.getChar(endPos);
57+ if (c == '#' || c == '!') {
58+ return null;
59+ }
60+ }
61+
62+ boolean escapeFlg = false;
63+ boolean spaceFlg = true;
64+ char beforeChar = 0;
65+ char beforeBeforeChar = 0;
66+ while (endPos < document.getLength()) {
67+ char c = document.getChar(endPos);
68+ if (c == '\\') {
69+ escapeFlg = !escapeFlg;
70+ endPos++;
71+ continue;
72+ }
73+ if (c == ' ' || c == '\t') {
74+ if (spaceFlg) {
75+ endPos++;
76+ continue;
77+ }
78+ } else {
79+ spaceFlg = false;
80+ }
81+ if (c == '=' || c == '\r' || c == '\n' || c == '\t' || c == ' ' || c == ':') {
82+ if (!escapeFlg) {
83+ if (!(beforeBeforeChar == '\\' && beforeChar == '\r' && c == '\n')) {
84+ break;
85+ }
86+ } else {
87+ escapeFlg = !escapeFlg;
88+ }
89+ } else {
90+ escapeFlg = false;
91+ }
92+ beforeBeforeChar = beforeChar;
93+ beforeChar = c;
94+ endPos++;
95+ }
96+ int length = endPos - lineTopIdx;
97+
98+ String tmp = document.get(lineTopIdx, length);
99+ String key = tmp.trim();
100+ int offset = tmp.indexOf(key);
101+
102+ IHyperlink[] hyperlinks = new PropertyKeyHyperlink[] { new PropertyKeyHyperlink(
103+ new Region(lineTopIdx + offset, key.length()),
104+ key, editor), };
105+
106+ return hyperlinks;
107+
108+ } catch (BadLocationException e) {
109+ IStatus status = new Status(IStatus.ERROR,
110+ Activator.PLUGIN_ID, IStatus.OK, e.getMessage(), e);
111+ ILog log = Activator.getDefault().getLog();
112+ log.log(status);
113+ ErrorDialog
114+ .openError(
115+ null,
116+ Messages.getString("PropertiesHyperlinkDetector.1"), Messages.getString("PropertiesHyperlinkDetector.2"), status); //$NON-NLS-1$ //$NON-NLS-2$
117+ return null;
118+ }
119+ }
120+
121+}
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- tags/v1.0.2/PropertiesHyperlink/src/jp/gr/java_conf/ussiy/app/propedit/hyperlink/Messages.java (nonexistent)
+++ tags/v1.0.2/PropertiesHyperlink/src/jp/gr/java_conf/ussiy/app/propedit/hyperlink/Messages.java (revision 210)
@@ -0,0 +1,22 @@
1+package jp.gr.java_conf.ussiy.app.propedit.hyperlink;
2+
3+import java.util.MissingResourceException;
4+import java.util.ResourceBundle;
5+
6+public class Messages {
7+ private static final String BUNDLE_NAME = "jp.gr.java_conf.ussiy.app.propedit.hyperlink.messages"; //$NON-NLS-1$
8+
9+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
10+ .getBundle(BUNDLE_NAME);
11+
12+ private Messages() {
13+ }
14+
15+ public static String getString(String key) {
16+ try {
17+ return RESOURCE_BUNDLE.getString(key);
18+ } catch (MissingResourceException e) {
19+ return '!' + key + '!';
20+ }
21+ }
22+}
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- tags/v1.0.2/PropertiesHyperlink/src/jp/gr/java_conf/ussiy/app/propedit/hyperlink/Activator.java (nonexistent)
+++ tags/v1.0.2/PropertiesHyperlink/src/jp/gr/java_conf/ussiy/app/propedit/hyperlink/Activator.java (revision 210)
@@ -0,0 +1,61 @@
1+package jp.gr.java_conf.ussiy.app.propedit.hyperlink;
2+
3+import org.eclipse.jface.resource.ImageDescriptor;
4+import org.eclipse.ui.plugin.AbstractUIPlugin;
5+import org.osgi.framework.BundleContext;
6+
7+/**
8+ * The activator class controls the plug-in life cycle
9+ */
10+public class Activator extends AbstractUIPlugin {
11+
12+ // The plug-in ID
13+ public static final String PLUGIN_ID = "jp.gr.java_conf.ussiy.app.propedit.hyperlink"; //$NON-NLS-1$
14+
15+ // The shared instance
16+ private static Activator plugin;
17+
18+ /**
19+ * The constructor
20+ */
21+ public Activator() {
22+ }
23+
24+ /*
25+ * (non-Javadoc)
26+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
27+ */
28+ public void start(BundleContext context) throws Exception {
29+ super.start(context);
30+ plugin = this;
31+ }
32+
33+ /*
34+ * (non-Javadoc)
35+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
36+ */
37+ public void stop(BundleContext context) throws Exception {
38+ plugin = null;
39+ super.stop(context);
40+ }
41+
42+ /**
43+ * Returns the shared instance
44+ *
45+ * @return the shared instance
46+ */
47+ public static Activator getDefault() {
48+ return plugin;
49+ }
50+
51+ /**
52+ * Returns an image descriptor for the image file at the given
53+ * plug-in relative path
54+ *
55+ * @param path the path
56+ * @return the image descriptor
57+ */
58+ public static ImageDescriptor getImageDescriptor(String path) {
59+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
60+ }
61+}
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- tags/v1.0.2/PropertiesHyperlink/plugin.xml (nonexistent)
+++ tags/v1.0.2/PropertiesHyperlink/plugin.xml (revision 210)
@@ -0,0 +1,10 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<?eclipse version="3.0"?>
3+<plugin>
4+
5+ <extension
6+ point="jp.gr.java_conf.ussiy.app.propedit.hyperlinkdetectors">
7+ <hyperlinkdetector class="jp.gr.java_conf.ussiy.app.propedit.hyperlink.PropertiesHyperlinkDetector"/>
8+ </extension>
9+
10+</plugin>
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Show on old repository browser