Lines 109-115
Link Here
|
109 |
return s.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA); |
109 |
return s.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA); |
110 |
} |
110 |
} |
111 |
|
111 |
|
112 |
protected String[] getExtensibleClassPathTypes (SourceGroup sg) { |
112 |
@Override |
|
|
113 |
public String[] getExtensibleClassPathTypes (SourceGroup sg) { |
113 |
return new String[] { |
114 |
return new String[] { |
114 |
ClassPath.COMPILE, |
115 |
ClassPath.COMPILE, |
115 |
ClassPath.EXECUTE, |
116 |
ClassPath.EXECUTE, |
Lines 118-134
Link Here
|
118 |
}; |
119 |
}; |
119 |
} |
120 |
} |
120 |
|
121 |
|
121 |
protected boolean removeRoots(final URL[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
122 |
@Override |
|
|
123 |
public boolean removeRoots(final URL[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
122 |
return removeRoots(convertURLsToURIs(classPathRoots), sourceGroup, type); |
124 |
return removeRoots(convertURLsToURIs(classPathRoots), sourceGroup, type); |
123 |
} |
125 |
} |
124 |
|
126 |
|
125 |
@Override |
127 |
@Override |
126 |
protected boolean removeRoots(final URI[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
128 |
public boolean removeRoots(final URI[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
127 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
129 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
128 |
return handleRoots (classPathRoots, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); |
130 |
return handleRoots (classPathRoots, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); |
129 |
} |
131 |
} |
130 |
|
132 |
|
131 |
protected boolean addRoots (final URL[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
133 |
@Override |
|
|
134 |
public boolean addRoots (final URL[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
132 |
return addRoots(convertURLsToURIs(classPathRoots), sourceGroup, type); |
135 |
return addRoots(convertURLsToURIs(classPathRoots), sourceGroup, type); |
133 |
} |
136 |
} |
134 |
|
137 |
|
Lines 137-143
Link Here
|
137 |
} |
140 |
} |
138 |
|
141 |
|
139 |
@Override |
142 |
@Override |
140 |
protected boolean addRoots (final URI[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
143 |
public boolean addRoots (final URI[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
141 |
return addRoots(classPathRoots, sourceGroup, type, ADD); |
144 |
return addRoots(classPathRoots, sourceGroup, type, ADD); |
142 |
} |
145 |
} |
143 |
|
146 |
|
Lines 152-163
Link Here
|
152 |
return ClassPathModifierSupport.handleRoots(project, updateHelper, cs, eval, refHelper, cpUiSupportCallback, classPathRoots, classPathProperty, projectXMLElementName, operation); |
155 |
return ClassPathModifierSupport.handleRoots(project, updateHelper, cs, eval, refHelper, cpUiSupportCallback, classPathRoots, classPathProperty, projectXMLElementName, operation); |
153 |
} |
156 |
} |
154 |
|
157 |
|
155 |
protected boolean removeAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
158 |
@Override |
|
|
159 |
public boolean removeAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
156 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
160 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
157 |
return handleAntArtifacts (artifacts, artifactElements, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); |
161 |
return handleAntArtifacts (artifacts, artifactElements, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); |
158 |
} |
162 |
} |
159 |
|
163 |
|
160 |
protected boolean addAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
164 |
@Override |
|
|
165 |
public boolean addAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
161 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
166 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
162 |
return handleAntArtifacts (artifacts, artifactElements, classPathProperty, cpModifierCallback.getElementName(classPathProperty), ADD); |
167 |
return handleAntArtifacts (artifacts, artifactElements, classPathProperty, cpModifierCallback.getElementName(classPathProperty), ADD); |
163 |
} |
168 |
} |
Lines 166-177
Link Here
|
166 |
return ClassPathModifierSupport.handleAntArtifacts(project, updateHelper, cs, eval, refHelper, cpUiSupportCallback, artifacts, artifactElements, classPathProperty, projectXMLElementName, operation); |
171 |
return ClassPathModifierSupport.handleAntArtifacts(project, updateHelper, cs, eval, refHelper, cpUiSupportCallback, artifacts, artifactElements, classPathProperty, projectXMLElementName, operation); |
167 |
} |
172 |
} |
168 |
|
173 |
|
169 |
protected boolean removeLibraries(final Library[] libraries, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
174 |
@Override |
|
|
175 |
public boolean removeLibraries(final Library[] libraries, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
170 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
176 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
171 |
return handleLibraries (libraries, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); |
177 |
return handleLibraries (libraries, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); |
172 |
} |
178 |
} |
173 |
|
179 |
|
174 |
protected boolean addLibraries(final Library[] libraries, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
180 |
@Override |
|
|
181 |
public boolean addLibraries(final Library[] libraries, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { |
175 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
182 |
String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); |
176 |
return handleLibraries (libraries, classPathProperty, cpModifierCallback.getElementName(classPathProperty), ADD); |
183 |
return handleLibraries (libraries, classPathProperty, cpModifierCallback.getElementName(classPathProperty), ADD); |
177 |
} |
184 |
} |