Generate GUIDS with the Eclipse plugin

Some API - as the global event listeners and persistence API - wait - you provide a GUID. Code examples generally show a literal long hardcoded. I imagine there will be some chance of collisions of ID. How one normally generate GUIDS when you use Eclipse? Thank you.

The recommended approach is to use your package and class name:

Example:

com.mycompany.myPackage.MyClass

This example is equivalent to: 0x9fd1c13aff6c669dL

To convert a string to a long value highlight the chain in the BlackBerry JDE or Eclipse, right-click and then choose "Convert String to Long".  Note If you are using Eclipse this feature requires the installation of the BlackBerry JDE for Eclipse.

Tags: BlackBerry Developers

Similar Questions

  • Problem with the Eclipse Plugin

    Hi all! I get just enough of it, so before I break my computer, I'll ask here hehe.

    I downloaded the last functional eclipse IDE, as well as the Plugin to begin programming. I followed the instructions (help-> update-> local-> restart eclipse) but I can't just set up my blackberry workspace. The option is not available, just the thing "import signing keys.

    What's not here?

    I downloaded "eJDE1.0.0.67_With_CP4.5.0.16.zip" which includes the "features" and "plugin" folders. And the file "eclipse-java-ganymede-SR2 - Win32.zip" Eclipse.org

    HEY! I found a solution here

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=26408&jump=true

    hope this would help other ppl

  • Error installing the Eclipse plugin

    Hi, I am installing the Eclipse plugin for VMware Studio. First of all, I downloaded Eclipse 3.5 and when that does not work I downloaded 3.4, but I'm having the same problem with 3.4 I had with 3.5. I'm just following the instructions posted here:

    http://www.VMware.com/support/Developer/Studio/studio20/eclipse_plugin.html

    I managed to step 3, when I click on install in step 4, I get a warning:

    «Maybe the software you selected is not valid with your current installation.» You want to open the wizard in any case to review the selections? »

    I click Yes and a new window opens that says "cannot complete the request. See details»

    Details:

    Cannot complete the request.  See the details.

    Unsatisfied dependency: http://com.vmware.studio.eclipse.feature.group 2.0.0.1017 - 185256 requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml_ui.feature.feature.group/0.0.0

    Unsatisfied dependency: http://com.vmware.studio.eclipse.feature.group 2.0.0.1017 - 185256 requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.xml_ui.feature.feature.group/0.0.0

    No one knows what that is this dependence and how can I solve this problem?

    Thank you!!

    Make sure that the proxy server can be reached.

    After installation, restart your eclipse.

    I recommend try first on Eclipse 3.4

  • Problem to generate a library with the JDE plugin for Eclipse

    Hello world

    I created a new library project in my workspace. I used the JDE plugin for Eclipse create this project (New-> other-> BlackBerry project) but when I build my project, I receive a generated .class file, there is no file .jar and .cod generated

    Somedoby there any idea why the generation process seems not to work?

    Thanks in advance.

    OK, I did it for all the people who might encounter the same problem: start your process of generation by selecting generate BlackBerry Configuration Active (Alt + B) instead of a simple plan to build in the Project menu and your compilation works through very well.

  • Archive of invalid widget in the Eclipse Plugin

    Hello

    I'm testing the widget Plugin SDK for Eclipse (3.5).

    Every now and then I get the message following, when I try to compile a widget:

    Invalid widget archive - the resource name is not valid(.tmp_index.html.some_random_number~)

    I did not create this file - it seems that the plugin creates it is why some (but which) and then can not read it, because it contains unsupported characters. It's strange, because I think the plugin should only create these files, it can read, shouldn't it?

    Is it possible to prevent this? Where did it come from?

    I can fix it by deleting the file, and then restarting the build...

    Kind regards

    Nallo

    I use eclipse with Aptana Plugin.

    When you work on my Widget, I use Aptana editor HTML. This editor creates these files for the browser-preview...

  • Plugin check says that the plugin Acrobat Reader (10.0.1.434) is an outdated version. However, I downloaded the latest version of Acrobat and installed. Is there a problem on my PC environment or with the control plugin?

    1 did the plugin check June 10 - got the message that the plugin Acrobat Reader for Firefox and Netscape was an outdated version. You press the update on the page has been redirected to the Adobe site.
    2. download the latest version, AdbeRdr1001_en_US.exe, and then ran the executable locally on the PC. The updated normally. Note: I didn't uninstall the old Acrobat reader before running the executable file.
    3. I went to the plugin check page and I always get the obsolete message for this plugin. Restarting the system (i.e. overnight) and repeated the check, with the same results.
    4 did you open Acrobat Reader app, you tap Help and then search for updates - no new updates have been found. Have, run test Mozilla (Mozilla Privacy Policy PDF) without any problem.
    5. what version of the plugin that should be saved in the Add-ons Manager on my PC?
    6. Please advise on the appropriate action.

    For those who have had this problem. Adobe has released a fix yesterday and you need to update your Adobe Reader immediately. The latest version is 10.1.0. Once you updated your Firefox Adobe Acrobat plug-ins will be automatically updated to 10.1.0.534.

    If you receive a notification of update from Adobe, you can open Adobe and go to: help > check for updates

  • Problems with the Eclipse Update site

    Hello

    I try to install the component pack v6.0.0. I'm just following the instructions here

    http://NA.BlackBerry.com/eng/developers/javaappdev/javaupdate.jsp

    and installation just hangs (or I get the Exception of transfer). I found many messages of forum on the problems with the update site but no solutions. Is this one? Or y at - it another way to install the component pack in eclipse?

    Thank you

    Sarah

    Hi Mark,

    Apologies that I was on vacation and never had to deal with that. I just tried to update the software development kits using the same procedure. It must have been a problem with the update site before that it worked well this time.

    Thank you

    Sarah

  • Problem with the JDE Plugin

    Eclipse 3.5.0 and BB Java SDK 5.0.0.14 using... I'm just getting started with BlackBerry... I just built and tested the HelloWorld app... launched in the Simulator end. I try then run it on my camera, to get an error on the wrong version. So, I try and run it again in the Simulator, and now the app just does not appear in the downloads folder. Just nothing. Any ideas what's happening here?

    This happened to me earlier today by using the JDE, so I switched to the Eclipse thinking that would take care of her...

    Never, does anyone else have this problem?

    OK, I fixed it. I just deleted the project BB and recreated and it seems to work again. I think that the problem can me been accidentally right click on the project name and selecting 'BlackBerry\Package project (s).

    What the devil who does anyway?

  • Problem with the AD plugin since the upgrade

    Salvation;

    I upgraded version Orchestrator 4.2.2 version 5.5.1 and now I have problems with my AD plugin.

    The plugin is version 1.0.4.

    When I do a simple search in AD, it returns an error:

    TypeError: Cannot find the search object notfound.

    I also made this:

    System.Debug (AD);  (the AD variable is AD:ActiceDirectory)

    And here's the result:

    [16:59:30.956 2014-05-07] [D] notfound

    I did a backup of plugins + configuration of plugins files.

    And I copied the backup configuration file in the configs for the plugins folder.

    I can see the active AD plugin, I can browse it in Orchestrator.

    Can someone help me with this?

    Kind regards

    Jonathan

    Apartenly you don't need to place the ad as an object.

    You can use

    ActiveDirectory.search("User" , username);
    
  • Invalid connection with the CytoScape plugin

    Hello everyone,

    I am trying to connect to my server Oracle 11.2 by CytoScape 2.6.3 instance but I get the error ORA-01017: name of user and password invalid. I know that my credentials are correct and I have also tried SEC_CASE_SENSITIVE_LOGON setting to FALSE, but this isn't the problem.

    By checking the dba_audit_session table, I see that every attempt is a recording that says:

    OS_USERNAME: ssundara
    Username: (null)
    + USERHOST: [My computer name] +.

    that seems pretty strange to me... Of course, when I connect through SqlDeveloper using the same credentials, username and os_username fileds are filled in correctly.


    In addition, in the Cytoscape error console I get the following warnings (even if, as saying the warnings themselves, the problem should not affect the operations of plugin):

    + 1 +
    + cytoscape.plugin.PluginManager [WARN]: registration of the plugin error: could not load plugin.props. File is not in the expected location: oracle, graph, RDF, cytoscape unable to load plugin.props. File is not in the expected location: oracle, graph, RDF, cytoscape java.io.IOException: cannot load plugin.props. File is not in the expected location: oracle/chart/RDF/cytoscape to cytoscape.plugin.PluginProperties.readPluginProperties(PluginProperties.java:89) to cytoscape.plugin.PluginProperties. (PluginProperties.java:76) to cytoscape.plugin.PluginManager.registerPlugin(PluginManager.java:356) to cytoscape.plugin.PluginManager.register(PluginManager.java:345) to cytoscape.plugin.PluginManager.loadPlugin(PluginManager.java:951) to cytoscape.plugin.PluginManager.loadURLPlugins(PluginManager.java:901) to cytoscape.plugin.PluginManager.loadPlugins(PluginManager.java:796) to cytoscape. CytoscapeInit.init (CytoscapeInit.java:259) to cytoscape. CyMain. (CyMain.java:155) to cytoscape. CyMain.main (CyMain.java:119) +.

    + 2 +
    + cytoscape.plugin.PluginManager [WARN]: oracle.graph.RDF.cytoscape.RDFVisualizer responsible but not registered, it will not affect the functioning of the plugin.


    I tried to look for solutions, but I couldn't find an answer. The problem seems to be located in CytoScape Plugin of the Oracle, but I do not know how to solve. Does anyone have an idea?

    A revised version of the Cytoscape plugin (dated April 23, 2013) is now available for download on OTN.

    The only file that has been changed to solve the problem of invalid connection is oraclerdf.jar.

    To solve the problem of invalid connection, just download the zip file, extract files from it and find the new file oraclerdf.jar under JAR subfolder, then replace the old oraclerdf.jar with the new.

  • withWriteAccessDo problems with the debug plugin

    Hi good morning all,

    I've just started writing plugins for Lightroom (well, I had a first successful 2 years ago but now I start again with more complicated stuff) and of course I love the Debug plugin (thanks again, John!)- but I'm still struggling with concepts and limitations that may be imposed by the latter.

    Concretely, that I will meet the error "attempt to access the property 'myPropertyName' which is not declared in Info.lua", during the execution of my script using the debugging dialog box. It works when I run it just in the Plugin Extras menu as a menu action.

    Code:

    LrTasks.startAsyncTask (Debug.showErrors (function (context)
    local catalog = LrApplication.activeCatalog)
    selected local = catalogue: getTargetPhotos()

    ...

    key s peers (values)
    Catalog: withWriteAccessDo ("writing data", Debug.showErrors (function (context))
    Photo: setPropertyForPlugin (_PLUGIN, "myPropertyName", s)
    end))
    end

    I found something in the Internet which is an indication of a race condition, then maybe it has something to do with a packaging script / running the other? Or y at - it a way to get this race with script debugging, and I'm simply not understand the notion of background tasks/threads yet :-)?

    Thanks for your help!

    Christof

    (I'm on LR 5)

    Christof,

    We will call the plugin that you debug MyPlugin.  I think the problem is that you are the menu command Debug Script in the debug plugin but Script invoking a MyPlugin returned file.  When you do so, all references to the global variable _PLUGIN are actually referring to the Debug Script plugin, not for MyPlugin.   And so, the returned file cannot access the properties of MyPlugin.

    This is a limitation of the SDK that I neglected to document in the Toolbox for debugging.  The solution is simple - copy Debugscript.lua to the MyPlugin folder and add a menu command for MyPlugin that calls Debugscript.   See steps 6 to 9 "Debug export - and publishing Plugins Service" documentation "debugging Toolkit.docx.

    Let me know if that solves your problem.

  • File selector and loading the files as byte [] of a cmdlet with the old plugin

    Because I need for Mac users, I may have to use the old plugin for my Swing applet mechanism, that is, to renounce JNLP. Before that I lost a lot of time in the rabbit hole, can someone give me the truth about the file selectors and loading files as byte [] (exactly as on the drive, not in the form of Image, audio, or other): is it possible using the 'old' Java plug-in?

    Thank you very much

    Signed applets can access the local file on the client system.

  • Problem with the eclipse 1.5?

    Hi there,

    I used the plugin before and installed 1.2 jdk 4.5 - 6.0.Now with plug 1.5 I can't get 4.5 to 5.0 through jdk > on... > install... > download... He is always prompt that my account is not valid, but it can really be loged in bb.com. 

    I also installed JDE 4.5 to 5.0, but eclipse can't alternated 4.5 - 5.0.So how can I have installed full eclipse using an offline method?

    Oh, forget to say that. I'm on win 7 64 bit.

  • Problems with the Echo plugin

    Dear all,

    I'm trying to follow this tutorial and create a custom plugin:

    http://developer.BlackBerry.com/HTML5/documentation/beta/about_custom_native_plugins_cordova_blackbe...

    However, even if I add the plugin and run a simple application on the emulator, I am not able to make the cordova.exec function to call native code. I guess that something is broken in the string, the native code to the js.

    Cordova version 3.3 and native SDK is 10.2. Everyone knows the same problem?

    I do not post code is since then the tutorial one...

    Am I missing somehting in the tools / configuration?

    Thank you!

    -marco

    I think that registerEvents may have been broken, because I think that this sample is missing the onEvent method.

    I'll ask the documentation team to review this sample. We have a much more detailed model from and I would rather they referenced here instead - https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova/Template

    It seems that they have links with that, but not on this page directly.

    Happy that you guessed it works well!

  • First CS5, made with filters/Plugins or export with the filters/Plugins without rendering?

    Hey people, my real Question here first.

    Does anyone know if I use the CS5 first and used a Plugin like NeatVideo or even a filter, do I first need to make the file before exporting it or I can simply add the plugin make changes and export them to a file format of my choice. ?

    No, returned found only and has nothing to do with export. If return you to the purpose of the preview, do NOT preview export files. It will usually degrade quality.

Maybe you are looking for