forked from eclipse-gef/gef-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final Clean-up of shapes example. Mostly externalize strings
- Loading branch information
Showing
22 changed files
with
194 additions
and
66 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
28 changes: 28 additions & 0 deletions
28
org.eclipse.gef.examples.shapes/src/org/eclipse/gef/examples/shapes/Messages.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,28 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* IBM Corporation - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.gef.examples.shapes; | ||
|
||
import org.eclipse.osgi.util.NLS; | ||
|
||
public class Messages extends NLS { | ||
private static final String BUNDLE_NAME = Messages.class.getPackageName() + ".messages"; //$NON-NLS-1$ | ||
public static String ShapeSetConstraintCommand_MoveResize; | ||
static { | ||
// initialize resource bundle | ||
NLS.initializeMessages(BUNDLE_NAME, Messages.class); | ||
} | ||
|
||
private Messages() { | ||
} | ||
} |
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
54 changes: 54 additions & 0 deletions
54
...clipse.gef.examples.shapes/src/org/eclipse/gef/examples/shapes/ShapesExampleMessages.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,54 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Johannes Kepler University Linz. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Alois Zoitl - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.gef.examples.shapes; | ||
|
||
import org.eclipse.osgi.util.NLS; | ||
|
||
@SuppressWarnings("squid:S3008") // tell sonar the java naming convention does not make sense for this class | ||
public class ShapesExampleMessages extends NLS { | ||
private static final String BUNDLE_NAME = ShapesExampleMessages.class.getPackageName() + ".messages"; //$NON-NLS-1$ | ||
public static String ConnectionCreateCommand_ConnectionCreation; | ||
public static String ConnectionDeleteCommand_ConnectionDeletion; | ||
public static String ConnectionReconnectCommand_MoveConnectionEndPoint; | ||
public static String ConnectionReconnectCommand_MoveConnectionStartPoint; | ||
public static String EllipticalShape_Ellipse; | ||
public static String RectangularShape_Rectangle; | ||
public static String Shape_Height; | ||
public static String Shape_NotANumber; | ||
public static String Shape_ValueMustBeGreaterOrEqualZero; | ||
public static String Shape_Width; | ||
public static String Shape_X; | ||
public static String Shape_Y; | ||
public static String ShapeCreateCommand_ShapeCreation; | ||
public static String ShapeDeleteCommand_ShapeDeletion; | ||
public static String ShapesCreationWizard_CreateANewFile; | ||
public static String ShapesCreationWizard_FileNameMustEndWith; | ||
public static String ShapesEditorPaletteFactory_CreateDashedLineConnection; | ||
public static String ShapesEditorPaletteFactory_CreateEllipticalShape; | ||
public static String ShapesEditorPaletteFactory_CreateRectangularShape; | ||
public static String ShapesEditorPaletteFactory_CreateSolidLineConnection; | ||
public static String ShapesEditorPaletteFactory_DashedConnection; | ||
public static String ShapesEditorPaletteFactory_Ellipse; | ||
public static String ShapesEditorPaletteFactory_Rectangle; | ||
public static String ShapesEditorPaletteFactory_Shapes; | ||
public static String ShapesEditorPaletteFactory_SolidConnection; | ||
public static String ShapesEditorPaletteFactory_Tools; | ||
static { | ||
// initialize resource bundle | ||
NLS.initializeMessages(BUNDLE_NAME, ShapesExampleMessages.class); | ||
} | ||
|
||
private ShapesExampleMessages() { | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
org.eclipse.gef.examples.shapes/src/org/eclipse/gef/examples/shapes/messages.properties
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,27 @@ | ||
ConnectionCreateCommand_ConnectionCreation=connection creation | ||
ConnectionDeleteCommand_ConnectionDeletion=connection deletion | ||
ConnectionReconnectCommand_MoveConnectionEndPoint=move connection endpoint | ||
ConnectionReconnectCommand_MoveConnectionStartPoint=move connection startpoint | ||
EllipticalShape_Ellipse=Ellipse {0} | ||
RectangularShape_Rectangle=Rectangle {0} | ||
Shape_Height=Height | ||
Shape_NotANumber=Not a number | ||
Shape_ValueMustBeGreaterOrEqualZero=Value must be >= 0 | ||
Shape_Width=Width | ||
Shape_X=X | ||
Shape_Y=Y | ||
ShapeCreateCommand_ShapeCreation=shape creation | ||
ShapeDeleteCommand_ShapeDeletion=shape deletion | ||
ShapesCreationWizard_CreateANewFile=Create a new {0} file | ||
ShapesCreationWizard_FileNameMustEndWith=The ''file'' name must end with {0} | ||
ShapesEditorPaletteFactory_CreateDashedLineConnection=Create a dashed-line connection | ||
ShapesEditorPaletteFactory_CreateEllipticalShape=Create an elliptical shape | ||
ShapesEditorPaletteFactory_CreateRectangularShape=Create a rectangular shape | ||
ShapesEditorPaletteFactory_CreateSolidLineConnection=Create a solid-line connection | ||
ShapesEditorPaletteFactory_DashedConnection=Dashed connection | ||
ShapesEditorPaletteFactory_Ellipse=Ellipse | ||
ShapesEditorPaletteFactory_Rectangle=Rectangle | ||
ShapesEditorPaletteFactory_Shapes=Shapes | ||
ShapesEditorPaletteFactory_SolidConnection=Solid connection | ||
ShapesEditorPaletteFactory_Tools=Tools | ||
ShapeSetConstraintCommand_MoveResize=move / resize |
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
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
Oops, something went wrong.