2.1 EA2: is it possible to pass current line number to external tool

When I define external tools (in Tools / External Tools...) I can pass current file name and directory to my external program.
Is it also possible to pass current line number (where is my cursor in open file) to external program as a parameter?
If not then it would be a feature request from me :)
And also - is it possible to develop SQL Developer extensions for syntax color coding of other file types (meaning other than PL/SQL files)?

raymonds,
For line numbers, we cannot do it at the moment as it is not exposed in that API, however, you can request it on http://sqldeveloper.oracle.com at the feature request station
For color coding for another language, you can develop a hilighting plugin, but we do not have an easy way of associating the plugin with an editor for a specific file type. Again this would be a feature request.
Remember, all these get evaluated each month and assigned into Enhancements for the tool. If enough folks vote for the feature, it is highly likely it will appear.
Barry

Similar Messages

  • Is it possible to pass current DataContext as ContructorParameter of ObjectDataProvider?

    It would be very useful to pass DataContext as parameter for DataTemplate:
    <DataTemplate>
    <DataTemplate.Resources>
    <ObjectDataProvider x:Key="ServiceDataProvider" ObjectType="{x:Type control:ServiceLayout}">
    <ObjectDataProvider.ConstructorParameters>
    /*here could be DataContext..but how?*/
    </ObjectDataProvider.ConstructorParameters>
    </ObjectDataProvider>
    </DataTemplate.Resources>
    <ContentPresenter
    Content="{Binding
    Source={StaticResource ServiceDataProvider}}" />
    </DataTemplate>
    I will use this DataTemplate in ListBox ItemTemplate. So, DataContext will be ListBoxItem bound object (type is known), and it is not very well to use ViewModel added as static resource as in https://social.msdn.microsoft.com/forums/vstudio/en-US/38a80213-9e72-44fc-8338-1a8bcfcf9c9f/objectdataprovider-binds-to-datacontext
    May be there are any other ways to pass parameter to constructor from DataTemplate?

    I am afraid that it is not possible to bind anything directly to the ConstructorParameters collections since it is just an IList property and not a dependency property.
    What you could to is to use a BindingProxy class that extends the Freezable class and captures the DataContext as described here:
    http://www.thomaslevesque.com/2011/03/21/wpf-how-to-bind-to-data-when-the-datacontext-is-not-inherited/
    You can then bind the DataContext of the ListBoxItem to the Data property of a BindingProxy object and use a custom StaticResourceExtension class as described in the following TechNet article to pass the DataContext to the constructor:
    http://social.technet.microsoft.com/wiki/contents/articles/23503.trick-to-use-staticresource-with-path.aspx
    Here is a complete example:
    public class ServiceLayout
    public ServiceLayout(object dataContext) {
    public class BindingProxy : Freezable
    protected override Freezable CreateInstanceCore() {
    return new BindingProxy();
    public object Data {
    get {
    return (object)GetValue(DataProperty);
    set {
    SetValue(DataProperty, value);
    public static readonly DependencyProperty DataProperty =
    DependencyProperty.Register("Data", typeof(object), typeof(BindingProxy), new UIPropertyMetadata(null));
    public class StaticResourcePath : StaticResourceExtension
    public PropertyPath Path {
    get;
    set;
    public override object ProvideValue(IServiceProvider serviceProvider) {
    object o = base.ProvideValue(serviceProvider);
    return (Path == null ? o : PathEvaluator.Evaluate(o, Path));
    class PathEvaluator : DependencyObject
    private static readonly DependencyProperty DummyProperty =
    DependencyProperty.Register("Dummy", typeof(object),
    typeof(PathEvaluator), new UIPropertyMetadata(null));
    public static object Evaluate(object source, PropertyPath path) {
    PathEvaluator d = new PathEvaluator();
    BindingOperations.SetBinding(d, DummyProperty, new Binding(path.Path)
    Source = source
    var result = d.GetValue(DummyProperty);
    BindingOperations.ClearBinding(d, DummyProperty);
    return result;
    <ListBox>
    <ListBox.ItemTemplate>
    <DataTemplate>
    <DockPanel>
    <DockPanel.Resources>
    <local:BindingProxy x:Key="proxy" Data="{Binding}" />
    <ObjectDataProvider x:Key="ServiceDataProvider" ObjectType="{x:Type control:ServiceLayout}">
    <ObjectDataProvider.ConstructorParameters>
    <local:StaticResourcePath ResourceKey="proxy" Path="Data"/>
    </ObjectDataProvider.ConstructorParameters>
    </ObjectDataProvider>
    </DockPanel.Resources>
    <ContentPresenter Content="{Binding Source={StaticResource ServiceDataProvider}}" />
    </DockPanel>
    </DataTemplate>
    </ListBox.ItemTemplate>
    Note that you have to move the resources to the root element of the DataTemplate, a DockPanel in the above example, for this to work, i.e. you cannot add the resources to <DataTemplate.Resources> but that should make no difference.
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new one if you have a new question.

  • Is it possible to pass command line as variable.

    Hi to all,
    I have an application(java based) which upon execution asks for database name after selection thru file dialog, it spawns dos window and executes batch file (and the batch file contain command line java programm).
    Now my question is how can i pass the database name to this spawned java application in dos prompt.
    Anybody's suggestion is welcomed.
    Regards
    Khizer

    Two ways, as a property or as an argument.
    You can set it as a property like this using the -D option:
    java -Ddatabase.name=MyDatabase ....
    Then you can read it from the application as
    System.getProperty("database.name");
    Passing it as an argument goes like this:
    java ... MyMainClass MyDatabase
    and read it as
    public class MyMainClass {
      public static void main(String[] args) {
        if (args.length == 1) {
          System.out.println("Database name is: "+args[0]);
        } else {
          System.out.println("Usage: java ... MyMainClass <database name>");
    }

  • Is it possible to get the serial number from external C++ code?

    Hi,
    I have a C++ library called by a CLF in the LabVIEW RT from my cRIO. I am trying to use the cRIO serial number in my C++ code for licensing purposes. Is it possible to get the cRIO serial number using the C++ API?
    I found information on how to do this from LabVIEW itself (http://digital.ni.com/public.nsf/allkb/74924FEE303​440998625727D005197FA), but it would be really helpful to be able to do it from the C++ code.
    Thanks in advance!
    Solved!
    Go to Solution.

    Hi mkossmann,
    Thanks for your suggestion. I have never used the VISA library from C++ or from LabVIEW, actually. I'm a newbie using NI hardware so sorry if the questions are too basic. 
    Is there documentation on the VISA library? I have found the DLLs on my windows machine, but I don't find any other documentation.
    Thanks,
    Sara

  • Is it possible to pass personnel number in BAPI_ACC_INVOICE_RECEIPT_POST

    Hi All,
    We are using an external document image system where we scan and code vendor invoices. To send the invoices to our SAP system we will use BAPI_ACC_INVOICE_RECEIPT_POST. Unfortunately we are missing the possibility to pass <b>personnel number</b>. This is an important attribute for us, e.g. with learning and education cost. Is there a simple way to pass this information?
    Regards,
    Gerrit

    Hi Romeo,
    In BAPI_ACC_DOCUMENT_POST table EXTENSION1 is available. Fields you want to pass, but which are not available in one of the other tables, you can pass via the EXTENSION1 table. In the User Exit of the BAPI you will have to map these fields to the required fields.
    For example, in BAPI_ACC_INVOICE_RECEIPT_POST we have now activated User Exit ZXACCU15.
    Source in the user exit:
    <i>* Post the personal number and partner bank type
    from the EXTENSION to the ACCIT data
    structure for the NL users only.
      DATA: wa_extenion LIKE bapiextc.
      DATA: wa_accit    LIKE accit.
      DATA: h_index     LIKE sy-tabix.
      LOOP AT extension INTO wa_extenion
                        WHERE field2 = 'PERNR'
                        OR    field2 = 'BVTYP'.
        READ TABLE t_accit INTO wa_accit
                           WITH KEY posnr = wa_extenion-field1(10).
        IF sy-subrc = 0 AND wa_accit-bukrs(2) EQ 'NL'.
          h_index = sy-tabix.
          IF wa_extenion-field2 = 'PERNR'.
            wa_accit-pernr = wa_extenion-field3(8).
            MODIFY t_accit FROM wa_accit
                           INDEX h_index
                           TRANSPORTING pernr.
          ELSEIF wa_extenion-field2 = 'BVTYP'.
            wa_accit-bvtyp = wa_extenion-field3(4).
            MODIFY t_accit FROM wa_accit
                           INDEX h_index
                           TRANSPORTING bvtyp.
          ENDIF.
        ENDIF.
      ENDLOOP.</i>
    Table EXTENSION1 has 4 fields which you can use to your own needs. In my example we use field1 for the itemno_acc, the item number in the other table where the extension is needed. Field2 is the fieldname where the value (from field3) has to be placed. We do not use field4.
    Example
    FIELD1        FIELD2     FIELD3     FIELD4
    0000000010 BVTYP     USD     
    0000000020 PERNR     99999999     
    Unfortunately I do not know how to activate a user exit, because in our case it was already there.
    Hope this is of any help,
    Regards
    Gerrit

  • Is it possible to pass a string from an applet to the web site?

    Hi, everybody!
    Is it possible to pass a String from an applet to a web site (as a field value in a form, an ASP variable, or anything else). Basically, I have a pretty large String that is being edited by an applet. When a user clicks on the submit button, a different page will show up which has to display the modified string. The String is pretty large so it doesn't fit into the URL variable.
    Please, help!
    Thank you so much!

    Why do you want to do this in Java?
    Javascript is the correct language for these type of situations.
    for instance:
    in the head of your html document:
    <script language=javascript type="text/javascript">
    createWindow(form){
    if(form.text.value!=""){
    newDoc = new document
    newDoc.write(form.text.value)
    newWin = window.open(document,'newWin','width=200;height=150')
    </script>
    in the body:
    <form onSubmit="createWindow(this)">
    <p>
    Enter a String:<input type=text size=30 name="text">
    </p><p>
    <input type=submit value="submit"> 
    <input type=reset value="reset">
    </p>
    </form>

  • Is possible to pass array/list as parameter in TopLink StoredProcedureCall?

    Hi, We need to pass an array/List/Vector of values (each value is a 10 character string) into TopLink's StoredProcedureCall. The maximum number of elements on the list is 3,000 (3,000 * 10 = 30,000 characters).
    This exposed two questions:
    1. Is it possible to pass a Vector as a parameter in TopLink's StoredProcedureCall, such as
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    Vector strVect = new Vector(3000);
    strVect.add(“ab-gthhjko”);
    strVect.add(“cd-gthhjko”);
    strVect.add(“ef-gthhjko”);
    Vector parameters = new Vector();
    parameters.addElement(strVect);
    session.executeQuery(query,parameters);
    2. If the answer on previous question is yes:
    - How this parameter has to be defined in Oracle’s Stored Procedure?
    - What is the maximum number of elements/bytes that can be passed into the vector?
    The best way that we have found so far was to use single string as a parameter. The individual values would be delimited by comma, such as "ab-gthhjko,cd-gthhjko,ef-gthhjko..."
    However, in this case concern is the size that can be 3,000 * 11 = 33, 000 characters. The maximum size of VARCHAR2 is 4000, so we would need to break calls in chunks (max 9 chunks).
    Is there any other/more optimal way to do this?
    Thanks for your help!
    Zoran

    Hello,
    No, you cannot currently pass a vector of objects as a parameter to a stored procedure. JDBC will not take a vector as an argument unless you want it to serialize it (ie a blob) .
    The Oracle database though does have support for struct types and varray types. So you could define a stored procedure to take a VARRAY of strings/varchar, and use that stored procedure through TopLink. For instance:
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    oracle.sql.ArrayDescriptor descriptor = new oracle.sql.ArrayDescriptor("ARRAYTYPE_NAME", dbconnection);
    oracle.sql.ARRAY dbarray = new oracle.sql.ARRAY(descriptor, dbconnection, dataArray);
    Vector parameters = new Vector();
    parameters.addElement(dbarray);
    session.executeQuery(query,parameters);This will work for any values as long as you are not going to pass in null as a value as the driver can determine the type from the object.
    dataArray is an Object array consisting of your String objects.
    For output or inoutput parameters you need to set the type and typename as well:
      sqlcall.addUnamedInOutputArgument("PERSON_CODE", "PERSON_CODE", Types.ARRAY, "ARRAYTYPE_NAME"); which will take a VARRAY and return a VARRAY type object.
    The next major release of TopLink will support taking in a vector of strings and performing the conversion to a VARRAY for you, as well as returning a vector instead of a VARRAY for out arguments.
    Check out thread
    Using VARRAYs as parameters to a Stored Procedure
    showing an example on how to get the conection to create the varray, as well as
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/varray/index.html on using Varrays in Oracle, though I'm sure the database docs might have more information.
    Best Regards,
    Chris

  • Is it possible to pass some type of parameter/unique id FROM PDF?

    hi there,
    I will try to explain this as best as I can but please bear with me.
    I have Adobe Acrobat X Pro.
    We have drawings linked to each other in pdf.
    When you open a drawing (say, a layout of a house), my boss wants to be able to click on say, a door, and have all the information on that door pop up (size, manufacturer, when it was shipped, etc). The information log is stored in Excel. I know how to hyperlink to open an excel file FROM pdf, but cannot figure out how to open a specific sheet in Excel. So here is my question:
    1. How do I link to a specific sheet in Excel so it opens when I click on a link in the pdf file?
    Having said that, we are going to have around 1500 items and I don't want to have to create 1500 sheets (if that's even possible) to open the details for each one. So here is question #2:
    2.  Is it possible to pass some type of parameter to excel (or even Access) to know what item was clicked on the pdf file so I can write a macro/code in Excel to just fill in the details for that item? (Hence just needing one sheet instead of 1500?).
    Suggestions/path forwards are welcome.
    I hope this was clear and I thank you in advance.
    Thanks,
    Jessica

    There really isn't a way to do that. It would be possible to export an Excel sheet to a tab-delimited (or CSV, XML) file which could optionally be attached to the PDF. JavaScript inside the PDF could read the data file and extract the information for an item so it could be displayed somehow.

  • Is it possible to pass a field symbol as parameter from any method of view?

    Hi
    Is it possible to pass a field symbol as an importing parameter to teh globally declared attribute??

    While it is true that you can pass field symbols, they must be fully typed at the time you pass them  and they will be passed by value, not by reference. If you want to pass generically typed variables use a data reference (TYPE REF TO) instead.

  • Is it possible to pass the idoc between the same client

    Is it possible to transfer the idoc between the same system. I do not have two clients . I have only one client access. Is it possible to pass the idoc between the same client.

    Hello Preethy,
    This would not be possible as when you have to create the logical systems, you cannot create two entries for the same client.
    And  while defining the partner profiles as well.
    IDocs are basically for two systems or two clients.
    YOu may not require IDoc in one system itself.

  • Is it possible to pass TABLE as the output parameter in stored procedure

    Hey Experts,
      Is it possible to pass TABLE as the output parameter in stored procedure.
    eg
    create procedure spGetData
    @tableName as TABLE(intValue INT NOT NUL)
    as 

    You can use OPENQUERY or OPENROWSET, as mentioned above, to make stored procedure results table like. There are
    some limitations with these methods:
    http://technet.microsoft.com/en-us/library/ms188427.aspx
    In OPENQUERY this-sql-server-instance can be used instead of a linked server name. It requires setting data accces server option:
    exec sp_serveroption @server = 'PRODSVR\SQL2012'
    ,@optname = 'DATA ACCESS'
    ,@optvalue = 'TRUE'
    LINK: http://www.sqlusa.com/bestpractices/select-into/
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Is it possible to pass a string representing a class name in java as an arg

    Hi, this is probably a bit of a stupid question, but one that has me quite confused all the same!
    Is it possible to pass a string or class name etc. representing a type of class in java, to a method so that instead of having to redefine a method with say the following args:
    public SolarPanels[] bestPVPanels(int budget, int percent) {
            HashMap<Integer, SolarPanels> panelsMap    = new HashMap<Integer, SolarPanels>();
    }As at present needing to create a methods bestWindTurbine() and many others exactly the same, but for the type, I would instead like to be able to create a method like:
    public Object[] bestRenewable(int budget, int percent, String aClassName) {
            HashMap<Integer, aClassName > renewableMap    = new HashMap<Integer, aClassName >();
    }But cant sus how to do this as passing a String is off course going to cause problems unless its it possible to cast a string to a class name, any help or advance would be much appreciated.
    Thanks in advance
    Pat Nevin

    pNev wrote:
    But cant sus how to do this as passing a String is off course going to cause problems unless its it possible to cast a string to a class nameIt's not. You can do things like
    Class.forName(classNameInString);But that will only return a Class object.
    And as Java generics are erased at runtime, passing the class name to the method is useless as it is too late to use it anyways.
    Ah, Peter's way is what I was thinking of. Too early in the morning.
    Edited by: Kayaman on 23.6.2010 10:02

  • Is it possible to pass parameters from a html to webforms ?

    i4m looking for a possiblity to pass (user-defined) parameters from a html page (which includes the applet call + the standart parameters etc.) to the webform.
    after passing how to find them inside my webforms ...
    thx in advance
    regards
    null

    i found a solution.... :-)
    just create a parameter inside the form and pass the value together with the formcall in the "module" parameter....
    null

  • Is it possible to pass an xml from external system to EBS using BE

    Hi All,
    Is it possible to pass the xml payload as input parameter of a function subscribed to Business event? Or is it possible to pass table type as input to BE subscription function (SRF)? if yes how?
    Thanks,

    Workflow Business Events help creating Generate Function to generate an XML payload that in turn is made available to the Subscription's Rule Function. Also, at the time of Raising the Business Event, you could pass the XML payload (in the form of a CLOB) to the Raise API that will be passed along to the Business Event's Subscription Rule Function.
    Hope this helps.
    Vijay

  • BODI: Is it possible to pass parameter/variable value out of a data flow?

    Hi All,
    Is it possible to pass parameter value out of a data flow?
    I've created a custom function in my query transform to get row count, this value would be used outside the data flow to perform another logic. It looks like I'm unable to modify the output schema at the function in the query transform to explicitly map it to a particular global/local variable.
    Any ideas?
    Thanks.

    Any ideas?

Maybe you are looking for

  • How do I remove unwanted table/ cell borders in firefox

    I just built my website in dreamweaver. When I preview it, it looks fine in both firefox & safari. However when i post and view my site online, i see unwanted cel borders in firefox...I've already checked the code and the border is set to 0 - any hel

  • Any script to automate stretching PDF to create bleeds?

    Hi everyone! I work for a Direct Mail company and we constantly get pdf's from clients that have color and artwork going to the edge but the artwork doesn't have any bleeds. When this happens, I usually place the pdf(usually 8.5" x 11") in a new InDe

  • HT201263 dropped iphone4 in water and turned off by itself

    dropped iphone4 in water and turned off by itself and now cant turn on, plugged it to itunes and was asking to restor, when i did restore it it would not turn on when i try to restart it was still the same and now keeps on asking to restore would not

  • I've got no option to minize my page, why not?

    when i have a page in safari i don't have the option to minimize the page, why not? what have i done. and at best the option was intermitant. sometimes i would have the option sometimes not. can anyone help me please?

  • IPhone and NikePlus Syncing

    I use my iPhone to connect to the treadmills at my gym and record the stats of my runs. With the release of IOS 5 my iPhone still appears to save the treadmill stats, but iTunes no longer syncs the stats to nikeplus. How do I sync my stats now. Note