简体   繁体   English

如何添加新软件包?

[英]How do I add a new package?

How do I add a new package in the current IDE? 如何在当前的IDE中添加新程序包?

I do not see a button for adding a package. 我看不到用于添加软件包的按钮。

This is on MSWindows 7 with Firefox 23. 这是在带有Firefox 23的MSWindows 7上。

To start the amber server I had opened a command window and then I navigated to the amber directory. 要启动琥珀色服务器,我打开了一个命令窗口,然后导航到琥珀色目录。

 C:\Users\User\Documents\amber-master>bin\amber serve
 Starting file server on http://127.0.0.1:4000 

To create a new class in a new package add the following code snippet in the browser 要在新程序包中创建新类,请在浏览器中添加以下代码段

    Object subclass: #MyClass
    instanceVariableNames: ''
    package: 'MyPackage'

and hit save. 然后点击保存。 This works in the very latest amber. 这适用于最新的琥珀色。 Not in the one two weeks before. 不在前两周。 https://github.com/amber-smalltalk/amber https://github.com/amber-smalltalk/amber

5th September 2013 2013年9月5日

Addition 加成

The new packages created will be in the amber namespace which is not recommended. 创建的新软件包将位于不建议使用的琥珀色命名空间中。 To have your own name space for your amber application use these instructions Writing my first amber app . 要为自己的琥珀色应用程序使用自己的名称空间,请按照以下说明编写我的第一个琥珀色应用程序 It shows the directory layout to have your own name space. 它显示目录布局以拥有您自己的名称空间。

How to load amber shows how to configure amber to use your own namespace. 如何加载琥珀色显示了如何配置琥珀色以使用您自己的名称空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM