Coverage Report - org.seasar.uruma.viewer.GenericContentProvider
 
Classes in this File Line Coverage Branch Coverage Complexity
GenericContentProvider
100%
5/5
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2008 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.uruma.viewer;
 17  
 
 18  
 import org.eclipse.jface.viewers.IStructuredContentProvider;
 19  
 import org.eclipse.jface.viewers.Viewer;
 20  
 
 21  
 /**
 22  
  * 汎用のコンテントプロバイダです。<br />
 23  
  * 
 24  
  * @author y-komori
 25  
  */
 26  
 public class GenericContentProvider extends ContentsHolder implements
 27  
         IStructuredContentProvider {
 28  
 
 29  
     /**
 30  
      * {@link GenericContentProvider} を構築します。<br />
 31  
      * 
 32  
      */
 33  36
     public GenericContentProvider() {
 34  36
     }
 35  
 
 36  
     /*
 37  
      * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
 38  
      */
 39  
     public Object[] getElements(final Object inputElement) {
 40  76
         return this.contents;
 41  
     }
 42  
 
 43  
     /*
 44  
      * @see org.eclipse.jface.viewers.IContentProvider#dispose()
 45  
      */
 46  
     public void dispose() {
 47  
         // Don nothing.
 48  36
     }
 49  
 
 50  
     /*
 51  
      * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer,
 52  
      *      java.lang.Object, java.lang.Object)
 53  
      */
 54  
     public void inputChanged(final Viewer viewer, final Object oldInput,
 55  
             final Object newInput) {
 56  
         // Don nothing.
 57  112
     }
 58  
 }