Skip to main content
summaryrefslogtreecommitdiffstats
blob: 8d81994f0703f917e0854975f1628b5076adf08d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*******************************************************************************
 * Copyright (c) 2017 Red Hat Inc. and others.
 * 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
 *
 * Contributors:
 *   Mickael Istria (Red Hat Inc.) - initial implementation
 *******************************************************************************/
package org.eclipse.ui.internal.genericeditor.markers;

import org.eclipse.jface.text.IInformationControl;
import org.eclipse.jface.text.IInformationControlCreator;
import org.eclipse.jface.text.IInformationControlCreatorExtension;
import org.eclipse.swt.widgets.Shell;

public class MarkerHoverControlCreator implements IInformationControlCreator, IInformationControlCreatorExtension {

	@Override
	public boolean canReuse(IInformationControl control) {
		return false;
	}

	@Override
	public boolean canReplace(IInformationControlCreator creator) {
		return false;
	}

	@Override
	public IInformationControl createInformationControl(Shell parent) {
		return new MarkerInformationControl(parent,this);
	}

}

Back to the top