Java Code Examples for org.eclipse.core.runtime.IAdaptable#getAdapter()

The following examples show how to use org.eclipse.core.runtime.IAdaptable#getAdapter() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CrossflowModelingAssistantProviderOfCsvSourceEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSource(IAdaptable source) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSource((CsvSourceEditPart) sourceEditPart);
}
 
Example 2
Source File: CrossflowModelingAssistantProviderOfTypeEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnTarget(IAdaptable target) {
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnTarget((TypeEditPart) targetEditPart);
}
 
Example 3
Source File: CrossflowModelingAssistantProviderOfTypeEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getTypesForTarget(IAdaptable source, IElementType relationshipType) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	return doGetTypesForTarget((TypeEditPart) sourceEditPart, relationshipType);
}
 
Example 4
Source File: CrossflowModelingAssistantProviderOfSourceEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSourceAndTarget((SourceEditPart) sourceEditPart, targetEditPart);
}
 
Example 5
Source File: CrossflowModelingAssistantProviderOfTaskEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getTypesForTarget(IAdaptable source, IElementType relationshipType) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	return doGetTypesForTarget((TaskEditPart) sourceEditPart, relationshipType);
}
 
Example 6
Source File: CrossflowModelingAssistantProviderOfTaskEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSourceAndTarget((TaskEditPart) sourceEditPart, targetEditPart);
}
 
Example 7
Source File: CrossflowModelingAssistantProviderOfTaskEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSource(IAdaptable source) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSource((TaskEditPart) sourceEditPart);
}
 
Example 8
Source File: CrossflowModelingAssistantProviderOfSourceEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) {
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetTypesForSource((SourceEditPart) targetEditPart, relationshipType);
}
 
Example 9
Source File: CrossflowModelingAssistantProviderOfTopicEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnTarget(IAdaptable target) {
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnTarget((TopicEditPart) targetEditPart);
}
 
Example 10
Source File: CrossflowModelingAssistantProviderOfSinkEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) {
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetTypesForSource((SinkEditPart) targetEditPart, relationshipType);
}
 
Example 11
Source File: CrossflowModelingAssistantProviderOfCsvSinkEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSourceAndTarget((CsvSinkEditPart) sourceEditPart, targetEditPart);
}
 
Example 12
Source File: CrossflowModelingAssistantProviderOfTopicEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSource(IAdaptable source) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSource((TopicEditPart) sourceEditPart);
}
 
Example 13
Source File: CrossflowModelingAssistantProviderOfCsvSourceEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnTarget(IAdaptable target) {
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnTarget((CsvSourceEditPart) targetEditPart);
}
 
Example 14
Source File: CrossflowModelingAssistantProviderOfCommitmentTaskEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSourceAndTarget((CommitmentTaskEditPart) sourceEditPart, targetEditPart);
}
 
Example 15
Source File: CrossflowModelingAssistantProviderOfSinkEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSourceAndTarget((SinkEditPart) sourceEditPart, targetEditPart);
}
 
Example 16
Source File: CrossflowModelingAssistantProviderOfQueueEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSource(IAdaptable source) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSource((QueueEditPart) sourceEditPart);
}
 
Example 17
Source File: CrossflowModelingAssistantProviderOfQueueEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnTarget(IAdaptable target) {
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnTarget((QueueEditPart) targetEditPart);
}
 
Example 18
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
public IParser getParser(IAdaptable hint) {
	String vid = (String) hint.getAdapter(String.class);
	if (vid != null) {
		return getParser(CrossflowVisualIDRegistry.getVisualID(vid));
	}
	View view = (View) hint.getAdapter(View.class);
	if (view != null) {
		return getParser(CrossflowVisualIDRegistry.getVisualID(view));
	}
	return null;
}
 
Example 19
Source File: CrossflowViewProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private EObject getSemanticElement(IAdaptable semanticAdapter) {
	if (semanticAdapter == null) {
		return null;
	}
	EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
	if (eObject != null) {
		return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject);
	}
	return null;
}
 
Example 20
Source File: CrossflowModelingAssistantProviderOfScriptedTaskEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
@Override

public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) {
	IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class);
	IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class);
	return doGetRelTypesOnSourceAndTarget((ScriptedTaskEditPart) sourceEditPart, targetEditPart);
}