Author: dennyxu
Date: 2008-11-11 00:22:54 -0500 (Tue, 11 Nov 2008)
New Revision: 11649
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeClassPathInitializer.java
Log:
remove some useless code
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeClassPathInitializer.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeClassPathInitializer.java 2008-11-11
05:13:42 UTC (rev 11648)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeClassPathInitializer.java 2008-11-11
05:22:54 UTC (rev 11649)
@@ -83,7 +83,6 @@
private IPath path;
private boolean isFromServer = false;
private IClasspathEntry[] entries = null;
- private IJavaProject jproject;
private List<String> jars;
public JBossRuntimeClasspathContainer(IPath path, IJavaProject project,
@@ -91,7 +90,6 @@
super(path, JBossFacetCoreMessages.JBoss_Runtime, null);
this.path = path;
this.isFromServer = isFromServer;
- this.jproject = project;
}
public String getDescription() {
@@ -163,30 +161,8 @@
return entries;
}
- public void removeEntry(String jarName) {
- if (entries == null) {
- return;
- }
- IClasspathEntry[] newEntries = new IClasspathEntry[entries.length - 1];
- int i = 0;
- for (IClasspathEntry entry : entries) {
- if (!entry.toString().contains(jarName)) {
- newEntries[i++] = entry;
- }
- }
- entries = newEntries;
- }
-
}
- public boolean filterJars(String jarName, ArrayList<IClasspathEntry> list) {
- for (IClasspathEntry entry : list) {
- if (entry.getPath().lastSegment().equals(jarName)) {
- return false;
- }
- }
- return true;
- }
@Override
protected AbstractClasspathContainer createClasspathContainer(IPath path) {
Show replies by date