This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207279 - Some template expanding doesn't work outside of method scope
Summary: Some template expanding doesn't work outside of method scope
Status: RESOLVED DUPLICATE of bug 206413
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-13 15:17 UTC by luke
Modified: 2012-01-25 14:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description luke 2012-01-13 15:17:28 UTC
I'm trying to expand template:

----------

/**
 * Nastaví ${subject}
 *
 * @param ${type} $$${value}
 */
public function set${fncName}($$${value}) {
  $this->${property} = $$${value};
}

/**
 * Vrátí ${subject}
 *
 * @return ${type}
 */
public function get${fncName}() {
  return $this->${property};
}

----------

When I'm trying to expand it here:

----------
<?php

class TMP {

 <here> 

}
----------

it doesn't work. But here:

----------
<?php

class TMP {

  public function tmp() {
   <here>  
  }

}
----------

is working. Template:

----------
function ${function_name}(${params}) {
  ${cursor}
}
----------

is working everywhere. It seems, that some templates cannot be expanded outside of function/method scope.
Comment 1 luke 2012-01-14 09:45:01 UTC
Seems it is similar problem as here

http://netbeans.org/bugzilla/show_bug.cgi?id=206413
Comment 2 Ondrej Brejla 2012-01-25 14:14:06 UTC

*** This bug has been marked as a duplicate of bug 206413 ***