eclipse-plugin

How can I know how much memory Eclipse plugins use (separately)

六月ゝ 毕业季﹏ 提交于 2020-01-01 12:09:49
问题 Is there a way to know how much memory is consumed by each Eclipse plugin separately? 回答1: Take a heap dump and analyse it with e.g. the Eclipse Memory Analyser. For more information, see Analyzing Equinox Bundle Dependencies with Memory Analyzer 回答2: I would be quite surprised if this were possible, because you would have to have an unambiguous way of determining which plugin "owned" a particular object on the heap. 回答3: Eclipse 3.1 has a built-in Memory Monitor (aka Heap Status) Plugin,

How can I know how much memory Eclipse plugins use (separately)

…衆ロ難τιáo~ 提交于 2020-01-01 12:09:15
问题 Is there a way to know how much memory is consumed by each Eclipse plugin separately? 回答1: Take a heap dump and analyse it with e.g. the Eclipse Memory Analyser. For more information, see Analyzing Equinox Bundle Dependencies with Memory Analyzer 回答2: I would be quite surprised if this were possible, because you would have to have an unambiguous way of determining which plugin "owned" a particular object on the heap. 回答3: Eclipse 3.1 has a built-in Memory Monitor (aka Heap Status) Plugin,

Ant target dependency tree viewer

情到浓时终转凉″ 提交于 2020-01-01 09:29:21
问题 IS there a piece of software (or an eclipse plug-in) which, given a target, would allow me to view the target dependency as a tree? The tree does not need to be graphical, could be text based - just a tool that would help me traverse thro someone's mesh of ant files to debug them. Does not need to be an Eclipse plug-in. However, would be nice when a node is clicked would throw the source of that target onto an editor. 回答1: Similar to question ant debugging in Eclipse. Based on Apache's ANT

Ant target dependency tree viewer

你。 提交于 2020-01-01 09:29:07
问题 IS there a piece of software (or an eclipse plug-in) which, given a target, would allow me to view the target dependency as a tree? The tree does not need to be graphical, could be text based - just a tool that would help me traverse thro someone's mesh of ant files to debug them. Does not need to be an Eclipse plug-in. However, would be nice when a node is clicked would throw the source of that target onto an editor. 回答1: Similar to question ant debugging in Eclipse. Based on Apache's ANT

How do I import an Eclipse project from a .zip file programmatically?

岁酱吖の 提交于 2020-01-01 06:34:05
问题 I'm trying to figure out how to import an Eclipse project from an archive file (a .zip ) programmatically - I want to do the same thing the import wizard does, but automatically (re-importing the same project regularly using the wizard is starting to feel really long-winded). I've found some related questions (e.g. Programmatically importing an existing project into Eclipse), but I can't figure out how to get the same sort of thing working for the .zip import. My current thinking is as

eclipse manual code folding similar to visual studio region

只谈情不闲聊 提交于 2020-01-01 05:41:29
问题 visual studio has an excellent feature for manual code folding by using regions. i am new to eclipse and android but cant find figure out how to do this in eclipse. i am missing this feature in eclipse desperately has anyone achieved this in eclipse thanks in advance 回答1: I use eclipse Coffee-Bytes plugin over a year. This eclipse folding plugin can be configured so that it was identical to visual studio folding. Lock this and this. Hope it's help you. 回答2: Manual code folding can be added by

AST-based search for Eclipse

你说的曾经没有我的故事 提交于 2020-01-01 05:37:09
问题 Is there a plug-in for Eclipse that lets you search based on the Java AST (Abstract Syntax Tree) of your project files? The "Java Search" feature doesn't seem to cover cases like: "Get me all the fields declared as type 'X' in all classes" I can imagine many more possibilities that would open up with an AST-based search, but I don't even know if such a plug-in would have practical performance. Update : As pointed out by Kevin below, the Java Search feature does cover the use case I mentioned.

Can't import PMD Ruleset in Eclipse

若如初见. 提交于 2020-01-01 04:26:29
问题 I would like to use the same Ruleset in my IDE (Eclipse) that my Sonar profile. I got the PMD XML ruleset from the Sonar Permalinks and would like to import it into my PMD Eclipse Plugin but when i try to do it, the "OK" button is desactivated ... Can someone help me ? 回答1: The problem could be that Sonar is exporting your ruleset for v4.x format and your Eclipse plugin expects them in v5.x format. Try changing your rules from: <rule ref="rulesets/basic.xml/UnusedNullCheckInEquals"> <priority

Code analyzers: PMD & FindBugs

随声附和 提交于 2019-12-31 22:37:31
问题 1. Regarding PMD: 1.1 How do I set the PMD checks, to ignore some of them, like "Variable name is too short, or too long", "Remove empty constructor, etc" - and if I do that, another warning appears that says the class must have some static methods. Basically, the class was empty, for later development, and I like to leave it that way for now. 1.2 Is it necesarry to follow this warning advice? A class which only has private constructors should be final 1.3 What is that supposed to mean? The

Clean and build an Eclipse java project with one click

会有一股神秘感。 提交于 2019-12-31 21:32:21
问题 Is it possible to clean and build a java project in Eclipse with one click? I don't want to go to Project -> clean -> OK and than to project menu 'Build project' 回答1: If you need something more powerful than clean and deploy, I suggest to learn Ant build tool. http://ant.apache.org/ Just configure it for your project and prepare the build script, than configure the build script for the clean and build target. If you need, also to deploy it on your server (glassfish, weblogic or whatever you