blob: 023fd94f5f5753b7e1a596fb3f2444bee3d649da [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 BSI Business Systems Integration AG.
* 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:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package org.eclipse.scout.nls.sdk.internal.model.workspace;
import org.eclipse.scout.nls.sdk.internal.NlsCore;
import org.eclipse.scout.nls.sdk.model.INlsEntry;
import org.eclipse.scout.nls.sdk.model.util.Language;
import org.eclipse.scout.nls.sdk.model.workspace.NlsEntry;
import org.eclipse.scout.nls.sdk.model.workspace.project.INlsProject;
public class InheritedNlsEntry extends NlsEntry {
public InheritedNlsEntry(INlsEntry row, INlsProject project) {
super(row);
}
@Override
public int getType() {
return TYPE_INHERITED;
}
@Override
public void addTranslation(Language language, String text) {
NlsCore.logError("an inhertited NLS entry can not be modified!", new Exception());
}
@Override
public void setKey(String key) {
NlsCore.logError("an inhertited NLS entry can not be modified!", new Exception());
}
}