Eclipse plugin for TypeScript? [closed] - eclipse

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
The new Microsoft TypeScript language (typed superset of JavaScript) seems very interesting, is there any alpha / incubator project that attempts to support it in Eclipse? Or is it too early to even wish for it

Check this open source plugin which is build by palantir.

This question was asked the day TypeScript was released, so as of today (Oct 2nd 2012), there is no support. Having said that, the XText team -- a team responsible for rapidly creating DSLs -- is aware of TypeScript and I wouldn't be surprised if they do something.
Another place to look is Microsoft. Depending on what their motivation is with TypeScript, they may push for an Eclipse project (although I doubt it).

Orion (the web based eclipse ide) would be a good fit. It is already using nodejs, so it would be easier to incorporate tsc and the language services. Right now they already support Javascript including some type inference. I understood typescript is on their radar.

Looks like the beta of an Eclipse Typescript plugin was uploaded on Aug 7 2013. I haven't had a chance to try it out yet but it looks promising.
http://marketplace.eclipse.org/content/typescript#.UgfEuD9IG-V
https://github.com/palantir/eclipse-typescript

Until a specific plugin is implemented, if you are adventurous enough, you might try and just use JSDT and associate *.ts files with the JavaScript editor. If you get JavaScript validation errors, disable the JavaScript Validator under Project > Properties > Builders. For automatic TypeScript compiling, you can set up an external builder as described here or here.
My settings:
Main
Location: /usr/local/bin/tsc
Working directory: ${build_project}
Arguments: ${build_files:f}
Refresh
Refresh resources upon completion: checked
The folder containing the selected resource
Environment
PATH = /user/local/bin
Build Options
Allocate console: checked
Run the builder: During auto builds
Specify Resources: a folder that contains *.ts files

Related

How to create unit tests easily in eclipse [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I want to create unit tests easily by just selecting method. Is there a tool in eclipse that does that. It should support templates. I should be able to create positive test as well as negative tests.
To create a test case template:
"New" -> "JUnit Test Case" -> Select "Class under test" -> Select "Available methods". I think the wizard is quite easy for you.
You can use my plug-in to create tests easily:
highlight the method
press Ctrl+Alt+Shift+U
it will create the unit test for it.
The plug-in is available here. Hope this helps.
Check out this discussion [How to automatically generate junits?]
If you are starting new and its a java application then Spring ROO looks very interesting too!
Hope that helps.
Any unit test you could create by just pressing a button would not be worth anything. How is the tool to know what parameters to pass your method and what to expect back? Unless I'm misunderstanding your expectations.
Close to that is something like FitNesse, where you can set up tests, then separately you set up a wiki page with your test data, and it runs the tests with that data, publishing the results as red/greens.
If you would be happy to make test writing much faster, I would suggest Mockito, a mocking framework that lets you very easily mock the classes around the one you're testing, so there's less setup/teardown, and you know you're really testing that one class instead of a dependent of it.

Recommended NetBeans UML plugins [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
It appears that the NetBeans UML plugin has been discontinued, as per a discussion on the NetBeans forums. This was a great, free tool with nice model->code and code->model generation.
There are a number of other UML NetBeans plugins out there. However, I've never used any of them. Any suggestions?
I had also a problem with installing UML for my NetBeans 6.8. Most of solutions proposed in the Web doesn't seem to work. Today I have finally find how to install UML plugin on NetBeans 6.8.
Step by step explanation of the process of installation of the plugin:
Go to
http://dlc.sun.com.edgesuite.net/netbeans/updates/6.7.1/uc/final/beta/modules/uml6/
and download all .nbm files from there.
Open NetBeans and go to Tools->Plugins->Downloaded
Click on Add plugins… button
Select all .nbm files you have downloaded from the source mentioned above.
Follow step by step wizard of NetBeans to install plugins
Hope that helps you also. As for me I am enjoying UML in NetBeans starting from today. Good luck.
So after reading a bunch of the internet, the team responsible for the NeatBeans UML plugin is working on it, but it isn't done yet. They have decided to start over because the old code is unsustainable, which is why it doesn't work with 7.x.
Nevertheless, as this post points out, people want UML Diagrams, so below is a link to my blog, which provides a way of getting UML Diagrams of your classes from NetBeans 7.x.
http://imagine.kicbak.com/blog/?p=58
You cannot generate code from diagrams with my solution, but you CAN generate UML Diagrams in your JavaDocs from your classes in your project. This is a Code -> Model solution only. Hope it helps.
Check this :
Generating UML From the NetBeans IDE
SDE for NetBeans (CE) for Windows 6.0
If you switch over to Eclipse, there are plenty of them.
Recommended Eclipse plugins to generate UML from Java code
Good free UML tool for Java/Eclipse?
UML editor for Java
The bundled UML plugin was removed from 7.0 and is undergoing a rewrite as EidosUML. The community edition of Visual Paradigm's Smart Development Environment works with Netbeans 7.0 afaik

Eclipse for Visual Studio dummies [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Looking for links to good information for Eclipse beginners. I've been a c# developer for sometime and I feel like I'm swimming in molasses. I'm especially interested in anything like the snippets functionality and how to use it (for example the prop snippet to create a property)
I'd recommend you start with the tutorials on the "Welcome" screen (automatically shown on first launch, or via Help menu).
After that, a lot of stuff can be discovered by poking around. The built-in help is also quite good, and failing that, just google for it.
Set yourself some goal, and do a bit of research; I've found most stuff fairly easily that way.
As for snippets: I'm not terribly familiar with VS, but I gather they are basically code templates that you can insert and then fill in.
In Eclipse, that would be auto-complete (or "Content Assist"), triggered by Ctrl-Space. Just try it, it's fairly clever. It will offer completions of variable names, functions etc., but will also offer common snippets like creating constructors, public methods etc. E.g. type "public ctrl-spc", and it should offer a template for a public method (try ctrl-space several times to cycle through proposals).
You can also create your own auto-complete code snippets. These are called templates in Eclipse, to be found in the prefs under "Java / Editor / Templatest". Templates can be triggerd in auto-complete by typing the (beginning) of the template's name, then auto-completing.
Have fun!
I was also a VS user for a long time and found Eclipse confusing, requires a lot more configuration to get it up and running first off.
Found this very helpful post on a Google search
http://benpryor.com/blog/2006/03/03/top-10-tips-for-new-eclipse-users/
.
I don't use it often but here are a few things that threw me at first.
Workspaces confused me, there is no exact equivalent in VS, I'd say they are a bit like Solutions. I made the mistake of keeping all my projects in one workspace and after a year of work Eclipse could barely open the workspace.
You don't need to hit 'Build' to compile your code, it keeps compiling in the background so there is always an up to date list of bugs, called problems in Eclipse.
When you run your code in debug all the windows jump about some disappear and lots of strange new ones open. These different layouts are called perspectives. There is a tab bar next to the main tool bar which lets you move between open perspectives or you can close them using the Window menu.
Besides the very good Eclipse tutorials and documentation sleske mentioned here are some other good tutorials and introductions:
IBM tutorial for Visual Studio users - you have to register for reading this tutorial but registration is free and you can download a bunch of really good Eclipse materials
Effective Eclipse - Custom Templates - this article shows you Eclipse's "snippets funcionality" in details

Which code generation tools do you use? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
If you use one of course, which one?
MyGeneration
T4
UML Transformation Tool (precise which one)
...
All others not listed above since there are so many
Do my hands count? :)
Eclipse EMF and JET.
CodeSmith Studio - lots of great sample templates that work with it.
"Normal" code-gen tools I use that many people don't think about:
Windows Forms designer
XAML for WPF UIs
LINQ to SQL
Other code gen tools that are obviously code gen in the project:
ANTLR
Custom tools I wrote such as one that turns an Excel spreadsheet (File.xlsx) into code (File.g.cs)
Eclipse Xpand and Xtext, also known as openArchitectureWare.
I tend to avoid code generation and generate dynamic functionality at runtime, using either C# DynamicMethods or C# Lambda Expressions... I prefer not to have generated code in my solutions...
I'm using the following code generators:
Visio Enterprise Architect for generating SQL scripts for creating and updating databases
NConstruct for generating NHibernate mapping files and sometimes for generating "first draft" of an application
Visual Studio for generating UI design files, project and solution files etc.
Jet Brains Resharper for lots of code snippets, template based chunks of code etc.
I believe my productivity would be much lower without code generation tools. Code generators usually don't produce bugs in generated code so this is also a good reason to use them.
I just started playing with the code generation features of Enterprise Architect. It's nice having code generated from the model instead of the database layer, but unfortunately their code-gen tool is a bit unwieldy. So far I've tweaked its C# template to produce bare-bones CSLA classes which at least saves me a lot of typing.
Jeeves (discussed in Advanced Perl Programming).
I have a pre-build step in VS 2005 that executes Jeeves to produce source code "just in time" for compilation/linking.
I often write code generation scripts in Python. In the distant past I have also used Perl. Either language is well-suited to the task.
DMS Software Reengineering Toolkit
Can be configured to read any style of specification language, and generate code including post-code generation optimization.
I use for generating code from UML:
Visual Paradigm for UML
Netbeans IDE + UML plugin
For editing/ generating GUI's:
Netbeans IDE
MS Visual Studio
For anything else
Python (because I find it's just the quickest way to hack something together).
i use own generator jUle
http://code.google.com/p/jule/

Eclipse metrics plugin suggestion [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a tool to give me some code metrics (total LOCs, LOC/Class, # of external references/class, etc...).
Does anyone know a good eclipse plugin that could provide me some some code metrics?
CodePro AnalytiX originally form Instantiations is now free at Google:
http://code.google.com/javadevtools/download-codepro.html
here is one called Metrics.
edit:
i put together a short program for this screenshot in eclipse 3.3.1.1:
Edit 2
Metrics New version Thanks #mpartel for the link
Sorry for the necropost but it seems like the right thing to do since this was my starting point. Try Metrics2, its a fork of the original metrics plugin and is built for Eclipse 3.5.
There is an updated version of the Metrics plug-in described above that should do what you need. It can aggregate some of the measurements (e.g. add up the LOC of classes in a package to give you the LOC of the package) and export the measurements to XML. Some time in the near future, it should also export them to a relational database.
If you want LOC only then use locmetric http://www.locmetrics.com/ . and if you want check metric and code coverage usse SONAR or Eclips CodePro Analytix plugin.
i suggest to use https://developers.google.com/java-dev-tools/codepro/doc/ it has Automated tools measure quality of Java source code and code coverage
A search for eclipse code+metrics turns up http://eclipse-metrics.sourceforge.net/, which looks good.
I also recommend the eclipse-metrics plugin.
It is capable of exporting the metrics into html, and is capable of doing this from an ant task (at least according to the documentation, I have never tried it).
The plugin works even in Eclipse 3.5 fine.
Sonar seems worth to look at: http://docs.codehaus.org/display/SONAR/Installing+Sonar+in+Eclipse
Another good project is the projectusus, which shows you not only the metrics but also whether you are respecting the standards or not and gives you a hint of what should be refactored