| /** |
| * Copyright (c) 2016 Codetrails GmbH. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| */ |
| package org.eclipse.epp.internal.logging.aeri.ide.processors; |
| |
| import javax.inject.Inject; |
| |
| import org.eclipse.core.runtime.IStatus; |
| import org.eclipse.e4.core.contexts.IEclipseContext; |
| import org.eclipse.epp.internal.logging.aeri.ide.IProcessorDescriptor; |
| import org.eclipse.epp.logging.aeri.ide.processors.AbstractCachingStringProcessor; |
| |
| public class TestProcessorA extends AbstractCachingStringProcessor { |
| |
| @Inject |
| public TestProcessorA(IProcessorDescriptor descriptor) { |
| super(descriptor); |
| } |
| |
| @Override |
| protected String process(IStatus status) { |
| return "Additional information from Processor A"; |
| } |
| |
| @Override |
| public boolean canContribute(IStatus status) { |
| return true; |
| } |
| |
| @Override |
| public boolean wantsToContribute(IStatus status, IEclipseContext context) { |
| return false; |
| } |
| |
| } |