use of org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator in project InformationSystem by ObeoNetwork.
the class RemoveIndexItemProvider method getText.
/**
* This returns the label text for the adapted class. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public String getText(Object object) {
RemoveIndex removeIndex = (RemoveIndex) object;
Index index = (Index) removeIndex.getIndex();
AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
final String parentLabel = delegator.getText(index);
return getString("_UI_RemoveIndex_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(removeIndex, removeIndex.getMatch().getComparison()).size() });
}
use of org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator in project InformationSystem by ObeoNetwork.
the class AlterTableItemProvider method getText.
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public String getText(Object object) {
final AlterTable alterTable = (AlterTable) object;
final Table table = alterTable.getTable();
AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
final String parentLabel = delegator.getText(table);
return getString("_UI_AlterTable_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(alterTable, alterTable.getMatch().getComparison()).size() });
}
use of org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator in project InformationSystem by ObeoNetwork.
the class AlterViewItemProvider method getText.
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public String getText(Object object) {
final AlterView alterView = (AlterView) object;
final View view = alterView.getView();
AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
final String parentLabel = delegator.getText(view);
return getString("_UI_AlterView_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(alterView, alterView.getMatch().getComparison()).size() });
}
use of org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator in project InformationSystem by ObeoNetwork.
the class EObjectLinksView method refresh.
/**
* Refresh the view.
*/
public void refresh() {
viewer.refresh();
if (!(viewer.getInput() instanceof EObject)) {
// $NON-NLS-1$
eobjectLabel.setText("");
} else {
AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(adapterFactory);
// $NON-NLS-1$
eobjectLabel.setText(ObeoLinkerPlugin.getInstance().getString("EObjectLinksView_LabelSelection_prefix") + delegator.getText(viewer.getInput()));
}
for (ViewListener listener : listeners) {
listener.fireInputChanged(getInput());
}
}
use of org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator in project InformationSystem by ObeoNetwork.
the class UpdateColumnChangeItemProvider method getText.
/**
* This returns the label text for the adapted class. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public String getText(Object object) {
UpdateColumnChange updateColumnChange = (UpdateColumnChange) object;
Column column = updateColumnChange.getColumn();
AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
final String parentLabel = delegator.getText(column);
return getString("_UI_UpdateColumnChange_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(updateColumnChange, updateColumnChange.getMatch().getComparison()).size() });
}
Aggregations