A combination of Teamcenter development tools. Eclipse + Visual Studio

Source: Internet
Author: User

<! -- [If! MSO]> <! -- [If gte mso 9]> <! [Endif] --> <! -- [If gte mso 9]> <! [Endif] --> <! -- [If gte mso 10]>

Teamcenter
The suffixes of the main development files involved in development include

Server
:. Met. MTH

Web:. Java,. jsp, incjsp,. JS,. xml

During development, we may be able to use simple ultraedit and editplus for code editing, or even use Notepad for code editing. However, for a new developer, if the computer configuration permits, we suggest using some ide To help us quickly and conveniently edit and debug code, and improve the encoding speed and accuracy.

For Teamcenter development, the main development languages include three server-side Model language, Java,
JS.

The Model language is actually similar to the C ++ language, and the underlying implementation is the C language. Since it is C language, you can use visual
Studio; Java language can be fully developed in eclipse. Firefox is recommended for JS debugging.
In Visual Studio). The conclusion is: Visual Studio + eclipse is used together to develop Teamcenter.

The following describes how to use the two ides to work with Teamcenter in code editing and code debugging.

 

In the following example, the Development Server of Teamcenter is short
Tst

 

Starting from the establishment of the Development Environment: mttstenv
Command to create a development environment.


<! -- [If gte vml 1]> <! [Endif] -->

 


For details about how to build the development environment, refer to Teamcenter's help book.

 

I. code editing

 

Teamcenter provides eclipse for TC Development
Plug-ins. After installation, View window à open perspective.

<! -- [If gte vml 1]> <! [Endif] -->

Edit. Met. MTH under these perspective
Some syntaxes are highlighted.

Therefore, you can write all the code in eclipse.

 

If you are used to Visual Studio and want to edit. Met and. MTH under Visual Studio, you can highlight the following configuration Syntax:

Create usertype. dat,
The content is as follows:

<! -- [If gte vml 1]> <! [Endif] -->

Copy this file to Microsoft Visual Studio 8/common7/ide
. If a file with the same name exists in the directory, the contents of the two files are merged.

Start Visual Studio 2008. Choose tools> Options> text editor> file extension. Extension on the right
Enter met and MTH in sequence in the column, and then click editor.
Select Microsoft Visual C ++ from the drop-down list and click Add.
And click OK.
Button to complete the settings, restart Visual Studio
.

 

Ii. Code debugging

Eclipse can debug. java files,
If you want to debug. jsp,
Install the lomboz plug-in. To facilitate Tomcat startup and operation in eclipse, it is best to install tomcatplugin.

 

Eclipse:

Http://www.eclipse.org/downloads/download.php? File =/Eclipse/downloads/drops/

 

Tomcatplugin

Http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin

 

Lomboz plug-in address

Http://forge.objectweb.org/project/download.php? Group_id = 97 & file_id = 5480.

Or
Http://lomboz.ow2.org/downloads.php

 

After the above installation, it is the basic eclipse debug, which will not be described here. Next we will focus on the debug of The. MTH file.

 

 

1. Create a test project. Select
Empty Project

 

<! -- [If gte vml 1]> <! [Endif] -->

2. Configure the output directory. (Configure the SVR directory in the Development Directory of Teamcenter)

<! -- [If gte vml 1]> <! [Endif] -->

 

3. Configure the output file (configure the path of the generated DLL file)

<! -- [If gte vml 1]> <! [Endif] -->

4. After configuration, you can drag the. MTH file directly to this project.

After Visual Studio is enabled, a breakpoint is added.

Server abbreviation + class
+ Message

For example, TST + ddmtre + setdialogdefaults

<! -- [If gte vml 1]> <! [Endif] -->

5. Click the leftmost end of the editor to add other breakpoints.

<! -- [If gte vml 1]> <! [Endif] -->

 

6. Modify cuz. cfg to enable the added Server

 

<! -- [If gte vml 1]> <! [Endif] -->

 

7. Modify deftst. Met. Mark down
Resolve tstsvr dynamically. In this case, the server tstsvr can be found during debugging.

<! -- [If gte vml 1]> <! [Endif] -->

8. attach to the process. Locate tstsvr and add

 

<! -- [If gte vml 1]> <! [Endif] -->

9. The debug effect is as follows:

 

<! -- [If gte vml 1]> <! [Endif] -->

Note that the above tstsvr
Server abbreviation + SVR

If the created environment is server or TST
The above tstsvr must be modified accordingly.

 

Javascript testing, using Firefox + firebug.

 

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.