Is there a import class shortcut/feature in Cloud9 as there is in Eclipse? - cloud9-ide

I am experimenting with Cloud 9
This is my current code(In Vehicle.java)
public abstract class Vehicle{
List<String> tags;
}
Eclipse has this shortcut where you can scroll over a class you haven't imported(in this case List) and the IDE will make suggestions on where to import the class.
I'am looking for similar functionality in Cloud9 as I believe this will be major time saver in in the future.
I've looked through the Cloud9 IDE guide and saw a code autocompletion cloud9 feature.
However I wasn't able to find anything similar to the "smart" import class feature that Eclipse has. Does anyone know if this feature is available in Cloud9 as of this moment?

I see that you tagged your post with aws-cloud9. As of the date of this response, AWS Cloud9 does not support code hints for Java. For updated information about AWS Cloud9 support for various programming languages, see https://docs.aws.amazon.com/cloud9/latest/user-guide/language-support.html
Paul (AWS Cloud9 Documentation)

Related

Implementation angular plugin to nativescript-vue

I am newbie with nativescipt-vue. I need to connect identity server with nativescript-vue. I found a plugin in this repo. But its developer gives only angular example. Can I use this plugin with nativescript-vue. Do you have any suggestion? Thank you in advance.
Good news: Most of 'things' developed on the top of NativeScript are interoperable, meaning that you can swap frameworks as desired.
Bad news: There is some problems of doing so. I've looked into the repository that you reported on the question and I saw that you have to deal with some Interfaces there.
export class AuthComponent implements OnInit { //...
Dealing with interfaces in NativeScript is a little bit confusing since you have to deal with classes in both NativeScript and Java in the same script.
The lack of documented behavior of this keyword, for example, can lead to some undesired behaviors. I am dealing with this problem right now. So, be careful.
Please provide us some parts of the code that you want to transpile to NativeScript-Vue.
Also, I highly recommend you to study how NativeScript works before understanding how NativeScript-Vue works. You are probably accessing the NS docs way more than NativeScript-Vue docs in a near future (assuming that you are already familiar with Vue).

Documentation for Javascript code in RStudio?

RStudio has support for ROxygen for generating documentation for R code. My R package has a fair bit of Javascript code in it. Has anyone written an RStudio plugin to support Javascript documentation, using JSDoc for example?
I'd like the equivalent of "Insert ROxygen skeleton", which isn't trivial to write myself, since it needs to parse the following Javascript.
There's now a prototype addin for RStudio to do this. It currently uses the development version of the js package, so you'll need two Github installs to use it:
devtools::install_github("jeroen/js")
devtools::install_github("dmurdoch/JSDocPlugin")
See the ?insertJSDocAddin help topic for instructions on how to install it with a keyboard shortcut.
Comments or pull requests on https://github.com/dmurdoch/JSDocPlugin would be welcome.

Eclipse keymap in Cloud 9 IDE (ide.c9.io), is it possible?

Is there a way to use Eclipse's keymap inside Cloud9 IDE (c9.io) ? I already know many shortcuts in Eclipse so I would like to use them in Cloud9.
Cloud9 supports custom keymaps. You can find the key map editor in the preferences. See: http://screencast.com/t/yICZYx9gDtUm. Afaik there is no eclipse keymap available yet. If you create one, it would be awesome to post it somewhere for others to find it as well.
Just came across a blog post regarding this: somebody already made a start, so I guess you can use this and extend it. http://demostene.ro/2014/11/eclipse-keymap-for-cloud9-ide-c9-io.html
If you add several keybindings we might even build it in, so everybody can enjoy the Eclipse keybinding.

Documenting public interface of assemblies

The rules of software versioning recommend incrementing the MAJOR VERSION when there are breaking changes to the public API.
I have tried using Class View in Visual Studio and applications like dotPeek, but I have so far been unable to find a way to export a list of all public members of an assembly to either plain text or XML. Does anyone know a good way to do this?
I created a NuGet package to do this. http://www.nuget.org/packages/ApiApprover/
Basically it generates your public API as a big string, then passes it to approval tests to verify.
Approval Tests works by failing the test if the received and the approved text differs. If it differs, it can pop up a merge tool so you can review the changed, and accept them. Approval tests seemed like a perfect solution to this problem, I just wrapped the public API generation around it.

How to integrate Firefox Sync?

Firefox 4 comes soon (ok, next year ;)) and there is a Firefox plugin to sync your bookmarks etc. with Firefox 3.whatever .
I would like to know if anyone has a comprehensive, up-to-date tutorial to integrate Firefox Sync into your own plugin? Or any idea regarding this?
I mainly followed this official "tutorial" and also this blog post, but the information seems to be slightly outdated.
For example, the object is not called Weave anymore but Engines and the weave.engines. preference became services.sync.engines.. I played a little with all the mentioned options, but it does not seems to work (and my plugin does not show up in list where you can select what to sync).
I assume that the Tracker and Store classes are fine, the main problem is to register the engine...
The ClientAPI tutorial you mention is definitely the way to go. I updated it recently so if something's not working, please let us know so I can fix it in the docs. Wladimir's blogpost is definitely quite old and contains some outdated information. We will also make changes to some parts of the API in the upcoming beta releases, so be prepared for some flux...
The Weave namespace is still the canonical way to access Sync related APIs from UI code. It exposes components such as Weave.Service and Weave.Engines. You can import it via Components.utils.import("resource://services-sync/main.js"). If you want to implement your own engine, you'll have to import the actual underlying modules, though (all listed in the ClientAPI tutorial). The tutorial also describes how to register your custom engine implementation. Once it's registered, it won't automatically show up in the preferences UI, though. I suggest building your own UI that flips the services.sync.engine.YOURENGINE pref in your add-on's preferences.
Out of curiosity, what kind of data are you trying to sync?

Resources