Blueprint shouldn't use entire lines of code as the search string.

If I have the editor open on some MXML code, and a range of characters is selected in the editor, then invoking Blueprint uses the selected text as the search string. This seems like the right thing to do.
However, if there is NO text selected, Blueprint uses an entire line of code as the search string (whatever line the insertion point happens to be in). I my experience this is almost always wrong, because (a) most lines of code e.g. "}" or "allPanels[1] = new LayersPanel();" or "private var allPanels : Dictionary = new Dictionary(); do not usually produce very useful search results, and (b) because these strings clutter up the search history.

Thanks for the suggestion!
We will reevaluate the use case for using an entire line of code as a query.
Mira Dontcheva
Research Scientist
Adobe Systems

Similar Messages

  • How to "commit" only certain lines of code in the script file?

    Hi there,
    Is there a way to execute only certain lines of code in the script file without executing all the code in it. Wihtout using the comment syntax.
    e.g: there are lines to create views and in the next set of line there are lines to create procedures. I only want to execute the lines that create views.

    another workaround is to create a procedure that accepts parameters. such that the parameter will be the basis for what objects in your conditions that it should met to perform the operations that conform with your business rules. an example is given below.
      create or replace procedure create_object(pObjectType varchar2) as
      begin
        if pObjectType = 'VIEW' then
        elsif pObjectType = 'PROCEDURE' then
        else
        end if;
      end;

  • Snow Leopard version of Preview:  Enable lines of text in the search results?

    In Preview 4 on OS X 10.5.8 Leopard and Preview 3 on OS X 10.4.11 Tiger, when a search of a PDF file was conducted, the search term would appear in context in the drawer on the side of the main Preview window.  The multiple lines of text in the search results could then be quickly scanned visually.
    In Preview 5 on OS X 10.6.8 Snow Leopard, the search result display options do not seem to include the lines of text found in Preview 4 and Preview 3.  Is there a setting somewhere, maybe even performed via the command line in the Terminal application, that can enable Preview 5 to display such lines of text in the search results?

    It's either that or finding other software for your scanning needs. For example, Image Capture comes with OS X, VueScan 9.2.09, ExactScan Pro 2.24.
    Alternatively, partition your hard drive and install Snow Leopard on another volume.
    To resize the drive do the following:
    1. Open Disk Utility and select the drive entry (mfgr.'s ID and size) from the left side list.
    2. Click on the Partition tab in the DU main window. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive. Use the Snow Leopard installer DVD to install Snow Leopard on your new volume.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.

  • Using 6.0. Cannot stop the search engine "ASK" from loading. How do I get rid of it completely?

    I am using ver 6.0. I continually keep getting the search engine "ASK" as my primary search engine altho I continually either drop it down the list or even delete it! How can I permanently delete it? It comes back after a shutdown of firefox or a computer reboot.

    Hi
    I had this issue too after installing a couple of fileserve download programs.
    It is pretty simple to stop firefox jumping to this earch engine.
    In your firefox browser type
    about:config
    It will ask are you sure that you are going to be careful.
    Select yes
    In the filter bar type fileserve
    For all of the results that it shows Right click and select reset
    This will take your system back to normal

  • Need help understanding a line of code from the Java Tutorial

    Here is the code I have seen in the Reflection Tutorial:
    import java.lang.reflect.*;
    class SampleInvoke {
       public static void main(String[] args) {
          String firstWord = "Hello ";
          String secondWord = "everybody.";
          String bothWords = append(firstWord, secondWord);
          System.out.println(bothWords);
       public static String append(String firstWord, String secondWord) {
          String result = null;
          Class c = String.class;
          Class[] parameterTypes = new Class[] {String.class};
          Method concatMethod;
          Object[] arguments = new Object[] {secondWord};
          try {
            concatMethod = c.getMethod("concat", parameterTypes);
            result = (String) concatMethod.invoke(firstWord, arguments);
          } catch (NoSuchMethodException e) {
              System.out.println(e);
          } catch (IllegalAccessException e) {
              System.out.println(e);
          } catch (InvocationTargetException e) {
              System.out.println(e);
          return result;
    }There are 2 lines I do not understand (but once I understand one, I'll understand the other).
    Here they are:
    Class[] parameterTypes = new Class[] {String.class};
    Object[] arguments = new Object[] {secondWord};Any explanation will be greatly appreciated :)

    There are 2 lines I do not understand (but once I
    understand one, I'll understand the other).
    Here they are:
    Class[] parameterTypes = new Class[]
    {String.class};
    Object[] arguments = new Object[]
    {secondWord};
    the first line simply creates an array of objects, the objects are of type Class. It then places the object referenced in the brackets into the array.

  • SQL Server 2014 installation using command line fails to remove the extraction folder when complete

    We need to install SQL Server 2014 Express in /QS mode (shows
    progress through the UI, but does not accept any input or show any error messages) as
    my setup-Prerequisite. I passed my installation parameters to
    SQLEXPRWT_x64_ENU.exe, when I ran my application it pop-ups
    user to select the folder to extract files. After I choose the folder, SQL
    files got extracted and the installation proceeded and it got succeed.
    But it fails to remove the extraction folder when installation is complete.

    There is an issue that /qs parameter is not recognized and cannot be used the same
    way as in SQL 2012. That issue will be addressed in SQL Server 2014 Service Pack 1.
    https://connect.microsoft.com/SQLServer/feedback/details/878374/sql-server-2014-express-qs-parameter-requires-user-input

  • I used to be able to type my search string in the Address Line and Google sdearch produced results. Aftrer my last firefox update, it turned into BING. I HATE Bing. I want Google back. How do I change this back to google or other search engine????

    (The details are in the question already)

    Hi suseadoodle,
    Sites like Bing, Yahoo, MSN, etc have been known to do things like this. Luckily it is an easy fix. Just take a look at [https://support.mozilla.org/en-US/kb/Location%20bar%20search?s=address+bar&r=1&as=s#w_changing-the-internet-keyword-service this Knowledge Base article on keyword search].
    Hopefully this helps!

  • Use of special characters in Search String

    What is the use of special charaters like
    in the search string in the Find & Replace of ABAP editor ?
    I want to search for all strings starting with V which are followed by alphabets like
    VA
    VB...
    If I use V*, it also gives me results like
    V/R...
    Whether it is possible to specify such a condition?

    Hi,
    While giving ur search in FIND & REPLACE,
    use the match case or match whole word only..
    Then u will get search results only where the exact case of that variable is used..
    As per my knowledge there is no signification of special characters ,- : ; in the search string..
    Hope this helps...
    Cheers,
    Simha.

  • What is the error in this one line of code!

    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    I am using this line of code in my programe but i am getting the following error.
    C:\shahzad\Easter.java:28: illegal start of expression
    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    Please help me solvingg this problem
    thanks.

    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    [] brakets ae used to index arrays, are you using an array somewhere????
    arr=5; for example....
    in either event youl need to make changes.
    assuming no array is involved simply change [] to ()
    if still causing problems try adding extara()
    s= (s-(s/28))*( (1-(s/28)) * ( (29/s)+1) * (21-(q/11)) );

  • Need help with in-line HTML code

    I am trying to write some in-line HTML code to change the background color to blue for Exception-Bad.  Here is my code
    I am trying to use in-line HTML code in WAD to change the background color for Exceptions-Bad to blue.  This is not working.  I really need to get this to work so if someone could tell what is wrong with my code, I would really appreciate the help.
                <style type="text/css" > SAPBEXexcBad7 {background-color: blue}; .SAPBEXexcBad8 {background-color: blue}; SAPBEXexcBad9 {background-color: blue} </style>
    Thanks.
    Ryan

    Hi Boater,
    HTML code will also come like this also
    BODY BACKGROUND="image.jpg" BGCOLOR="#FFFFFF" TEXT="#000000"
    let this one also
    Regards
    Ashwin

  • Do u know how to write a few line of codes to create folder?

    hi all, I just need a few line of codes to create a folder in my directory. Can someone just write a few lines of codes to create a folder?Thanks!
    This is my unzip codes and I need to put these few lines of codes in the "/* */" part. If I didn't create the folder (using codes)then it would not be unzipped.
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    public class Unzip {
      public static final void copyInputStream(InputStream in, OutputStream out)
      throws IOException
        byte[] buffer = new byte[1024];
        int len;
        while((len = in.read(buffer)) >= 0)
          out.write(buffer, 0, len);
        in.close();
        out.close();
      public static final void main(String[] args) {
        Enumeration entries;
        ZipFile zipFile;
        try {
          zipFile = new ZipFile("C:\\Temp\\FolderZiper.zip");
          entries = zipFile.entries();
          while(entries.hasMoreElements()) {
            ZipEntry entry = (ZipEntry)entries.nextElement();
    /*need to have the few lines of codes here*/
            if(entry.isDirectory()) {
              // Assume directories are stored parents first then children.
              System.err.println("Extracting directory: " + entry.getName());
              // This is not robust, just for demonstration purposes.
              (new File(entry.getName())).mkdir();
              continue;
            System.err.println("Extracting file: " + entry.getName());
            copyInputStream(zipFile.getInputStream(entry),
               new BufferedOutputStream(new FileOutputStream(new File("c:\\temp\\unzipping\\"+entry.getName()))));
          zipFile.close();
        } catch (IOException ioe) {
          System.err.println("Unhandled exception:");
          ioe.printStackTrace();
          return;
    }

    Given a file, you can create its parent directory like this:
    File outFile = new File("c:\\temp\\unzipping\\"+entry.getName())
    File parentDir = outFile.getParentFile();
    if (!parentDir.exists()){
      parentDir.makeDirs();
    }Not too hard is it?

  • Always Use Primary Line / Auto Line Select CM 4.1(3)sr3c

    Is it correct that the "Always Use Primary Line" system parameter and the phone device page "Auto Line Select" setting work together to affect a phone's off-hook behavior for incoming calls? I changed the Always Use Primary Line from the default (False to True) to change the behavior and force primary line only when the phone goes off-hook. When I then enabled Auto Line Select on the 7960G, I expected to reverse this global setting for that device only. But, that did not happen. In fact, no matter how Always Use Primary Line is set (True or False), the device page setting Auto Line Select (enable or disable) does not appear to cause any change at all. Has anyone else encountered this? If changing the Service Parameter takes effect without restarting callmanagers, wouldn't resetting the phone device force the change on the device page to take effect? Or, do I not understand the relationship between these two settings?

    Auto Line Select comes into play when you are already on the phone and you have a new incoming call on another line, then should the focus change to that new ringing line so it can show you the caller-id or should the focus be on the active line. Depending on this, the softkeys and everything change on your screen and you don't have to press the line button to see all the keys.
    Always use Prime Line is primary used when the phone goes off-hook. This determines if you want to go off-hook on the primary line all the time or not. If you choose to always use primary line, then everytime you go
    off-hook, we use the first line on the phone and it does not matter if there is a call ringing on another line.
    If its set to false, then when you go off-hook, it will go off hook on a line which is ringing and not your primary line.

  • Count lines of code in WDA component

    Is there a way to count the lines of own code (or otherwise measure the "size") in a WDA component on a 7.01 system? Please don't make me go through every single method one by one

    If you load the Web Dynpro Component in SE80 and then choose Web Dynpro Component->Check->Generation Limits, this will give you the load size in bytes of the WD Component. It also has some breakdown liek the number of variables declared.  However nothing that gives you the exact lines of code.
    The source code of all WD methods is stored in table WDY_CTLR_COMPO, so I supposed if if you really needed to you could write a small program to count the number of lines of code or the number of characters.

  • ABAP code for character search

    Hello Gurus
    I have a variable e.g. lv_txtsh which is meant to store a string. Now I want to parse through lv_txtsh and find if it contains a character "x".  The length of the string stored in lv_txtsh is going to be dynamic. Can you please help me to code this scenario in ABAP OO (the new version of ABAP)
    Any help is appreciated and points will be assigned.
    Thanks,
    Rishi

    Hi,
    Pease go through this. You will get an idea.
    FIND
    Syntax
    FIND [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF] pattern
      IN [section_of] dobj
      [IN {BYTE|CHARACTER} MODE]
      [{RESPECTING|IGNORING} CASE]
      [MATCH COUNT  mcnt]
      { {[MATCH OFFSET moff]
         [MATCH LENGTH mlen]}
      | [RESULTS result_tab|result_wa] }
      [SUBMATCHES s1 s2 ...].
    Extras:
    1. ... {FIRST OCCURRENCE}|{ALL OCCURRENCES} OF
    2. ... IN {BYTE|CHARACTER} MODE
    3. ... {RESPECTING|IGNORING} CASE
    4. ... MATCH COUNT mcnt
    5. ... MATCH OFFSET moff
    6. ... MATCH LENGTH mlen
    7. ... RESULTS result_tab|result_wa
    8. ... SUBMATCHES s1 s2 ...
    Effect
    : The data object dobj is searched for the byte or character sequence specified by the search string pattern. The addition OCCURRENCE[S] determines whether only the first, or all occurrences are searched. The addition section_of can be used to restrict the search range. The addition CASE is used to determine whether upper/lower case is taken into account in the search. The additions MATCH, SUBMATCHES, and RESULTS are used to determine the number, position, and length of the found sequence(s).
    The search is ended when the search string is found for the first time or when all the search strings in the search range have been found, or when the end of the search range is reached. The user is informed of the search result by setting sy-subrc.
    In character string processing, the closing blanks are taken into account in data objects dobj of fixed length.
    Note
    The statement FIND IN TABLE is available for searching in internal tables.
    System fields
    sy-subrc Meaning
    0 The search string was found at least once in the search range.
    4 The search string was not found in the search range.
    8 The search string contains an invalid double-byte character in character string processing.
    Addition 1
    ... {FIRST OCCURRENCE}|{ALL OCCURRENCES} OF
    The optional addition {FIRST OCCURRENCE}|{ALL OCCURRENCES} OF determines whether program only searches for the first occurrence, or all occurrences of the search string. If the addition FIRST OCCURENCE, or none of the additions is specified, only the first occurrence is found. Otherwise, all occurrences are found.
    If sub_string is an empty string in the pattern or is of type c, d, n or t and only contains blank characters, when searching for the first occurrence, the space in front of the first character or byte of the search range is found. If searching for all occurrences, in this case the exception CX_SY_FIND_INFINITE_LOOP is triggered.
    If regex contains a regular expression in pattern that matches the empty character string, the search for one occurrence also finds the space before the first character. When searching for all occurrences, in this case, the search finds the space before the first character, all intermediate spaces that are not within a match, and the space after the last character.
    Addition 2
    ... IN {BYTE|CHARACTER} MODE
    Effect
    : The optional addition IN {BYTE|CHARACTER} MODE determines whether byte or character string processing takes place. If the addition is not specified, character string processing is performed. Depending on the processing type, dobj and sub_string in pattern must be byte-like or character-type. If regular expressions are used in pattern, only character string processing is permitted.
    Addition 3
    ... {RESPECTING|IGNORING} CASE
    Effect
    : This addition is only permitted for character string processing. It determines whether upper/lower case is taken into account in pattern and dobj when searching. If RESPECTING CASE is specified, the text is case-sensitive, and if IGNORING CASE is specified, the text is not case-sensitive. If neither of the additions is specified, RESPECTING CASE is used implicitly. If a regular expression is entered for pattern as an object of the class CL_ABAP_REGEX, this addition is not permitted. Instead, the properties of the object are taken into account in the search.
    Addition 4
    ... MATCH COUNT mcnt
    Effect
    : If the search string pattern is found in the search range, the addition MATCH COUNT stores the number of found locations in the data object mcnt. If FIRST OCCURRENCE is used, this value is always 1 if the search is successful. For mcnt, a variable of the data type i is expected. If the search is unsuccessful, mcnt is set to 0.
    Addition 5
    ... MATCH OFFSET moff
    Effect:
    If the search string pattern is found in the search range, the addition MATCH OFFSET stores the offset of the last found location in relation to the data object dobj in the data object moff. If FIRST OCCURRENCE is used, this is the offset of the first found location. For moff, a variable of the data type i is expected. If the search is not successful, moff contains its previous value.
    Note
    : The system field sy-fdpos is not supplied by FIND.
    Addition 6
    ... MATCH LENGTH mlen
    Effect:
    If the search string pattern is found in the search range, the addition MATCH LENGTH stores the length of the last found substring in the data object mlen. If using FIRST OCCURRENCE, this is the length of the first found location. For mlen, a variable of data type i is expected. If the search is not successful, mlen contains its previous value.
    Addition 7
    ... RESULTS result_tab|result_wa
    Effect:
    If the search string pattern is found in the search range, the addition RESULTS stores the offsets of the found locations, the lengths of the found substrings, and information on the registers of the subgroups of regular expressions, either in an internal table result_tab or in a structure result_wa.
    The internal table result_tab must have the table type MATCH_RESULT_TAB, and the structure result_wa must have the type MATCH_RESULT from the ABAP Dictionary. The line type of the internal table is also MATCH_RESULT.
    When an internal table is entered, this is initialized before the search and a line is inserted in the table for every match found. When a structure is entered, this is assigned the values of the last found location. If FIRST OCCURRENCE is used and the search is successful, only one line is inserted in the internal table.
    The line or structure type MATCH_RESULT has the following components:
    OFFSET of type INT4 for the offset of the substring
    LENGTH of type INT4 for the length of the substring
    SUBMATCHES of table type SUBMATCH_RESULT_TAB with the line type SUBMATCH_RESULT for the offset and length of the substrings of the current found locations that are stored in the registers of the subgroups of a regular expression.
    The lines of result_tab are sorted according to the columns OFFSET and LENGTH. An additional component LINE is only important in the variant FIND IN TABLE.
    Following an unsuccessful search, the content of an internal table result_tab is initial, while a structure result_wa contains its previous value.
    Note
    The addition RESULTS is particularly suitable for use with the addition ALL OCCURRENCES when specifying a table, and for use with the FIRST OCCURRENCE when specifying a structure.
    Example:
    The following search for a regular expression finds the two substrings "ab" at offset 0 and "ba" at offset 2, and fills the internal table result_tab with two rows accordingly. As the regular expression contains three subgroups, the component submatches contains three lines in each case. The first line of submatches refers to the outermost bracket, the second line refers to the first internal bracket, and the third line refers to the second internal bracket. For the first found location, the first and second lines contains the offset and length while the third line is undefined. For the second found location, the first and third lines contains the offset and length, while the second line is undefined.
    DATA: result_tab TYPE match_result_tab.
    FIND ALL OCCURRENCES OF REGEX `((ab)|(ba))`
         IN 'abba'
         RESULTS result_tab.
    Addition 8
    ... SUBMATCHES s1 s2 ...
    Effect:
    This addition is only permitted if a regular expression is used in pattern. The current contents of the register of subgroups of the regular expression for the current found location are written to the variables s1, s2, ..., for which a character-type data type is expected. When ALL OCCURRENCES is used, the last found location is evaluated. If more variables s1, s2, ... are listed than subgroups are available, the superfluous variables are initialized. If fewer variables s1, s2, ... are listed than subgroups are available, the superfluous subgroups are ignored.
    Example
    : The regular expression after REGEX has two subgroups. The search finds the substring from offset 0 of length 14. The content of the register of the subgroups is "Hey" and "my".
    DATA: text TYPE string,
          moff TYPE i,
          mlen TYPE i,
          s1   TYPE string,
          s2   TYPE string.
    text = `Hey hey, my my, Rock and roll can never die`.
    FIND REGEX `(\w)\W\1\W(\w)\W+\2`
         IN text
         IGNORING CASE
         MATCH OFFSET moff
         MATCH LENGTH mlen
         SUBMATCHES s1 s2.
    Reward points if helpful.
    Thanks and Regards.

  • Edit Field Validation - Use of the native string.find() Lua Function

    Hi,
    I have an edit field in which I want to be validated immediately upon change.  I ONLY want to accept alphanumeric characters (a-z and 0-9).  I have tried this many ways, but have failed to get it exactly as I want it.  First I tried Sample Code A, but that line of code fails because combination strings that contain the alphanumeric characters and a special character like the pound sign (#), will validate (Example: "hello1#").  I tried Sample Code B, but that isn't 100% what I want because if you were to add a character that isn't available on the keyboard, such as the copyright symbol or the trademak symbol.  Can someone help me, please?  Thank you.
    Sample Code A:
    interface:edit_field {
                                value = bind { key = 'new_table', object = properties },
                                fill_horizontal = 1,
                                immediate = true,
                                validate = function (interface, value)
                                  if string.find(value, "[a-z%d]")  then
                                    return true, value, "good"
                                else
                                        return false, value, "failed"
                                    end
                                end
    Sample Code B:
    interface:edit_field {
                                value = bind { key = 'new_table', object = properties },
                                fill_horizontal = 1,
                                immediate = true,
                                validate = function (interface, value)
                                    if string.find(value, "[~!@#$%^&*()_+`-={}|\%[%]:\";'<>?,./]")  then
                                    return false, value, "failed"
                                else
                                        return true, value, "good"
                                    end
                                end

    wallanceM wrote:
    Hi,
    I have an edit field in which I want to be validated immediately upon change.  I ONLY want to accept alphanumeric characters (a-z and 0-9).
    Sample Code A:
    interface:edit_field {
                                value = bind { key = 'new_table', object = properties },
                                fill_horizontal = 1,
                                immediate = true,
                                validate = function (interface, value)
                                  if string.find(value, "[a-z%d]")  then
                                    return true, value, "good"
    Hi,
    Sample Code A seems the best approach to use.  Trying to detect unwanted characters would be error prone.
    I noticed you are mixing character classes and ranges in your string.find pattern.  Have you tried using the following patterns instead?
                                  if string.find(value, "[a-z0-9]")  then
    or
                                  if string.find(value, "[%l%d]")  then
    Matt

Maybe you are looking for