首页 文章 精选 留言 我的

精选列表

搜索[eclipse],共2966篇文章
优秀的个人博客,低调大师

eclipse让Html Javascript 自动提示

Javascript 自动提示:JavaScript→Editor→Content Assist 修改Auto Activation triggers for javaScript的值为:zjs 点击apply按钮 Html 自动提示: web→html Files→Editor→Content Assist 修改Prompt when these characters are inserted:的值为:zhtml 点击apply按钮 导出Perferences! 再查找 zjs 然后将其值改为 .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW 再查找 zhtml 然后将其值改为 <=.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW 再把Perferences导进去就OK了

优秀的个人博客,低调大师

eclipse中关联文件设置方法

在前几次的试验中,只是做了处于应用程序最上层的界面设计,其实还不知程序在运行过程中到底调用了哪些函数,这些函数是怎么实现的,由于搭建环境时没有进行文件关联,所以在环境中无法实现ctrl键+左击鼠标的方式及时查看类的编写方法。 究其原因还是一时偷懒,没有仔细上网找android前几个版本的源代码,就自己告诉自己说找不到,影响了后续的学习。 如下为本人实现文件关联的方法: android前几个版本的下载连接方式: android-1.5的下载地址有如下http://rgruet.free.fr/public/android-1.5-cupcake-src.zip(21.6MB) android-1.6的下载地址有如下http://rgruet.free.fr/public/android-1.6_r1-donut-src.zip(23MB) android-2.0的下载地址有如下http://rgruet.free.fr/public/android-2.0-eclair-src.zip(24.4MB) android-2.2的下载地址有如下 http://119.147.106.190/down_group17/M00/49/31/d5NqvkzbO6gAAAAAAhTY9ycTYw89285789/android-2.2-src.zip?k=eAw_hVBYMFOQI2YQLZ5GDQ&t=1320675718&u=113.140.86.66@0@blyw5ch6&file=android-2.2-src.zip下载完这些源文件后,在android-sdk-windows的目录下新建一个文件夹如source,存放这些源文件。 方法一: 此时,尝试在我们的程序中进行ctrl键+左击鼠标,如果出现如下图所示界面: 点击Change Attached Source按钮,出现如下界面: 点击External Files,选中android-sdk-windows目录下source文件夹,选中android-2.2-src.zip文件包,点击确定。 好了回到程序中,实现ctrl键+左击鼠标,看看能不能阅读android的源文件。方法一就完成了。 方法二: 如果当前我们使用的android是2.2版本,解压android-2.2-src.zip,将解压好的文件粘贴至android-sdk-windows目录下的platforms的android-8(2.2版本对用android-8)文件夹下。如下图(我的android-sdk-windows目录下的platforms的android-8文件): 此时,尝试在我们的程序中进行ctrl键+左击鼠标,如果出现如下图所示界面: 点击Change Attached Source按钮,出现如下界面: 点击External Folder,选择我们刚才将解压好的文件存放的位置: 选中android-2.2-src, 点击确定。 好了,关联文件设置完成,再次回到自己的程序中实现ctrl键+左击鼠标,就可以阅读源代码了。如果按照上述步骤应该没有问题了,如有问题可以相互讨教。 当然在上面的解释中使用的是android的2.2版本,如果你是其他版本,关联方法可以套用 本文转自欢醉博客园博客,原文链接http://www.cnblogs.com/zhangs1986/p/3251730.html如需转载请自行联系原作者 欢醉

优秀的个人博客,低调大师

Hadoop on Windows with Eclipse -01- Introduction

Introduction Hadoopis a powerful framework for automatic parallelization of computing tasks. Unfortunately programming for it poses certain challenges. It is really hard to understand and debug Hadoop programs. One way to make it a little easier is to have a simplified version of the Hadoop cluster that runs locally on the developer's machine. This tutorial describes how to set up such a cluster on a computer running Microsoft Windows. It also describes how to integrate this cluster withEclipse, a primeJavadevelopment environment. Organization of the tutorial. Since Hadoop is a very complex environment, this tutorial has been broken down into several small steps. Each step involves setting up some aspect of the system and verifying that it has been set up correctly. For better understanding, each tutorial is accompanied by screenshots and a recorded video of the steps. Questions, Suggestions Comments Please leave questions, suggestions and comments about this tutorialhere.

优秀的个人博客,低调大师

Eclipse中Android单元测试

说说正常的代码吧 1) 1:java测试类 <span style="font-size:14px;">package com.medivh.app; public class Person { public String sub(String username) { String sub = username.substring(3); return sub; } public int add(int a,int b) { return a+b; } }</span> 2: <span style="font-size:14px;">package com.medivh.app; import org.junit.Test; import junit.framework.Assert; importandroid.test.AndroidTestCase; public class PersonTest extends AndroidTestCase { @Test public void testSub() throws Exception { Person p = new Person(); p.sub(null); } public void testAdd() throws Exception { Person p = new Person(); int result = p.add(1, 4); Assert.assertEquals(result, 6); } } </span> 2)AndroidManifest.xml <span style="font-size:14px;"><?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.medivh.app" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name"> <activity android:name=".MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <span style="color:#FF0000;"><uses-library android:name="android.test.runner" /></span> </application> <uses-sdk android:minSdkVersion="8" /> <span style="color:#FF0000;"><instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.medivh.app" android:label="Tests for My App" /></span> </manifest> </span> 3)测试 右键项目Run as.. Android Junit Test 就会出结果 开始的时候犯迷糊结果各种出错: No instrumentation runner found for the launch, using android.test.InstrumentationTestRunner First does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml is not configured correctly for running tests 到网上各种查,发现配置没错啊。最后才发现问题出在我居然眼睛进沙子一般修改了bin下面的AndroidManifest.xml,可能是我前面打开了这个目录,结果就随意打开了它修改了它。希望大家以后小心行事。 最新内容请见作者的GitHub页:http://qaseven.github.io/

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。