Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 05c72d41856b7e22ae3f24d636706daf31d1886f (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
package org.eclipse.wst.xsd.ui.internal.refactor.actions;

import org.eclipse.jface.viewers.ISelection;
import org.eclipse.xsd.XSDSchema;

public class XSDSelectionDispatchAction extends SelectionDispatchAction
{

	
	
	public XSDSelectionDispatchAction(ISelection selection, Object model)
	{
		super(selection);
		setModel(model);
	}

	protected XSDSchema getSchema(){
		Object model = getModel();
		if(model instanceof XSDSchema)
		{
			return (XSDSchema) model;
		}
	
		return null;
	}

	

}

Back to the top