2010-08-01 88 views

回答

12

您應該同時使用:update-current-35p2 site在Eclipse中安裝新軟件時,您可以在「可用軟件列表」中輸入。
Eclipse將檢測該地址p2站點內的功能和插件,並將全部安裝它們。

看到這個Scala installation video

feature and plugin is explained here之間的區別。

不要忘記爲此安裝使用正確的Eclipse版本:Eclipse Classic 3.5.2


如果您需要手動安裝它,您應該複製從P2網站pluginsfeatures目錄的全部內容在您的eclipse.ini引用shared dropins(見本eclipse.ini for eclipse3.5)。
(你不需要複製site.xmlcontents.jarartifact.jar

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/path/to/myPlugins 

您將創建下列樹(類似於此SO answer描述的另一個手動安裝)

C:/path/to/myPlugins 
    org.scala-ide.1.0.0.201008022319 
    eclipse 
     features 
     ch.epfl.lamp.sdt_2.8.0.scala-ide-upgrade.jar 
     org.eclipse.contribution.weaving_1.6.4.scala-ide-upgrade.jar 
     org.scala-ide.sdt.feature_1.0.0.201008022319.jar 
     org.scala-ide.sdt.weaving.feature_1.0.0.201008022319.jar 
     plugins 
     org.aspectj.runtime_1.6.9.20100629172100.jar 
     org.aspectj.weaver_1.6.9.20100629172100.jar 
     org.eclipse.contribution.weaving.jdt_2.1.0.e35x-release-20100630-1500.jar 
     org.eclipse.equinox.weaving.aspectj_1.0.0.v20100108.jar 
     org.eclipse.equinox.weaving.hook_1.0.0.v20100108.jar 
     org.scala-ide.scala.compiler_2.8.0.jar 
     org.scala-ide.scala.library_2.8.0.jar 
     org.scala-ide.sdt.aspects_1.0.0.201008022319.jar 
     org.scala-ide.sdt.core_1.0.0.201008022319.jar 
     org.scala-refactoring.library_0.2.0.201008022305.jar 
     scalariform_0.0.5.201007302350.jar 

注:

直接位於myPlugins下的'org.scala-ide.1.0.0.201008022319'文件夾實際上可以是任何名稱!我剛剛從功能ID中獲得了一個名字,以清楚地標識出您正在安裝的Scala插件。
如果您的myPlugins中有多個Scala版本,即使您將它們安裝在'a/eclipse/...','b/eclipse/...','c/eclipse/...'中,p2也會自動檢測到最新的一個。
我只是發現'org.scala-ide.1.0.0.201008022319'比'a','b'或'c'更精確,以便記住我共享的下拉列表中包含的確切插件。

爲了確保包含Scala插件可能需要的所有依賴項,您需要擁有正確的Eclipse版本(經典3.5.2)。


本地安裝:

你可以你的eclipse中的 '的dropins' 目錄中創建非常相同的樹( '​​')。
您不需要在eclipse.ini中聲明共享的dropins目錄。

我只是更喜歡使用共享的下拉菜單,因爲我有很多eclipse安裝,但是如果您有正確的eclipse,您可以直接在</path/to/your/eclipse/dropins>中製作同一棵樹。


骯髒的安裝:

最後,你可以:

  • 複製的 'http://download.scala-ide.org/update-current-35/plugins/' 在plugins目錄你的eclipse的內容。
  • 在日食的features目錄中複製'http://download.scala-ide.org/update-current-35/features/'的內容。

但我覺得這不是很乾淨,因爲它混合了Eclipse發行版附帶的本地插件和您添加的額外插件。

+0

嗨,我知道如何安裝這個插件與網址,我的問題是關於安裝它手動:) – user310291 2010-08-02 21:44:35

+0

我也可以用這與Galilleo版本? http://wiki.eclipse.org/Equinox_p2_Getting_Started – user310291 2010-08-03 06:15:23

+0

@asksuperu:是的,你可以,但「支持的下拉格式」導致我在我的答案中提到了相同的樹結構。並且,bundle pooling比共享dropins更復雜(我提到了bundle pooling [在這個SO回答中](http://stackoverflow.com/questions/582391/installing-eclipse-3-4-plugins-in-a -directory-其他超eclipsehome-插件/ 582430#582430))。 – VonC 2010-08-03 06:28:33

4

只需拖放Scala IDE即可。您可以在下面的鏈接中找到拖放圖像文件(安裝)。

http://marketplace.eclipse.org/content/scala-ide

http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=421

然後按照安裝步驟。

enter image description here

+0

正如你所建議的那樣,我將安裝圖標從http://marketplace.eclipse.org/content/scala-ide放入我的IDE中,因此我可以使用Eclipse。但現在,如果我複製我的eclipse安裝到另一臺機器,當我在另一臺機器上打開IDE時,我沒有看到Scala(例如沒有Scala透視圖)。怎麼來的? – inor 2018-03-04 15:26:25

4

爲Eclipse的霓虹燈版本,我們可以通過以下步驟添加的Scala插件。

  1. 幫助 - >安裝新軟件
  2. 點擊旁邊的文本字段「一起工作」添加按鈕。
  3. 在位置中輸入「http://download.scala-ide.org/sdk/lithium/e46/scala211/stable/site」,並給出一些您可以記住的名稱。
  4. 列出了與Scala相關的插件樹。選擇要添加的組件。
  5. 單擊next,next,finish。