Example #1
0
 public String toString() {
   return "[Service: "
       + //$NON-NLS-1$
       "id="
       + (id == null ? "" : id)
       + //$NON-NLS-1$ //$NON-NLS-2$
       ",name="
       + (name == null ? "" : name)
       + //$NON-NLS-1$ //$NON-NLS-2$
       ",description="
       + (description == null ? "" : description)
       + //$NON-NLS-1$ //$NON-NLS-2$
       ",version="
       + (version == null ? "" : version)
       + //$NON-NLS-1$ //$NON-NLS-2$
       ",provider="
       + (provider == null ? "" : provider)
       + //$NON-NLS-1$ //$NON-NLS-2$
       ",copyright="
       + (copyright == null ? "" : copyright)
       + //$NON-NLS-1$ //$NON-NLS-2$
       ",handler="
       + (handler == null ? "" : handler.getClass().getName())
       + //$NON-NLS-1$ //$NON-NLS-2$
       "]"; //$NON-NLS-1$
 }
Example #2
0
 public void setHandler(IServiceHandler handler) {
   this.handler = (IServiceHandler) handler.clone();
   this.handler.setService(this);
 }