public void remove(TaskListener listener) { for (int i = 0; i < listeners.length; i++) { if (ccw.unwrap(listeners[i]) == listener) { TaskListener[] newListeners = new TaskListener[listeners.length - 1]; System.arraycopy(listeners, 0, newListeners, 0, i); System.arraycopy(listeners, i + 1, newListeners, i, newListeners.length - i); listeners = newListeners; break; } } }
public void remove(TaskListener listener) { for (int i = 0; i < listeners.length; i++) { if (ccw.unwrap(listeners[i]) == listener) { TaskListener[] newListeners = new TaskListener[listeners.length - 1]; System.arraycopy(listeners, 0, newListeners, 0, i); System.arraycopy(listeners, i + 1, newListeners, i, newListeners.length - i); listeners = newListeners; break; } } }
Collection<TaskListener> unwrap(Collection<? extends TaskListener> listeners) { Collection<TaskListener> c = new ArrayList<TaskListener>(listeners.size()); for (TaskListener l: listeners) c.add(unwrap(l)); return c; }
Collection<TaskListener> unwrap(Collection<? extends TaskListener> listeners) { Collection<TaskListener> c = new ArrayList<TaskListener>(listeners.size()); for (TaskListener l: listeners) c.add(unwrap(l)); return c; }
public void add(TaskListener listener) { for (TaskListener l: listeners) { if (ccw.unwrap(l) == listener) throw new IllegalStateException(); } listeners = Arrays.copyOf(listeners, listeners.length + 1); listeners[listeners.length - 1] = ccw.wrap(listener); }
public void add(TaskListener listener) { for (TaskListener l: listeners) { if (ccw.unwrap(l) == listener) throw new IllegalStateException(); } listeners = Arrays.copyOf(listeners, listeners.length + 1); listeners[listeners.length - 1] = ccw.wrap(listener); }
public JavaFileObject getSource() { return unwrap(d.getSource()); }
public JavaFileObject getSource() { return unwrap(d.getSource()); }
@Override public boolean isSameFile(FileObject a, FileObject b) { try { return clientJavaFileManager.isSameFile(unwrap(a), unwrap(b)); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }
@Override public boolean isSameFile(FileObject a, FileObject b) { try { return clientJavaFileManager.isSameFile(unwrap(a), unwrap(b)); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }
@Override public String inferBinaryName(Location location, JavaFileObject file) { try { return clientJavaFileManager.inferBinaryName(location, unwrap(file)); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }
@Override public String inferBinaryName(Location location, JavaFileObject file) { try { return clientJavaFileManager.inferBinaryName(location, unwrap(file)); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }
@Override public JavaFileObject getJavaFileForOutput(Location location, String className, Kind kind, FileObject sibling) throws IOException { try { return wrap(clientJavaFileManager.getJavaFileForOutput(location, className, kind, unwrap(sibling))); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }
@Override public FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) throws IOException { try { return wrap(clientJavaFileManager.getFileForOutput(location, packageName, relativeName, unwrap(sibling))); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }
@Override public JavaFileObject getJavaFileForOutput(Location location, String className, Kind kind, FileObject sibling) throws IOException { try { return wrap(clientJavaFileManager.getJavaFileForOutput(location, className, kind, unwrap(sibling))); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }
@Override public FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) throws IOException { try { return wrap(clientJavaFileManager.getFileForOutput(location, packageName, relativeName, unwrap(sibling))); } catch (ClientCodeException e) { throw e; } catch (RuntimeException e) { throw new ClientCodeException(e); } catch (Error e) { throw new ClientCodeException(e); } }