diff dwtx/jface/text/templates/TemplateProposal.d @ 145:02cd5f1224d3

...
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 22:31:00 +0200
parents b6bad70d540a
children 75302ef3f92f
line wrap: on
line diff
--- a/dwtx/jface/text/templates/TemplateProposal.d	Sun Aug 24 21:34:15 2008 +0200
+++ b/dwtx/jface/text/templates/TemplateProposal.d	Sun Aug 24 22:31:00 2008 +0200
@@ -90,8 +90,8 @@
      * @param region    the region this proposal is applied to
      * @param image     the icon of the proposal.
      */
-    public this(Template template, TemplateContext context, IRegion region, Image image) {
-        this(template, context, region, image, 0);
+    public this(Template template_, TemplateContext context, IRegion region, Image image) {
+        this(template_, context, region, image, 0);
     }
 
     /**
@@ -103,12 +103,12 @@
      * @param region    the region this proposal is applied to
      * @param relevance the relevance of the proposal
      */
-    public this(Template template, TemplateContext context, IRegion region, Image image, int relevance) {
-        Assert.isNotNull(template);
+    public this(Template template_, TemplateContext context, IRegion region, Image image, int relevance) {
+        Assert.isNotNull(template_);
         Assert.isNotNull(context);
         Assert.isNotNull(region);
 
-        fTemplate= template;
+        fTemplate= template_;
         fContext= context;
         fImage= image;
         fRegion= region;
@@ -216,7 +216,7 @@
                         document.addPosition(getCategory(), pos);
                         proposals[j]= new PositionBasedCompletionProposal(values[j], pos, length);
                     }
-                    
+
                     if (proposals.length > 1)
                         first= new ProposalPosition(document, offsets[0] + start, length, proposals);
                     else
@@ -374,7 +374,7 @@
      */
     public String getDisplayString() {
         if (fDisplayString is null) {
-            String[] arguments= new String[] { fTemplate.getName(), fTemplate.getDescription() };
+            String[] arguments= [ fTemplate.getName(), fTemplate.getDescription() ];
             fDisplayString= JFaceTextTemplateMessages.getFormattedString("TemplateProposal.displayString", arguments); //$NON-NLS-1$
         }
         return fDisplayString;