mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2025-01-24 13:30:31 +00:00
Split HexEditor into own plugin
This commit is contained in:
parent
9fedce0075
commit
9c779bad6f
@ -21,6 +21,7 @@ Require-Bundle: org.eclipse.core.runtime;visibility:=reexport,
|
||||
com.wudsn.ide.base;visibility:=reexport,
|
||||
com.wudsn.ide.dsk,
|
||||
com.wudsn.ide.gfx,
|
||||
com.wudsn.ide.hex,
|
||||
org.eclipse.debug.core;visibility:=reexport,
|
||||
org.eclipse.debug.ui;visibility:=reexport,
|
||||
org.eclipse.ui.workbench
|
||||
|
@ -37,6 +37,8 @@
|
||||
<stringAttribute key="product" value="org.eclipse.platform.ide"/>
|
||||
<setAttribute key="selected_features">
|
||||
<setEntry value="com.wudsn.ide.feature:default"/>
|
||||
<setEntry value="org.eclipse.egit.gitflow.feature:default"/>
|
||||
<setEntry value="org.eclipse.egit:default"/>
|
||||
<setEntry value="org.eclipse.equinox.p2.user.ui:default"/>
|
||||
<setEntry value="org.eclipse.help:default"/>
|
||||
<setEntry value="org.eclipse.platform:default"/>
|
||||
|
@ -45,8 +45,8 @@ import com.wudsn.ide.asm.compiler.parser.CompilerSourceParserTreeObjectType;
|
||||
import com.wudsn.ide.asm.compiler.syntax.CompilerSyntax;
|
||||
import com.wudsn.ide.base.common.NumberUtility;
|
||||
import com.wudsn.ide.base.common.TextUtility;
|
||||
import com.wudsn.ide.base.editor.hex.HexEditor;
|
||||
import com.wudsn.ide.gfx.editor.GraphicsConversionEditor;
|
||||
import com.wudsn.ide.hex.HexEditor;
|
||||
|
||||
/**
|
||||
* Hyperlink detector implementation for opening source or binary include files.
|
||||
|
@ -318,4 +318,11 @@ POSSIBILITY OF SUCH DAMAGES.
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="com.wudsn.ide.hex"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
|
@ -12,16 +12,14 @@ Require-Bundle: org.eclipse.core.runtime,
|
||||
org.eclipse.core.filesystem,
|
||||
org.eclipse.jface.text,
|
||||
org.eclipse.ui,
|
||||
org.eclipse.ui.ide,
|
||||
org.eclipse.ui.views,
|
||||
org.eclipse.ui.workbench.texteditor,
|
||||
org.eclipse.compare
|
||||
org.eclipse.ui.ide
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Export-Package: com.wudsn.ide.base,
|
||||
com.wudsn.ide.base.common,
|
||||
com.wudsn.ide.base.editor,
|
||||
com.wudsn.ide.base.editor.hex,
|
||||
com.wudsn.ide.base.gui
|
||||
com.wudsn.ide.base.gui,
|
||||
com.wudsn.ide.base.hardware
|
||||
Import-Package: org.eclipse.ui.internal.editors.text
|
||||
Automatic-Module-Name: com.wudsn.ide.base
|
||||
|
@ -28,32 +28,10 @@ com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand.mnemonic=R
|
||||
|
||||
com.wudsn.ide.base.editor.BinaryFile.name=Binary File
|
||||
|
||||
com.wudsn.ide.base.editor.hex.HexEditor.name=Hex Editor
|
||||
com.wudsn.ide.base.editor.hex.HexEditorOpenCommand.name=Open With Hex Editor
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand.name=Copy
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsMenu.name=Copy as
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand.name=Copy as Decimal Values
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand.name=Copy as Decimal Values in Block Format
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand.name=Copy as Hexadecimal Values
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand.name=Copy as ASCII String
|
||||
com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name=Paste
|
||||
com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand.name=Save Selection as...
|
||||
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.BINARY=Binary
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_COM_FILE=Atari COM File
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_DISK_IMAGE=Atari Disk Image
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_DISK_IMAGE_K_FILE=Atari Disk Image (k-File)
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_MADS_FILE=Atari MADS File
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_SDX_FILE=Atari SpartaDOS X File
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_SAP_FILE=Atari SAP File
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.C64_PRG_FILE=C64 PRG File
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.IFF_FILE=IFF File
|
||||
|
||||
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ASCII=ASCII
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_ATASCII=Atari ATASCII
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_ATASCII_SCREEN_CODE=Atari ATASCII Screen Code
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_INTERNATIONAL=Atari International
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_INTERNATIONAL_SCREEN_CODE=Atari International Screen Code
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.C64_PETSCII_UPPER_CASE=C64 PETSCII Upper Case
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.C64_PETSCII_LOWER_CASE=C64 PETSCII Lower Case
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ASCII=ASCII
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_ATASCII=Atari ATASCII
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_ATASCII_SCREEN_CODE=Atari ATASCII Screen Code
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_INTERNATIONAL=Atari International
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_INTERNATIONAL_SCREEN_CODE=Atari International Screen Code
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.CBM_PETSCII_UPPER_CASE=C64 PETSCII Upper Case
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.CBM_PETSCII_LOWER_CASE=C64 PETSCII Lower Case
|
||||
|
@ -266,235 +266,6 @@
|
||||
</visibleWhen>
|
||||
</menu>
|
||||
</menuContribution>
|
||||
<menuContribution
|
||||
locationURI="popup:#TextEditorContext?after=additions">
|
||||
<menu
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortMenu"
|
||||
label="%com.wudsn.ide.base.editor.text.TextEditorSortMenu.label">
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommandHandler"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicates"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<visibleWhen
|
||||
checkEnabled="false">
|
||||
<with
|
||||
variable="activeEditor">
|
||||
<instanceof
|
||||
value="org.eclipse.ui.texteditor.ITextEditor">
|
||||
</instanceof>
|
||||
</with>
|
||||
</visibleWhen>
|
||||
</menu>
|
||||
</menuContribution>
|
||||
<menuContribution
|
||||
locationURI="menu:edit?after=additions">
|
||||
<menu
|
||||
label="%com.wudsn.ide.base.editor.text.TextEditorSortMenu.label"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortMenu.mnemonic">
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand.mnemonic"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand.mnemonic"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand.mnemonic"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand.mnemonic"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand.mnemonic"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand.mnemonic"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
||||
id="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
||||
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand.mnemonic"
|
||||
style="push">
|
||||
</command>
|
||||
<visibleWhen
|
||||
checkEnabled="false">
|
||||
<with
|
||||
variable="activeEditor">
|
||||
<instanceof
|
||||
value="org.eclipse.ui.texteditor.ITextEditor">
|
||||
</instanceof>
|
||||
</with>
|
||||
</visibleWhen>
|
||||
</menu>
|
||||
</menuContribution>
|
||||
</extension>
|
||||
<extension
|
||||
name="HexEditorCommands"
|
||||
point="org.eclipse.ui.commands">
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorOpenCommand.name">
|
||||
</command>
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand.name">
|
||||
</command>
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand.name">
|
||||
</command>
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand.name">
|
||||
</command>
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand.name">
|
||||
</command>
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand.name">
|
||||
</command>
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name">
|
||||
</command>
|
||||
<command
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand.name">
|
||||
</command>
|
||||
</extension>
|
||||
<extension
|
||||
name="HexEditorHandlers"
|
||||
point="org.eclipse.ui.handlers">
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorOpenCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand">
|
||||
</handler>
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand">
|
||||
<activeWhen>
|
||||
<with
|
||||
variable="activeMenuSelection">
|
||||
<instanceof
|
||||
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
||||
</instanceof>
|
||||
</with>
|
||||
</activeWhen>
|
||||
</handler>
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand">
|
||||
<activeWhen>
|
||||
<with
|
||||
variable="activeMenuSelection">
|
||||
<instanceof
|
||||
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
||||
</instanceof>
|
||||
</with>
|
||||
</activeWhen>
|
||||
</handler>
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand">
|
||||
<activeWhen>
|
||||
<with
|
||||
variable="activeMenuSelection">
|
||||
<instanceof
|
||||
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
||||
</instanceof>
|
||||
</with>
|
||||
</activeWhen>
|
||||
</handler>
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand">
|
||||
<activeWhen>
|
||||
<with
|
||||
variable="activeMenuSelection">
|
||||
<instanceof
|
||||
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
||||
</instanceof>
|
||||
</with>
|
||||
</activeWhen>
|
||||
</handler>
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand">
|
||||
<activeWhen>
|
||||
<with
|
||||
variable="activeMenuSelection">
|
||||
<instanceof
|
||||
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
||||
</instanceof>
|
||||
</with>
|
||||
</activeWhen>
|
||||
</handler>
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand">
|
||||
</handler>
|
||||
<handler
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommandHandler"
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand">
|
||||
<activeWhen>
|
||||
<with
|
||||
variable="activeMenuSelection">
|
||||
<instanceof
|
||||
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
||||
</instanceof>
|
||||
</with>
|
||||
</activeWhen>
|
||||
</handler>
|
||||
</extension>
|
||||
<extension
|
||||
name="HexEditorMenus"
|
||||
@ -536,97 +307,6 @@
|
||||
</visibleWhen>
|
||||
</command>
|
||||
</menuContribution>
|
||||
<menuContribution
|
||||
locationURI="popup:org.eclipse.ui.popup.any?before=group.openWith">
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand"
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand"
|
||||
style="push">
|
||||
<visibleWhen
|
||||
checkEnabled="false">
|
||||
<or>
|
||||
<with
|
||||
variable="activeMenuSelection">
|
||||
<iterate
|
||||
ifEmpty="false"
|
||||
operator="or">
|
||||
<instanceof
|
||||
value="org.eclipse.core.resources.IFile">
|
||||
</instanceof>
|
||||
</iterate>
|
||||
</with>
|
||||
<with
|
||||
variable="activeMenuEditorInput">
|
||||
<iterate
|
||||
ifEmpty="false"
|
||||
operator="or">
|
||||
<instanceof
|
||||
value="org.eclipse.ui.IFileEditorInput">
|
||||
</instanceof>
|
||||
</iterate>
|
||||
</with>
|
||||
</or>
|
||||
</visibleWhen>
|
||||
</command>
|
||||
</menuContribution>
|
||||
<menuContribution
|
||||
locationURI="popup:#HexEditorContext">
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand"
|
||||
disabledIcon="icons/copy-disabled.gif"
|
||||
icon="icons/copy-enabled.gif"
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<menu
|
||||
label="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsMenu.name">
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand"
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand"
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand"
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand"
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand"
|
||||
style="push">
|
||||
</command>
|
||||
</menu>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand"
|
||||
icon="icons/paste-enabled.gif"
|
||||
id="%com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name"
|
||||
label="%com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name"
|
||||
style="push">
|
||||
</command>
|
||||
<command
|
||||
commandId="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand"
|
||||
disabledIcon="icons/save-as-disabled.gif"
|
||||
icon="icons/save-as-enabled.gif"
|
||||
label="%com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand.name"
|
||||
style="push">
|
||||
</command>
|
||||
</menuContribution>
|
||||
</extension>
|
||||
|
||||
<extension
|
||||
name="HexEditor"
|
||||
point="org.eclipse.ui.editors">
|
||||
<editor
|
||||
class="com.wudsn.ide.base.editor.hex.HexEditor"
|
||||
default="true"
|
||||
icon="icons/hex-editor-16x16.gif"
|
||||
id="com.wudsn.ide.base.editor.hex.HexEditor"
|
||||
name="%com.wudsn.ide.base.editor.hex.HexEditor.name">
|
||||
</editor>
|
||||
</extension>
|
||||
</plugin>
|
||||
|
@ -28,32 +28,10 @@ com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand.mnemonic=U
|
||||
|
||||
com.wudsn.ide.base.editor.BinaryFile.name=Binär-Datei
|
||||
|
||||
com.wudsn.ide.base.editor.hex.HexEditor.name=Hex Editor
|
||||
com.wudsn.ide.base.editor.hex.HexEditorOpenCommand.name=Öffnen mit Hex Editor
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand.name=Kopieren
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsMenu.name=Kopieren als
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand.name=Kopieren als dezimale Werte
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand.name=Kopieren als dezimale Werte im Blocksatz
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand.name=Kopieren als hexadezimale Werte
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand.name=Kopieren als ASCII Text
|
||||
com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name=Einfügen
|
||||
com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand.name=Auswahl Speichern unter...
|
||||
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.BINARY=Binär
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_COM_FILE=Atari COM-Datei
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_DISK_IMAGE=Atari Disk Image
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_DISK_IMAGE_K_FILE=Atari Disk Image (k-Datei)
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_MADS_FILE=Atari MADS-Datei
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_SAP_FILE=Atari SAP-Datei
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.ATARI_SDX_FILE=Atari SpartaDOS X-Datei
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.C64_PRG_FILE=C64 PRG-Datei
|
||||
com.wudsn.ide.base.editor.hex.HexEditorFileContentMode.IFF_FILE=IFF-Datei
|
||||
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ASCII=ASCII
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_ATASCII=Atari ATASCII
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_ATASCII_SCREEN_CODE=Atari ATASCII Bildschirmcode
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_INTERNATIONAL=Atari International
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.ATARI_INTERNATIONAL_SCREEN_CODE=Atari International Bildschirmcode
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.C64_PETSCII_UPPER_CASE=C64 PETSCII Großbuchstaben
|
||||
com.wudsn.ide.base.editor.hex.HexEditorCharacterSet.C64_PETSCII_LOWER_CASE=C64 PETSCII Kleinbuchstaben
|
||||
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ASCII=ASCII
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_ATASCII=Atari ATASCII
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_ATASCII_SCREEN_CODE=Atari ATASCII Bildschirmcode
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_INTERNATIONAL=Atari International
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.ATARI_INTERNATIONAL_SCREEN_CODE=Atari International Bildschirmcode
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.CBM_PETSCII_UPPER_CASE=C64 PETSCII Großbuchstaben
|
||||
com.wudsn.ide.base.hardware.HardwareCharacterSet.CBM_PETSCII_LOWER_CASE=C64 PETSCII Kleinbuchstaben
|
||||
|
@ -22,7 +22,6 @@ package com.wudsn.ide.base;
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
import com.wudsn.ide.base.common.FileUtility;
|
||||
import com.wudsn.ide.base.editor.hex.HexEditor;
|
||||
|
||||
/**
|
||||
* Class which holds the localized text constants.
|
||||
@ -38,53 +37,6 @@ public final class Texts extends NLS {
|
||||
public static String FILE_PATH_FIELD_BROWSE_BUTTON_LABEL;
|
||||
public static String FILE_PATH_FIELD_DIALOG_MESSAGE;
|
||||
|
||||
/**
|
||||
* Hex editor
|
||||
*/
|
||||
public static String HEX_EDITOR_FILE_SIZE;
|
||||
|
||||
public static String HEX_EDITOR_ATARI_COM_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_COM_BLOCK_HEADER_PARAMETERS;
|
||||
public static String HEX_EDITOR_ATARI_COM_BLOCK_ERROR;
|
||||
|
||||
public static String HEX_EDITOR_ATARI_DISK_IMAGE_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_SECTOR_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_SECTOR_HEADER_PARAMETERS;
|
||||
public static String HEX_EDITOR_ATARI_SECTOR_ERROR;
|
||||
|
||||
public static String HEX_EDITOR_ATARI_MADS_RELOC_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_MADS_UPDATE_RELOC_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_MADS_UPDATE_SYMBOLS_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_MADS_DEFINE_SYMBOLS_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_MADS_DEFINE_SYMBOL_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_MADS_BLOCK_ERROR;
|
||||
|
||||
public static String HEX_EDITOR_ATARI_SAP_FILE_HEADER;
|
||||
|
||||
public static String HEX_EDITOR_ATARI_SDX_NON_RELOC_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_SDX_NON_RELOC_BLOCK_HEADER_PARAMETERS;
|
||||
public static String HEX_EDITOR_ATARI_SDX_RELOC_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_SDX_UPDATE_RELOC_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_SDX_UPDATE_SYMBOLS_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_SDX_DEFINE_SYMBOLS_BLOCK_HEADER;
|
||||
public static String HEX_EDITOR_ATARI_SDX_BLOCK_ERROR;
|
||||
|
||||
public static String HEX_EDITOR_C64_PRG_HEADER;
|
||||
public static String HEX_EDITOR_C64_PRG_HEADER_PARAMETERS;
|
||||
public static String HEX_EDITOR_C64_PRG_ERROR;
|
||||
|
||||
public static String HEX_EDITOR_IFF_CHUNK;
|
||||
public static String HEX_EDITOR_IFF_FORM_CHUNK;
|
||||
public static String HEX_EDITOR_IFF_FILE_ERROR;
|
||||
|
||||
public static String HEX_EDITOR_FILE_CONTENT_SIZE_FIELD_LABEL;
|
||||
public static String HEX_EDITOR_FILE_CONTENT_SIZE_FIELD_TEXT;
|
||||
public static String HEX_EDITOR_FILE_CONTENT_MODE_FIELD_LABEL;
|
||||
public static String HEX_EDITOR_CHARACTER_SET_TYPE_FIELD_LABEL;
|
||||
public static String HEX_EDITOR_BYTES_PER_ROW_FIELD_LABEL;
|
||||
|
||||
public static String HEX_EDITOR_SAVE_SELECTION_AS_DIALOG_TITLE;
|
||||
|
||||
/**
|
||||
* Messages for {@link FileUtility}.
|
||||
*/
|
||||
@ -103,14 +55,6 @@ public final class Texts extends NLS {
|
||||
public static String MESSAGE_E212;
|
||||
public static String MESSAGE_E213;
|
||||
|
||||
/**
|
||||
* Message for the {@link HexEditor}
|
||||
*/
|
||||
public static String MESSAGE_E300;
|
||||
public static String MESSAGE_E301;
|
||||
public static String MESSAGE_I302;
|
||||
public static String MESSAGE_I303;
|
||||
|
||||
/**
|
||||
* Initializes the constants.
|
||||
*/
|
||||
|
@ -2,50 +2,6 @@ DIALOG_TITLE=WUDSN IDE Dialog
|
||||
FILE_PATH_FIELD_BROWSE_BUTTON_LABEL=Browse...
|
||||
FILE_PATH_FIELD_DIALOG_MESSAGE=Select {0}
|
||||
|
||||
HEX_EDITOR_FILE_SIZE=File contains ${0} ({1}) bytes.
|
||||
|
||||
HEX_EDITOR_ATARI_COM_BLOCK_HEADER=COM block
|
||||
HEX_EDITOR_ATARI_COM_BLOCK_HEADER_PARAMETERS={0}-{1} ({2})
|
||||
HEX_EDITOR_ATARI_COM_BLOCK_ERROR=COM file structure error
|
||||
|
||||
HEX_EDITOR_ATARI_DISK_IMAGE_HEADER=ATR header
|
||||
HEX_EDITOR_ATARI_SECTOR_HEADER=Sector
|
||||
HEX_EDITOR_ATARI_SECTOR_HEADER_PARAMETERS=({2})
|
||||
HEX_EDITOR_ATARI_SECTOR_ERROR=Sector structure error
|
||||
|
||||
HEX_EDITOR_ATARI_MADS_RELOC_BLOCK_HEADER=MADS RELOC block {0}-{1} {2}
|
||||
HEX_EDITOR_ATARI_MADS_UPDATE_RELOC_BLOCK_HEADER=MADS UPDATE RELOC block {0} {1}
|
||||
HEX_EDITOR_ATARI_MADS_UPDATE_SYMBOLS_BLOCK_HEADER=MADS UPDATE SYMBOLS block {0} {1}
|
||||
HEX_EDITOR_ATARI_MADS_DEFINE_SYMBOLS_BLOCK_HEADER=MADS DEFINE SYMBOLS block {0}
|
||||
HEX_EDITOR_ATARI_MADS_DEFINE_SYMBOL_HEADER=MADS DEFINE SYMBOL {0} {1} {2} {3}
|
||||
HEX_EDITOR_ATARI_MADS_BLOCK_ERROR=MADS file structure error
|
||||
|
||||
HEX_EDITOR_ATARI_SAP_FILE_HEADER=SAP Header
|
||||
|
||||
HEX_EDITOR_ATARI_SDX_NON_RELOC_BLOCK_HEADER=SDX NON-RELOC block
|
||||
HEX_EDITOR_ATARI_SDX_NON_RELOC_BLOCK_HEADER_PARAMETERS={0}-{1} ({2})
|
||||
HEX_EDITOR_ATARI_SDX_RELOC_BLOCK_HEADER=SDX RELOC block {0} {1} {2} {3}
|
||||
HEX_EDITOR_ATARI_SDX_UPDATE_RELOC_BLOCK_HEADER=SDX UPDATE RELOC block {0} {1}
|
||||
HEX_EDITOR_ATARI_SDX_UPDATE_SYMBOLS_BLOCK_HEADER=SDX UPDATE SYMBOLS block {0} {1}
|
||||
HEX_EDITOR_ATARI_SDX_DEFINE_SYMBOLS_BLOCK_HEADER=SDX DEFINE SYMBOLS block {0} {1} {2}
|
||||
HEX_EDITOR_ATARI_SDX_BLOCK_ERROR=SDX file structure error
|
||||
|
||||
HEX_EDITOR_C64_PRG_HEADER=Program
|
||||
HEX_EDITOR_C64_PRG_HEADER_PARAMETERS={0}-{1} ({2})
|
||||
HEX_EDITOR_C64_PRG_ERROR=PRG file structure error
|
||||
|
||||
HEX_EDITOR_IFF_CHUNK=Chunk {0} contains ${1} ({2}) bytes
|
||||
HEX_EDITOR_IFF_FORM_CHUNK=Chunk {0} of type {1} contains ${2} ({3}) bytes
|
||||
HEX_EDITOR_IFF_FILE_ERROR=IFF file structure error
|
||||
|
||||
HEX_EDITOR_FILE_CONTENT_SIZE_FIELD_LABEL=File Size
|
||||
HEX_EDITOR_FILE_CONTENT_SIZE_FIELD_TEXT=${0} ({1}) bytes
|
||||
HEX_EDITOR_FILE_CONTENT_MODE_FIELD_LABEL=File Mode
|
||||
HEX_EDITOR_CHARACTER_SET_TYPE_FIELD_LABEL=Character Set
|
||||
HEX_EDITOR_BYTES_PER_ROW_FIELD_LABEL=Bytes per Row
|
||||
|
||||
HEX_EDITOR_SAVE_SELECTION_AS_DIALOG_TITLE=Save ${0} ({1}) bytes as...
|
||||
|
||||
MESSAGE_E200=Folder '{0}' does not exist.
|
||||
MESSAGE_E201='{0}' is no folder but a file.
|
||||
MESSAGE_E202=Cannot create folder '{0}'.
|
||||
@ -60,8 +16,3 @@ MESSAGE_E210=Cannot create file '{0}'.
|
||||
MESSAGE_E211=Cannot open file '{0}' for writing.
|
||||
MESSAGE_E212=Cannot write content of file '{0}'.
|
||||
MESSAGE_E213=Cannot close output stream of file '{0}'.
|
||||
|
||||
MESSAGE_E300=File content cannot be interpreted as '{0}'.
|
||||
MESSAGE_E301=File of type '{0}' is corrupted; check the last section of the file.
|
||||
MESSAGE_I302=${0} ({1}) bytes copied to clipboard.
|
||||
MESSAGE_I303=${0} ({1}) bytes saved as '{2}'.
|
@ -2,50 +2,6 @@ DIALOG_TITLE=WUDSN IDE Dialog
|
||||
FILE_PATH_FIELD_BROWSE_BUTTON_LABEL=Durchsuchen...
|
||||
FILE_PATH_FIELD_DIALOG_MESSAGE={0} auswählen
|
||||
|
||||
HEX_EDITOR_FILE_SIZE=Datei enhält {0} ({1}) Bytes.
|
||||
|
||||
HEX_EDITOR_ATARI_COM_BLOCK_HEADER=COM Block
|
||||
HEX_EDITOR_ATARI_COM_BLOCK_HEADER_PARAMETERS={0}-{1} ({2})
|
||||
HEX_EDITOR_ATARI_COM_BLOCK_ERROR=COM Dateistruktur defekt
|
||||
|
||||
HEX_EDITOR_ATARI_DISK_IMAGE_HEADER=ATR Header
|
||||
HEX_EDITOR_ATARI_SECTOR_HEADER=Sektor
|
||||
HEX_EDITOR_ATARI_SECTOR_HEADER_PARAMETERS=({2})
|
||||
HEX_EDITOR_ATARI_SECTOR_ERROR=Sektorfehler
|
||||
|
||||
HEX_EDITOR_ATARI_MADS_RELOC_BLOCK_HEADER=MADS RELOC Block {0}-{1} {2}
|
||||
HEX_EDITOR_ATARI_MADS_UPDATE_RELOC_BLOCK_HEADER=MADS UPDATE RELOC Block {0} {1}
|
||||
HEX_EDITOR_ATARI_MADS_UPDATE_SYMBOLS_BLOCK_HEADER=MADS UPDATE SYMBOLS Block {0} {1}
|
||||
HEX_EDITOR_ATARI_MADS_DEFINE_SYMBOLS_BLOCK_HEADER=MADS DEFINE SYMBOLS Block {0}
|
||||
HEX_EDITOR_ATARI_MADS_DEFINE_SYMBOL_HEADER=MADS DEFINE SYMBOL {0} {1} {2} {3}
|
||||
HEX_EDITOR_ATARI_MADS_BLOCK_ERROR=MADS Dateistruktur defekt
|
||||
|
||||
HEX_EDITOR_ATARI_SAP_FILE_HEADER=SAP Header
|
||||
|
||||
HEX_EDITOR_ATARI_SDX_NON_RELOC_BLOCK_HEADER=SDX NON-RELOC block
|
||||
HEX_EDITOR_ATARI_SDX_NON_RELOC_BLOCK_HEADER_PARAMETERS={0}-{1} ({2})
|
||||
HEX_EDITOR_ATARI_SDX_RELOC_BLOCK_HEADER=SDX NON-RELOC Block {0} {1} {2} {3}
|
||||
HEX_EDITOR_ATARI_SDX_UPDATE_RELOC_BLOCK_HEADER=SDX UPDATE RELOC Block {0} {1}
|
||||
HEX_EDITOR_ATARI_SDX_UPDATE_SYMBOLS_BLOCK_HEADER=SDX UPDATE SYMBOLS Block {0} {1}
|
||||
HEX_EDITOR_ATARI_SDX_DEFINE_SYMBOLS_BLOCK_HEADER=SDX DEFINE SYMBOLS Block {0} {1} {2}
|
||||
HEX_EDITOR_ATARI_SDX_BLOCK_ERROR=SDX Dateistruktur defekt
|
||||
|
||||
HEX_EDITOR_C64_PRG_HEADER=Programm
|
||||
HEX_EDITOR_C64_PRG_HEADER_PARAMETERS={0}-{1} ({2})
|
||||
HEX_EDITOR_C64_PRG_ERROR=PRG Dateistruktur defekt
|
||||
|
||||
HEX_EDITOR_IFF_CHUNK=Chunk
|
||||
HEX_EDITOR_IFF_FORM_CHUNK=Chunk {0} vom Typ {1} enhl#t ${2} ({3}) Bytes
|
||||
HEX_EDITOR_IFF_FILE_ERROR=IFF Dateistruktur defekt
|
||||
|
||||
HEX_EDITOR_FILE_CONTENT_SIZE_FIELD_LABEL=Dateigröße
|
||||
HEX_EDITOR_FILE_CONTENT_SIZE_FIELD_TEXT=${0} ({1}) Bytes
|
||||
HEX_EDITOR_FILE_CONTENT_MODE_FIELD_LABEL=Datei-Modus
|
||||
HEX_EDITOR_CHARACTER_SET_TYPE_FIELD_LABEL=Zeichensatz
|
||||
HEX_EDITOR_BYTES_PER_ROW_FIELD_LABEL=Bytes pro Zeile
|
||||
|
||||
HEX_EDITOR_SAVE_SELECTION_AS_DIALOG_TITLE=Speichere ${0} ({1}) Bytes unter...
|
||||
|
||||
MESSAGE_E200=Ordner '{0}' existiert nicht.
|
||||
MESSAGE_E201='{0}' ist kein Ordner sondern eine Datei.
|
||||
MESSAGE_E202=Ordner '{0}' kann nicht erstellt werden.
|
||||
@ -60,8 +16,3 @@ MESSAGE_E210=Datei '{0}' kann nicht erstellt werden.
|
||||
MESSAGE_E211=Datei '{0}' kann nicht zum Schreiben geöffnet werden.
|
||||
MESSAGE_E212=Inhalt der Datei '{0}' kann nicht geschrieben werden.
|
||||
MESSAGE_E213=Ausgabedatenstrom der Datei '{0}' kann geschlossen werden.
|
||||
|
||||
MESSAGE_E300=Inhalt der Datei kann nicht als '{0}' interpretiert werden.
|
||||
MESSAGE_E301=Datei vom Typ '{0}' ist korrupt; überprüfen Sie den letzten Abschnitt der Datei
|
||||
MESSAGE_I302=${0} ({1}) Bytes in die Zwischenablage kopiert.
|
||||
MESSAGE_I303=${0} ({1}) Bytes gespeichert unter '{2}'.
|
@ -94,7 +94,7 @@ public abstract class AbstractIDEPlugin extends AbstractUIPlugin {
|
||||
}
|
||||
message = format(message, parameters);
|
||||
getLog().log(new Status(IStatus.INFO, getPluginId(), IStatus.OK, message, null));
|
||||
// System.out.println(message);
|
||||
// System.out.println(message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,11 +16,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with WUDSN IDE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.wudsn.ide.base.editor.hex;
|
||||
package com.wudsn.ide.base.hardware;
|
||||
|
||||
/**
|
||||
* Enum for the supported hardware platforms. Used for file content modes and
|
||||
* character sets.
|
||||
* Enum for the hardware platforms.
|
||||
*
|
||||
* @author Peter Dell
|
||||
*
|
@ -17,7 +17,7 @@
|
||||
* along with WUDSN IDE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.wudsn.ide.base.editor.hex;
|
||||
package com.wudsn.ide.base.hardware;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
@ -35,11 +35,12 @@ import com.wudsn.ide.base.common.ResourceUtility;
|
||||
|
||||
/**
|
||||
* Logical character set with physical font and character mapping.
|
||||
* TODO Generalize C64 to CBM ASCII
|
||||
*
|
||||
* @since 1.7.0
|
||||
*/
|
||||
enum HexEditorCharacterSet {
|
||||
ASCII, ATARI_ATASCII, ATARI_ATASCII_SCREEN_CODE, ATARI_INTERNATIONAL, ATARI_INTERNATIONAL_SCREEN_CODE, C64_PETSCII_UPPER_CASE, C64_PETSCII_LOWER_CASE;
|
||||
public enum HardwareCharacterSet {
|
||||
ASCII, ATARI_ATASCII, ATARI_ATASCII_SCREEN_CODE, ATARI_INTERNATIONAL, ATARI_INTERNATIONAL_SCREEN_CODE, CBM_PETSCII_UPPER_CASE, CBM_PETSCII_LOWER_CASE;
|
||||
|
||||
/**
|
||||
* Data class to encapsulate lazy loading and reuse of SWT fonts.
|
||||
@ -54,20 +55,20 @@ enum HexEditorCharacterSet {
|
||||
private final static int ATARI_FONT_BASE = 0xe000;
|
||||
private final static int ATARI_INT_FONT_BASE = 0xe100;
|
||||
|
||||
private final static String C64_FONT_PATH = "fonts/c64/C64Classic-Regular.ttf";
|
||||
private final static String C64_FONT_NAME = "C64 Classic";
|
||||
private final static int C64_FONT_SIZE = 6;
|
||||
private final static int C64_UPPER_FONT_BASE = 0x0100;
|
||||
private final static int C64_LOWER_FONT_BASE = 0x0200;
|
||||
private final static String CBM_FONT_PATH = "fonts/c64/C64Classic-Regular.ttf";
|
||||
private final static String CBM_FONT_NAME = "C64 Classic";
|
||||
private final static int CBM_FONT_SIZE = 6;
|
||||
private final static int CBM_UPPER_FONT_BASE = 0x0100;
|
||||
private final static int CBM_LOWER_FONT_BASE = 0x0200;
|
||||
|
||||
private static Map<HexEditorCharacterSet, Data> instanceMap;
|
||||
private static Map<HardwareCharacterSet, Data> instanceMap;
|
||||
private static Map<String, Font> fontMap;
|
||||
|
||||
Font font;
|
||||
char[] characterMapping;
|
||||
|
||||
static {
|
||||
instanceMap = new TreeMap<HexEditorCharacterSet, Data>();
|
||||
instanceMap = new TreeMap<HardwareCharacterSet, Data>();
|
||||
fontMap = new TreeMap<String, Font>();
|
||||
}
|
||||
|
||||
@ -79,7 +80,7 @@ enum HexEditorCharacterSet {
|
||||
*
|
||||
* @return The instance, not <code>null</code>.
|
||||
*/
|
||||
public static Data getInstance(HexEditorCharacterSet type) {
|
||||
public static Data getInstance(HardwareCharacterSet type) {
|
||||
if (type == null) {
|
||||
throw new IllegalArgumentException("Parameter 'type' must not be null.");
|
||||
}
|
||||
@ -131,17 +132,17 @@ enum HexEditorCharacterSet {
|
||||
fontSize = ATARI_FONT_SIZE;
|
||||
result.setAtariScreenCodeMapping(ATARI_INT_FONT_BASE);
|
||||
break;
|
||||
case C64_PETSCII_UPPER_CASE:
|
||||
fontPath = C64_FONT_PATH;
|
||||
fontName = C64_FONT_NAME;
|
||||
fontSize = C64_FONT_SIZE;
|
||||
result.setIdentityMapping(C64_UPPER_FONT_BASE);
|
||||
case CBM_PETSCII_UPPER_CASE:
|
||||
fontPath = CBM_FONT_PATH;
|
||||
fontName = CBM_FONT_NAME;
|
||||
fontSize = CBM_FONT_SIZE;
|
||||
result.setIdentityMapping(CBM_UPPER_FONT_BASE);
|
||||
break;
|
||||
case C64_PETSCII_LOWER_CASE:
|
||||
fontPath = C64_FONT_PATH;
|
||||
fontName = C64_FONT_NAME;
|
||||
fontSize = C64_FONT_SIZE;
|
||||
result.setIdentityMapping(C64_LOWER_FONT_BASE);
|
||||
case CBM_PETSCII_LOWER_CASE:
|
||||
fontPath = CBM_FONT_PATH;
|
||||
fontName = CBM_FONT_NAME;
|
||||
fontSize = CBM_FONT_SIZE;
|
||||
result.setIdentityMapping(CBM_LOWER_FONT_BASE);
|
||||
break;
|
||||
default:
|
||||
throw new IllegalArgumentException("Unsupported font type " + type + ".");
|
||||
@ -225,29 +226,6 @@ enum HexEditorCharacterSet {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines the default character set for a given file content mode.
|
||||
*
|
||||
* @param fileContentMode
|
||||
* The file content mode, not <code>null</code>.
|
||||
* @return The default character set, not <code>null</code>.
|
||||
*/
|
||||
public static HexEditorCharacterSet getDefaultCharacterSet(HexEditorFileContentMode fileContentMode) {
|
||||
if (fileContentMode == null) {
|
||||
throw new IllegalArgumentException("Parameter 'fileContentMode' must not be null.");
|
||||
}
|
||||
switch (fileContentMode.getHardware()) {
|
||||
case GENERIC:
|
||||
return ASCII;
|
||||
case ATARI8BIT:
|
||||
return ATARI_ATASCII;
|
||||
case C64:
|
||||
return C64_PETSCII_UPPER_CASE;
|
||||
}
|
||||
throw new IllegalArgumentException("File content mode " + fileContentMode + " has an unknown hardware "
|
||||
+ fileContentMode.getHardware());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the SWT font.
|
||||
*
|
@ -11,7 +11,8 @@ Require-Bundle: com.wudsn.ide.base,
|
||||
org.eclipse.ui,
|
||||
org.eclipse.ui.editors,
|
||||
org.eclipse.ui.ide,
|
||||
org.eclipse.ui.console
|
||||
org.eclipse.ui.console,
|
||||
org.eclipse.ui.views
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Bundle-Localization: plugin
|
||||
|
@ -3,5 +3,6 @@
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/com.wudsn.ide.base"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
@ -1,12 +1,18 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: Hex Editor Test
|
||||
Bundle-SymbolicName: com.wudsn.ide.hex
|
||||
Bundle-Version: 1.7.1
|
||||
Bundle-Name: WUDSN IDE Hex Editor Plugin
|
||||
Bundle-SymbolicName: com.wudsn.ide.hex;singleton:=true
|
||||
Bundle-Version: 1.7.1.qualifier
|
||||
Bundle-Activator: com.wudsn.ide.hex.HexPlugin
|
||||
Bundle-Vendor: WUDSN
|
||||
Bundle-Localization: plugin
|
||||
Bundle-Vendor: Peter Dell
|
||||
Require-Bundle: org.eclipse.ui,
|
||||
org.eclipse.core.runtime
|
||||
org.eclipse.core.runtime,
|
||||
org.eclipse.core.resources,
|
||||
org.eclipse.ui.ide,
|
||||
org.eclipse.ui.views,
|
||||
com.wudsn.ide.base
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Automatic-Module-Name: com.wudsn.ide.hex
|
||||
Export-Package: com.wudsn.ide.hex
|
||||
|
@ -2,5 +2,8 @@ source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
fonts/
|
||||
icons/,\
|
||||
plugin.properties,\
|
||||
plugin_de_DE.properties,\
|
||||
plugin.xml
|
||||
|
||||
|
Binary file not shown.
@ -1,317 +0,0 @@
|
||||
{\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fmodern\fprq1 Atari Classic Chunky;}{\f3\froman Times New Roman;}{\f4\fswiss\fprq2 Arial;}}
|
||||
{\colortbl\red0\green0\blue0;\red0\green0\blue255;}
|
||||
\deflang1033\pard\plain\f2\fs24\cf1 Atari Classic TrueType Fonts \plain\f2\fs24\cf0
|
||||
\par \plain\f4\fs16\cf0 (Windows Version 1.1)
|
||||
\par Created by Mark Simonson (v.1.0-1998, v.1.1-2001)
|
||||
\par marksim@bitstream.net
|
||||
\par Website: Mac/Atari Fusion--Atari Home Computer Resources for Mac Users
|
||||
\par http://www2.bitstream.net/~marksim/atarimac/
|
||||
\par Macintosh version also available.
|
||||
\par
|
||||
\par With these fonts installed, you can view and print Atari text files in any text editor that allows you to change fonts (WordPad, for example). Tip: In order to get the correct line breaks, you will need to change the ATASCII return character (155) to the DOS LF character. (In the Character Map accessory, the ATASCII return is the blank character that comes just before the inverse up-arrow.)
|
||||
\par
|
||||
\par There are three different fonts. \plain\f4\fs16\cf0\b Atari Classic Chunky \plain\f4\fs16\cf0 is a pixel-for-pixel copy of the original ATASCII character set. \plain\f4\fs16\cf0\b Atari Classic Smooth \plain\f4\fs16\cf0 interprets the pixel aliasing (stair steps) as diagonal lines. \plain\f4\fs16\cf0\b Atari Classic Extrasmooth \plain\f4\fs16\cf0 refines this idea further with the addition of curves. \plain\f4\fs16\cf0\b Smooth\plain\f4\fs16\cf0 and \plain\f4\fs16\cf0\b Extrasmooth\plain\f4\fs16\cf0 were designed for better appearance and legibility at larger sizes and on print-outs. Use the one that looks best to you.
|
||||
\par
|
||||
\par These fonts will tend to look uneven at font sizes that do not correspond to the 8-by-8 pixel grid that the characters are based on. Because Windows assumes 96ppi screen resolution, they will look best in a font size that is a multiple of 6 (i.e., 6pt, 12pt, 18pt, etc.). (In Windows, 6 points = 8 pixels.)
|
||||
\par
|
||||
\par The Atari Classic TrueType fonts duplicate the ATASCII character set on a low-level basis. Unlike a normal Windows font, ATASCII utilizes all character codes from $00 to $FF (0 to 255). The lower half are normal characters; the upper half are inverse versions of the lower half. The basic ASCII characters ($00 to $7F) correspond fairly closely except for the first 32, which don't normally contain characters in a Windows font.
|
||||
\par
|
||||
\par Due to differences between the way Windows and the Atari use character codes, not all characters will display properly in Windows. In fact, some characters will not display at all (though they do exist in the font). Unfortunately, this is due to certain character codes being reserved in Windows and there doesn't appear to be any way to work around it. The character codes affected are: $00-$1F (0-31), $7F-$81 (127-129), $8D-$90 (141-144), $9D (157), and $9F (158).
|
||||
\par
|
||||
\par Not all characters can be typed from the keyboard. You can however copy characters as needed from this document (see tables below). The Character Map desk accessory can help also.
|
||||
\par
|
||||
\par \plain\f4\fs16\cf0\b ATASCII CHARACTER SET TABLES
|
||||
\par \plain\f4\fs16\cf0
|
||||
\par In order to see the ATASCII character set with these tables, the Atari Classic TrueType fonts must be installed. Characters that are not displayed properly are due to character code usage differences between ATASCII and Windows (see above).
|
||||
\par
|
||||
\par
|
||||
\par \plain\f4\fs16\cf0\b TABLE 1: ATASCII Character Dump Block
|
||||
\par \plain\f4\fs16\cf0
|
||||
\par All characters (ATASCII $00 thru $FF) 16 characters per
|
||||
\par line.
|
||||
\par
|
||||
\par
|
||||
\par \plain\f2\fs12\cf0 \'01\'02\'03\'04\'05\'06\'07\'08\tab
|
||||
\par \'0b\'0c
|
||||
\par \'0e\'0f
|
||||
\par \'10\'11\'12\'13\'14\'15\'16\'17\'18\'19\'1a\'1b\'1c\'1d\'1e\'1f
|
||||
\par !"#$%&'()*+,-./
|
||||
\par 0123456789:;<=>?
|
||||
\par @ABCDEFGHIJKLMNO
|
||||
\par PQRSTUVWXYZ[\\]^_
|
||||
\par `abcdefghijklmno
|
||||
\par pqrstuvwxyz\{|\}~
|
||||
\par \'80\'81\'82\'83\'84\'85\'86\'87\'88\'89\'8a\'8b\'8c\'8d\'8e\'8f
|
||||
\par \'90''""\bullet \endash \emdash \'98\'99\'9a \'9c\'9d\'9e\'9f
|
||||
\par \~\'a1\'a2\'a3\'a4\'a5\'a6\'a7\'a8\'a9\'aa\'ab\'ac\'ad\'ae\'af
|
||||
\par \'b0\'b1\'b2\'b3\'b4\'b5\'b6\'b7\'b8\'b9\'ba\'bb\'bc\'bd\'be\'bf
|
||||
\par \'c0\'c1\'c2\'c3\'c4\'c5\'c6\'c7\'c8\'c9\'ca\'cb\'cc\'cd\'ce\'cf
|
||||
\par \'d0\'d1\'d2\'d3\'d4\'d5\'d6\'d7\'d8\'d9\'da\'db\'dc\'dd\'de\'df
|
||||
\par \'e0\'e1\'e2\'e3\'e4\'e5\'e6\'e7\'e8\'e9\'ea\'eb\'ec\'ed\'ee\'ef
|
||||
\par \'f0\'f1\'f2\'f3\'f4\'f5\'f6\'f7\'f8\'f9\'fa\'fb\'fc\'fd\'fe\'ff
|
||||
\par \plain\f4\fs16\cf0
|
||||
\par
|
||||
\par \plain\f4\fs16\cf0\b TABLE 2: ATASCII Character Dump List
|
||||
\par \plain\f4\fs16\cf0
|
||||
\par All characters (ATASCII $00 thru $FF) one character per
|
||||
\par line with hexadecimal value indicated on the left.
|
||||
\par
|
||||
\par \plain\f2\fs12\cf0 00=
|
||||
\par 01=\'01
|
||||
\par 02=\'02
|
||||
\par 03=\'03
|
||||
\par 04=\'04
|
||||
\par 05=\'05
|
||||
\par 06=\'06
|
||||
\par 07=\'07
|
||||
\par 08=\'08
|
||||
\par 09=\tab
|
||||
\par 0A=
|
||||
\par
|
||||
\par 0B=\'0b
|
||||
\par 0C=\'0c
|
||||
\par 0D=
|
||||
\par 0E=\'0e
|
||||
\par 0F=\'0f
|
||||
\par 10=\'10
|
||||
\par 11=\'11
|
||||
\par 12=\'12
|
||||
\par 13=\'13
|
||||
\par 14=\'14
|
||||
\par 15=\'15
|
||||
\par 16=\'16
|
||||
\par 17=\'17
|
||||
\par 18=\'18
|
||||
\par 19=\'19
|
||||
\par 1A=\'1a
|
||||
\par 1B=\'1b
|
||||
\par 1C=\'1c
|
||||
\par 1D=\'1d
|
||||
\par 1E=\'1e
|
||||
\par 1F=\'1f
|
||||
\par 20=
|
||||
\par 21=!
|
||||
\par 22="
|
||||
\par 23=#
|
||||
\par 24=$
|
||||
\par 25=%
|
||||
\par 26=&
|
||||
\par 27='
|
||||
\par 28=(
|
||||
\par 29=)
|
||||
\par 2A=*
|
||||
\par 2B=+
|
||||
\par 2C=,
|
||||
\par 2D=-
|
||||
\par 2E=.
|
||||
\par 2F=/
|
||||
\par 30=0
|
||||
\par 31=1
|
||||
\par 32=2
|
||||
\par 33=3
|
||||
\par 34=4
|
||||
\par 35=5
|
||||
\par 36=6
|
||||
\par 37=7
|
||||
\par 38=8
|
||||
\par 39=9
|
||||
\par 3A=:
|
||||
\par 3B=;
|
||||
\par 3C=<
|
||||
\par 3D==
|
||||
\par 3E=>
|
||||
\par 3F=?
|
||||
\par 40=@
|
||||
\par 41=A
|
||||
\par 42=B
|
||||
\par 43=C
|
||||
\par 44=D
|
||||
\par 45=E
|
||||
\par 46=F
|
||||
\par 47=G
|
||||
\par 48=H
|
||||
\par 49=I
|
||||
\par 4A=J
|
||||
\par 4B=K
|
||||
\par 4C=L
|
||||
\par 4D=M
|
||||
\par 4E=N
|
||||
\par 4F=O
|
||||
\par 50=P
|
||||
\par 51=Q
|
||||
\par 52=R
|
||||
\par 53=S
|
||||
\par 54=T
|
||||
\par 55=U
|
||||
\par 56=V
|
||||
\par 57=W
|
||||
\par 58=X
|
||||
\par 59=Y
|
||||
\par 5A=Z
|
||||
\par 5B=[
|
||||
\par 5C=\\
|
||||
\par 5D=]
|
||||
\par 5E=^
|
||||
\par 5F=_
|
||||
\par 60=`
|
||||
\par 61=a
|
||||
\par 62=b
|
||||
\par 63=c
|
||||
\par 64=d
|
||||
\par 65=e
|
||||
\par 66=f
|
||||
\par 67=g
|
||||
\par 68=h
|
||||
\par 69=i
|
||||
\par 6A=j
|
||||
\par 6B=k
|
||||
\par 6C=l
|
||||
\par 6D=m
|
||||
\par 6E=n
|
||||
\par 6F=o
|
||||
\par 70=p
|
||||
\par 71=q
|
||||
\par 72=r
|
||||
\par 73=s
|
||||
\par 74=t
|
||||
\par 75=u
|
||||
\par 76=v
|
||||
\par 77=w
|
||||
\par 78=x
|
||||
\par 79=y
|
||||
\par 7A=z
|
||||
\par 7B=\{
|
||||
\par 7C=|
|
||||
\par 7D=\}
|
||||
\par 7E=~
|
||||
\par 7F=
|
||||
\par 80=\'80
|
||||
\par 81=\'81
|
||||
\par 82=\'82
|
||||
\par 83=\'83
|
||||
\par 84=\'84
|
||||
\par 85=\'85
|
||||
\par 86=\'86
|
||||
\par 87=\'87
|
||||
\par 88=\'88
|
||||
\par 89=\'89
|
||||
\par 8A=\'8a
|
||||
\par 8B=\'8b
|
||||
\par 8C=\'8c
|
||||
\par 8D=\'8d
|
||||
\par 8E=\'8e
|
||||
\par 8F=\'8f
|
||||
\par 90=\'90
|
||||
\par 91='
|
||||
\par 92='
|
||||
\par 93="
|
||||
\par 94="
|
||||
\par 95=\bullet
|
||||
\par 96=\endash
|
||||
\par 97=\emdash
|
||||
\par 98=\'98
|
||||
\par 99=\'99
|
||||
\par 9A=\'9a
|
||||
\par 9B=
|
||||
\par 9C=\'9c
|
||||
\par 9D=\'9d
|
||||
\par 9E=\'9e
|
||||
\par 9F=\'9f
|
||||
\par A0=\~
|
||||
\par A1=\'a1
|
||||
\par A2=\'a2
|
||||
\par A3=\'a3
|
||||
\par A4=\'a4
|
||||
\par A5=\'a5
|
||||
\par A6=\'a6
|
||||
\par A7=\'a7
|
||||
\par A8=\'a8
|
||||
\par A9=\'a9
|
||||
\par AA=\'aa
|
||||
\par AB=\'ab
|
||||
\par AC=\'ac
|
||||
\par AD=\'ad
|
||||
\par AE=\'ae
|
||||
\par AF=\'af
|
||||
\par B0=\'b0
|
||||
\par B1=\'b1
|
||||
\par B2=\'b2
|
||||
\par B3=\'b3
|
||||
\par B4=\'b4
|
||||
\par B5=\'b5
|
||||
\par B6=\'b6
|
||||
\par B7=\'b7
|
||||
\par B8=\'b8
|
||||
\par B9=\'b9
|
||||
\par BA=\'ba
|
||||
\par BB=\'bb
|
||||
\par BC=\'bc
|
||||
\par BD=\'bd
|
||||
\par BE=\'be
|
||||
\par BF=\'bf
|
||||
\par C0=\'c0
|
||||
\par C1=\'c1
|
||||
\par C2=\'c2
|
||||
\par C3=\'c3
|
||||
\par C4=\'c4
|
||||
\par C5=\'c5
|
||||
\par C6=\'c6
|
||||
\par C7=\'c7
|
||||
\par C8=\'c8
|
||||
\par C9=\'c9
|
||||
\par CA=\'ca
|
||||
\par CB=\'cb
|
||||
\par CC=\'cc
|
||||
\par CD=\'cd
|
||||
\par CE=\'ce
|
||||
\par CF=\'cf
|
||||
\par D0=\'d0
|
||||
\par D1=\'d1
|
||||
\par D2=\'d2
|
||||
\par D3=\'d3
|
||||
\par D4=\'d4
|
||||
\par D5=\'d5
|
||||
\par D6=\'d6
|
||||
\par D7=\'d7
|
||||
\par D8=\'d8
|
||||
\par D9=\'d9
|
||||
\par DA=\'da
|
||||
\par DB=\'db
|
||||
\par DC=\'dc
|
||||
\par DD=\'dd
|
||||
\par DE=\'de
|
||||
\par DF=\'df
|
||||
\par E0=\'e0
|
||||
\par E1=\'e1
|
||||
\par E2=\'e2
|
||||
\par E3=\'e3
|
||||
\par E4=\'e4
|
||||
\par E5=\'e5
|
||||
\par E6=\'e6
|
||||
\par E7=\'e7
|
||||
\par E8=\'e8
|
||||
\par E9=\'e9
|
||||
\par EA=\'ea
|
||||
\par EB=\'eb
|
||||
\par EC=\'ec
|
||||
\par ED=\'ed
|
||||
\par EE=\'ee
|
||||
\par EF=\'ef
|
||||
\par F0=\'f0
|
||||
\par F1=\'f1
|
||||
\par F2=\'f2
|
||||
\par F3=\'f3
|
||||
\par F4=\'f4
|
||||
\par F5=\'f5
|
||||
\par F6=\'f6
|
||||
\par F7=\'f7
|
||||
\par F8=\'f8
|
||||
\par F9=\'f9
|
||||
\par FA=\'fa
|
||||
\par FB=\'fb
|
||||
\par FC=\'fc
|
||||
\par FD=\'fd
|
||||
\par FE=\'fe
|
||||
\par FF=\'ff
|
||||
\par }
|
||||
|