我有两个插件,比如com.site.plugin.core和com.site.plugin.ui.
我想将核心部分与UI部分分开,所以在插件com.site.plugin.ui我创建了Preferences页面,我在其中定义了一些首选项,com.site.plugin.core应该使用它们.我查看Eclipse网站上的文章,但它已经过时了,链接的bug也没有提供太多信息.
那么可以使用标准的Eclipse机制来实现这一点,或者我需要通过包org.eclipse.core.runtime.preferences使用直接的低级API吗?
是否有人知道eclipse插件在悬停在方法/类上时更新工具提示以包含注释信息?
我们正在使用的一些库有注释方法,如果我可以将鼠标悬停在方法上并查看已应用的内容,那么它将非常方便.我意识到这只适用于已经保留但足够好的注释.
我有一个Eclipse插件的想法,我一直在玩弄它.我需要能够扩展Eclipse Java Editor组件,并根据可插入的外部指标为代码添加彩色叠加层.不幸的是,似乎没有任何类型的语法突出显示扩展点.
有谁知道我如何能够扩展exisitng eclipse Java Editor来添加自定义突出显示规则?
请记住,我是Eclipse插件编程的新手,所以请尽可能详细地说明.
我有一个使用一些swt对象的eclipse插件项目,例如 -
import org.eclipse.swt.widgets.Composite;
Run Code Online (Sandbox Code Playgroud)
当我尝试将"目标平台"设置为"运行平台(活动)"进行编译时,它编译得很好,我不需要导入任何特定于swt的插件.
但是,我使用Eclipse 3.6.0创建了一个目标平台,如果我将其设置为活动平台,则只要使用了swt类,项目就会出现编译错误,并且无法解决它们.
我应该在哪个插件中添加依赖项来解决这些错误?
我尝试添加'org.eclipse.swt',但这似乎没有帮助.
visual studio具有使用区域进行手动代码折叠的出色功能.我是eclipse和android的新手,但无法找到如何在eclipse中做到这一点.我绝望地在日蚀中错过了这个功能
有没有人在日食中实现这一点
提前致谢
我尝试写入控制台时遇到问题.
在插件项目中,我开发了一个自定义构建,可以使用我开发的命令通过菜单调用.最初构建是在launch我的类的方法中调用的,它实现了ILaunchConfigurationDelegate.
...
String[] commandLine = (String[]) compilerArgs.toArray(new String[compilerArgs.size()]);
Process compilerProcess = DebugPlugin.exec(commandLine, new File(project.getLocation().toString()));
@SuppressWarnings("rawtypes")
Map processAttributes = new HashMap();
processAttributes.put(IProcess.ATTR_PROCESS_TYPE, "XVR");
IProcess dbgProcess = DebugPlugin.newProcess(launch, compilerProcess, "XVR Compiler", processAttributes);
try {
compilerProcess.waitFor();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(compilerProcess.exitValue() != 0) return false;
launch.removeProcess(dbgProcess);
Run Code Online (Sandbox Code Playgroud)
当进行构建,该过程的输出被输出到控制台上,并与它实现IConsoleLineTracker到突出了误差的类解析.
我将构建方法移到实现ILaunchConfigurationDelegate的类之外,并且不再打印控制台.两种情况之间的唯一区别是如何提供对象iLaunch.新的构建方法如下
...
String[] commandLine = (String[]) compilerArgs.toArray(new String[compilerArgs.size()]);
Process compilerProcess = DebugPlugin.exec(commandLine, new File(prj.getLocation().toString()));
ILaunch xvrLaunch = XVRUtils.getXVRLaunch();
Map<String, String> processAttributes = new HashMap<String, String>(); …Run Code Online (Sandbox Code Playgroud) 问题:
我想在我使用m2eclipse打包的jar文件中指定主类:[右键单击] - >运行方式 - > Maven包.我还在学习Maven,从我读过的内容来看,完成这项任务的直接方法是在pom.xml中添加一个节.
以下是我在研究此问题时发现的示例:
我的问题是:可以使用文本编辑器手动编辑Eclipse/m2eclipse之外的pom.xml文件,还是应该使用m2ecplise GUI进行此配置?有几个选项卡式对话框似乎可能是此任务的候选对象,如"插件"和"构建".我查看了Sonatype的文档,找不到有关如何完成我需要做的任何详细说明.
我有点犹豫要手动编辑pom.xml因为我注意到"Effective POM"已经有很多额外的东西,包括需要添加到它的插件定义:
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
如果我理解正确,需要更改有效POM,以便插件配置如下:
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<mainClass>[name of main class]</mainClass>
<packageName>[package name]</packageName>
</manifest>
<manifestEntries>
<mode>development</mode>
<url>${pom.url}</url>
</manifestEntries>
</archive>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
这是正确的吗?如果是这样,我是否通过m2eclipse执行此操作,还是应该复制所有额外的有效POM内容并使用文本编辑器将其粘贴到实际的pom.xml中?
感谢任何能够解决问题的人.
更新:我继续在文本编辑器中手动编辑pom.xml文件.当我在m2eclipse中查看Effective POM时,它会显示我放入的所有内容(我假设).我构建了jar并且正确设置了主类.
这对我来说似乎是个黑客.有没有人知道是否有办法使用m2eclipse本身进行此配置?我检查了m2eclipse选项卡,由于我对pom.xml的手动编辑(除了Effective POM选项卡),似乎没有更新任何内容.
我有一个带有视图的Eclipse插件(ViewPart),可以像往常一样使用Window-> Show View ...等打开
在我的激活器类中,如何查看它是否已打开并访问它的实例?
我安装了这些:
带有这些插件的Eclipse 3.5.2.R35x:
我正在运行Windows XP.
我最近将Subversion升级到1.7,并将所有上述插件升级到最新版本.
现在我发现了这个问题:
知道是什么原因造成的吗?当我使用以前版本的subversion/tortoise/eclipse插件时,这种情况从未发生过.我在Eclipse中有Maven集成,不确定是否可能是这个原因.
伙计们,
我正在尝试从更新站点升级"Maven Integration for Eclipse" - http://m2eclipse.sonatype.org/sites/m2e.
输入存储库站点时,Eclipse向我显示可供下载的最新版本为0.12.1.20110112-1712.但是,当我开始安装时,我收到有关现有依赖项的错误.以下是错误的前几行:
Cannot complete the install because of a conflicting dependency.
Software being installed: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
Software currently installed: Eclipse IDE for Java Developers 1.4.1.20110909-1818 (epp.package.java 1.4.1.20110909-1818)
Only one of the following can be installed at once:
Maven Integration for Eclipse 0.12.1.20110112-1712 (org.maven.ide.eclipse 0.12.1.20110112-1712)
Maven Integration for Eclipse 0.12.0.20101115-1102 (org.maven.ide.eclipse 0.12.0.20101115-1102)
This version of m2eclipse cannot be installed on top of the already installed m2eclipse. Uninstall the …Run Code Online (Sandbox Code Playgroud) eclipse-plugin ×10
eclipse ×9
java ×3
m2eclipse ×2
android ×1
annotations ×1
eclipse-pde ×1
ide ×1
plugins ×1
preferences ×1
process ×1
svn ×1
swt ×1
tortoisesvn ×1