Add a feature to add USING entry given a class name - OpenEdge Development - Products Enhancements - Progress Community

 OpenEdge Development

Add a feature to add USING entry given a class name

After typing a class name, add a context menu to add the corresponding USING entry for the class based on the assemblies referenced by the project.

BONUS: Add a context menu to allow stripping the namespace from fully specified class and create the corresponding USING entry.  

Status update

Existing functionality.

Comments
  • +1

  • Is that still needed post 11.4? 11.4 can insert USINGs for you while providing content assist.

  • Is that still needed post 11.4? 11.4 can insert USINGs for you while providing content assist.

  • @Mike: It would still be useful to have this a batch functionality on a set of sources (i.e. replace all fully qualified class references by the name + add necessary using statements). But you're right, the "Organize usings" functionality, and the automatic adding of USING statements has already filled a large part of the gap here...

  • I'm still yet to see "Automatically add USING instead of qualified name" actually work on my 11.5 install. It's a hit-or-miss feature.

    My request is actually doing things in reverse - "I don't know the exact namespace, but I know my class name. Search for me all possible USINGs."

  • "My request is actually doing things in reverse - "I don't know the exact namespace, but I know my class name. Search for me all possible USINGs." " - Currently this request can be achieved using following way:

    Enter class name and press Ctrl+space, content assist lists all options where this class is available with package information.

    Select the right option from content assist list.

    The respective USING statement is added at the top.