Project

General

Profile

« Previous | Next » 

Revision 7f6ce378

Added by Patrick Plitzner over 6 years ago

ref #6925 correctly acces EPartService

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewPart.java
57 57
	public static String ID = "eu.etaxonomy.taxeditor.view.detail"; //$NON-NLS-1$
58 58

  
59 59
	private DetailsViewer viewer;
60
	
60

  
61 61
	private CdmBase lastObject;
62 62
	private Object lastPart;
63 63

  
......
85 85
	    try{
86 86
	        boolean isSelectionProvidingPartStillActive = false;
87 87
	        if(selectionProvidingPart!=null){
88
	            EPartService partService = TaxeditorStorePlugin.getDefault().getWorkbench().getService(EPartService.class);
88
	            EPartService partService = TaxeditorStorePlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getService(EPartService.class);
89 89
	            Collection<MPart> parts = partService.getParts();
90 90
	            for (MPart mPart : parts) {
91 91
	                Object object = mPart.getObject();
......
163 163
	@Override
164 164
	public void showEmptyPage() {
165 165
	    viewer.setSelection(null);
166
	    
166

  
167 167
	    super.showEmptyPage();
168 168
	}
169 169

  
......
234 234
    }
235 235
    @Override
236 236
    public void showViewer(Object part, IStructuredSelection selection){
237
    	
238
    	
239
    	
237

  
238

  
239

  
240 240
    	this.part = part;
241 241

  
242 242
        Object element = selection.getFirstElement();
243
        
243

  
244 244
//        if (part == lastPart && element == lastObject ){
245 245
//        	getViewer().setInput(element);
246 246
//        	return;

Also available in: Unified diff