Eclipse + workshop Studio (nitrox) getting started

Source: Internet
Author: User

To do their best, you must first sharpen your tools.

The predecessor of workshop studio is nitrox. Since nitrox is available, I have a special liking for it.
Studio is basically in the stopped update status. I still don't change my mind. Next, let's take a look at workshop.
What are the charm of maxcompute studio :)

0. Let's open it. Does this startup screen Make You Feel refreshed?

1. Let's take a look at the startup screen. Is it cool:

Lecture 1
Eclipse
Plugin installation

There are two ways to install plug-ins: Online installation and offline installation. from a scientific perspective, offline installation is the most scientific method. Why? The reasons are as follows:
1. Download the offline installation package quickly (everyone knows)
2. Because the plug-in package is separated from eclipse, you do not need to reinstall the plug-in even if eclipse is deleted.

Installation Method:
First, download the plug-in and place it in a fixed place. Note that some plug-ins exist in the form of jar packages. In fact, you still need to decompress the plug-ins. In short, you must make such a directory structure to run the plug-ins.
Let's take a look at the structure of the typical plug-in directory:

Unzip the installation, and then go to the workshop installation directory.E:/workshop_studio_3.3_608/Eclipse/LinksAdd a link file to the corresponding plug-in. For example, name proedit
Proedit. link. The content is as follows:

Path = E/:/eclipse_plugin/propedit

Restart Workshop
Studio (eclipse.
Let's take a look at the plug-ins I use :)

Custom perspective

Eclipse supports multiple perspectives. In fact, it combines different views and buttons into a set of solutions. everyone should have a perspective that they are used to. Let's take a look at my perspective view based on the above startup screen. The principle of my perspective definition is as follows:
Less is more
Tool button: I actually seldom use buttons. The shortcut keys are my favorites, so remove unnecessary buttons.
Editor:Needless to say
Appxploer Navigation:This is the web project navigation of workshop, which has been changed to the standard J2EE project navigation in the new workshop version. However, I still like this.
Dbxplorer database Navigation:This is equivalent to the database browser of myeclipse.
Snippets:Code snippet
Problems
/Tasks/servers/console/progress/javadoc:
It is minimized in normal conditions.
Fast ViewTo:Fileexplorer/
Taglib/variables
/Outline
That's all. As for the layout, it depends on what you are most commonly used, so you can put it in the most conspicuous position. Of course, the definition is complete, be sure to save it:
MenuWindows-save perspective

Workshop
Getting started with maxcompute Studio
Since it is a workshop studio tutorial, of course we need to talk about workshop studio. Some people say that Workshop
Studio is a JSP + Struts editor. There is nothing wrong with it. Let's take a look.Edit JSP:
1. Suppose you have imported a web project. Let's open a JSP to see:

Look, just like Dreamweaver, the Web users must be very happy. The operation habits are also similar to Dreamweaver. You can directly edit the text in the design view.
Of course, the JSP editor is not just that simple, but also has the following features:
1. Open the reference in JSP, for example, Bean
Write label. you can press the value of property to directly open the get method. Is it very convenient.
2. JSP code, including HTML
I have not seen a better tool for formatting struts labels. It may be that I am too ignorant.

I'm going to talk about it as an advertisement. Sorry.
Struts editing function:
To use struts, add struts to the web project first.
Open the Project Properties window (select the project root node Alt + enter), find the project facets, and add a facets

If you use it for the first time, you may need to download it online. Of course, using a ready-made release package is the fastest way. Pay attention to the version.

Let's take a look at Workshop
Powerful struts configuration functions of studio:

I will not detail the specific usage.

Database and hibernate:
Workshop
Studio's database browser can assist hibernate development:
1. You can directly execute hql to verify hql.
2. hibernate ing and pojo can be generated.

Of course, to use the functions generated by hibernate, you must first add the hibernate
Facets, refer to the above steps.
With the hibernate facet, let's take a look at dbxplorer:

It can be used directly as a database client. Of course, its practicality is still poor. If you really want to use the RCP client, I suggest you try dbviewerplugin.
Return to dbxplorer and check whether there are two options at the bottom of the right-click menu. You can directly generate JPA ing or hibernate ing. I didn't configure the JPA environment here, But hibernate has it. Let's take a look:

If you need hibernate development, this is a good helper.

Spket
Javascript development
It's not like a workshop.
The functions of maxcompute studio, however, are mentioned as follows:
1. The JS editor of spket responds quickly. Of course, it is much faster than Aptana.
2. The spket open statement is very useful. Use the annotation include in the header.
It is very convenient to include referenced files.
3. The local function and of the outline of the spket JS File
Objects fully support JS oo methods. For example, the code specification of single-instance objects recommended by Ext, see

Snippets code snippet

Habit of copying
Paste developers have a special liking for code snippets. Don't BS me, I am copy-Paster:
Snippets defines the code snippet and double-click
Paste the code at the editor cursor.
The snippet view in eclipse also supports variable definition:

However, it's just a simple replacement of variables. It would be better if the template language is supported. I don't know when this dream will be realized.

The following describes commonly used plug-ins:
Aptana:
Javascript Editor, large in size, slow in response
Clay:
ERTU Software

Easybench E
:
You can right-click the directory where the current file is located and select the current file
Easysql + eclipsework:
Eclipsework code generation
Proedit:Resource file editing tool
Mylar:Collaborative Development
Subclipse:Version Control
...

Common Java operations for eclipse Development

The most widely used eclipse is still Java Development, so let's talk about the Java Development Method in eclipse at the end:

Use of shortcut keys:

1.Automatic prompt
Automatic completion:
Alt +/
2.Automatic Error Correction:
CTRL + 1
3.Code formatting: Ctrl + Shift + F
4.Jump to line
: Ctrl + L
5.Enable the shortcut key definition quick query: Ctrl + Shift + L
6.Search Skills: Ctrl + Shift + R
Open resource Ctrl + Shift + T Open object Ctrl + e open opened file Ctrl + H search Ctrl + F
File Search

Tomcat remote debugging method

Enter the following content in the Catalina. BAT file header:
Set
Catalina_opts =-server-xdebug-xnoagent-djava. compiler = none
-Xrunjdwp: Transport = dt_socket, Server = Y, suspend = N, address = 5888.
After Tomcat is started, right-click the Eclipse project and select
Enter port 5888 for remote Java application.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.