-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation ESTW Supplement Table: Sskz
- Loading branch information
1 parent
2bad794
commit 70bdb74
Showing
18 changed files
with
542 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...eclipse.set.feature.table.pt1/src/org/eclipse/set/feature/table/pt1/sskz/SskzColumns.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright (c) 2024 DB InfraGO AG and others | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
*/ | ||
package org.eclipse.set.feature.table.pt1.sskz; | ||
|
||
/** | ||
* Symbolic addressing for Sskz columns. | ||
* | ||
* @author Truong | ||
*/ | ||
@SuppressWarnings("nls") | ||
public class SskzColumns { | ||
/** | ||
* Sskz.Betriebl_Bez_FEAx | ||
*/ | ||
public static final String Betribl_Bez_FEAx = "A"; | ||
|
||
/** | ||
* Sskz.Betriebl_Bez_Feldelem | ||
*/ | ||
public static final String Betriebl_Bez_Feldelem = "B"; | ||
|
||
/** | ||
* Sskz.Techn_Bez_OC | ||
*/ | ||
public static final String Techn_Bez_OC = "C"; | ||
|
||
/** | ||
* Sskz.Tueranschlag | ||
*/ | ||
public static final String Tueranschlag = "D"; | ||
|
||
/** | ||
* Sskz.Montage | ||
*/ | ||
public static final String Montage = "E"; | ||
|
||
/** | ||
* Sskz.Blattnummer | ||
*/ | ||
public static final String Blattnummer = "F"; | ||
} |
40 changes: 40 additions & 0 deletions
40
....feature.table.pt1/src/org/eclipse/set/feature/table/pt1/sskz/SskzDescriptionService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* Copyright (c) 2024 DB InfraGO AG and others | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
*/ | ||
package org.eclipse.set.feature.table.pt1.sskz; | ||
|
||
import org.eclipse.set.core.services.part.PartDescriptionService; | ||
import org.eclipse.set.feature.table.AbstractESTWSupplementTableDesciption; | ||
import org.eclipse.set.feature.table.pt1.messages.Messages; | ||
import org.osgi.service.component.annotations.Component; | ||
import org.osgi.service.component.annotations.Reference; | ||
|
||
/** | ||
* Part description for Sskz table view. | ||
* | ||
* @author Truong | ||
*/ | ||
@Component(service = PartDescriptionService.class) | ||
public class SskzDescriptionService | ||
extends AbstractESTWSupplementTableDesciption { | ||
@Reference | ||
Messages messages; | ||
|
||
@Override | ||
protected String getToolboxViewName() { | ||
return messages.SskzDescriptionService_ViewName; | ||
} | ||
|
||
@Override | ||
protected String getToolboxViewTooltip() { | ||
return messages.SskzDescriptionService_ViewTooltip; | ||
} | ||
|
||
} |
63 changes: 63 additions & 0 deletions
63
...ature.table.pt1/src/org/eclipse/set/feature/table/pt1/sskz/SskzTransformationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* Copyright (c) 2024 DB InfraGO AG and others | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
*/ | ||
package org.eclipse.set.feature.table.pt1.sskz; | ||
|
||
import org.eclipse.set.core.services.enumtranslation.EnumTranslationService; | ||
import org.eclipse.set.feature.table.PlanPro2TableTransformationService; | ||
import org.eclipse.set.feature.table.pt1.AbstractPlanPro2TableTransformationService; | ||
import org.eclipse.set.feature.table.pt1.messages.Messages; | ||
import org.eclipse.set.ppmodel.extensions.container.MultiContainer_AttributeGroup; | ||
import org.eclipse.set.ppmodel.extensions.utils.TableNameInfo; | ||
import org.eclipse.set.utils.table.TableModelTransformator; | ||
import org.osgi.service.component.annotations.Component; | ||
import org.osgi.service.component.annotations.Reference; | ||
|
||
/** | ||
* Service for creating the Sskz table model. org.eclipse.set.feature.table | ||
* | ||
* @author Truong | ||
*/ | ||
@Component(service = { | ||
PlanPro2TableTransformationService.class }, immediate = true, property = { | ||
"table.category=supplement-estw", "table.shortcut=sskz" }) | ||
public class SskzTransformationService | ||
extends AbstractPlanPro2TableTransformationService { | ||
|
||
@Reference | ||
private Messages messages; | ||
|
||
@Reference | ||
private EnumTranslationService enumTranslationService; | ||
|
||
/** | ||
* constructor. | ||
*/ | ||
public SskzTransformationService() { | ||
super(); | ||
} | ||
|
||
@Override | ||
protected String getTableHeading() { | ||
return messages.SskzTableView_Heading; | ||
} | ||
|
||
@Override | ||
public TableNameInfo getTableNameInfo() { | ||
return new TableNameInfo(messages.ToolboxTableNameSskzLong, | ||
messages.ToolboxTableNameSskzPlanningNumber, | ||
messages.ToolboxTableNameSskzShort); | ||
} | ||
|
||
@Override | ||
public TableModelTransformator<MultiContainer_AttributeGroup> createTransformator() { | ||
return new SskzTransformator(cols, enumTranslationService); | ||
} | ||
} |
Oops, something went wrong.