mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-06-13 11:29:37 +00:00
Continue to work on ATASCII editor
This commit is contained in:
parent
977d4df0bf
commit
a2e91f7ae5
|
@ -2,6 +2,15 @@
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="module" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry combineaccessrules="false" kind="src" path="/com.wudsn.ide.base">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="module" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -7,12 +7,14 @@ Bundle-Activator: com.wudsn.ide.tst.Activator
|
||||||
Bundle-Vendor: WUDSN IDE Test Plugin
|
Bundle-Vendor: WUDSN IDE Test Plugin
|
||||||
Require-Bundle: org.eclipse.ui,
|
Require-Bundle: org.eclipse.ui,
|
||||||
org.eclipse.core.runtime,
|
org.eclipse.core.runtime,
|
||||||
org.eclipse.jface.text,
|
|
||||||
org.eclipse.ui.editors,
|
|
||||||
org.eclipse.core.resources,
|
org.eclipse.core.resources,
|
||||||
org.eclipse.ui.workbench,
|
org.eclipse.ui.ide,
|
||||||
org.eclipse.ui.ide;bundle-version="3.9.1",
|
org.eclipse.ui.views,
|
||||||
org.eclipse.help
|
com.wudsn.ide.base,
|
||||||
|
org.eclipse.jface.text,
|
||||||
|
org.eclipse.help,
|
||||||
|
org.eclipse.ui.editors
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
||||||
Bundle-ActivationPolicy: lazy; exclude:="com.wudsn.ide.tst.contenttypes"
|
Bundle-ActivationPolicy: lazy; exclude:="com.wudsn.ide.tst.contenttypes"
|
||||||
Automatic-Module-Name: com.wudsn.ide.tst
|
Automatic-Module-Name: com.wudsn.ide.tst
|
||||||
|
Import-Package: org.eclipse.ui.editors.text
|
||||||
|
|
6
com.wudsn.ide.tst/context.xml
Normal file
6
com.wudsn.ide.tst/context.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<contexts>
|
||||||
|
<context id="message">
|
||||||
|
<description>This is the sample context-sensitive help. There is a link to the help content below.</description>
|
||||||
|
<topic href="html/gettingstarted/subtopic.html" label="Subtopic" />
|
||||||
|
</context>
|
||||||
|
</contexts>
|
2
com.wudsn.ide.tst/help/toc.xml
Normal file
2
com.wudsn.ide.tst/help/toc.xml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<!--comment-->
|
||||||
|
TODO Have sections in TOC
|
|
@ -8,7 +8,7 @@
|
||||||
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
|
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
|
||||||
icon="icons/atascii-16x16.png"
|
icon="icons/atascii-16x16.png"
|
||||||
id="com.wudsn.ide.tst.editors.ATASCIIEditor"
|
id="com.wudsn.ide.tst.editors.ATASCIIEditor"
|
||||||
name="ATASCI Editor">
|
name="%com.wudsn.ide.tst.editors.ATASCIIEditor.name">
|
||||||
<contentTypeBinding
|
<contentTypeBinding
|
||||||
contentTypeId="com.wudsn.ide.tst.editors.ATASCIIFile">
|
contentTypeId="com.wudsn.ide.tst.editors.ATASCIIFile">
|
||||||
</contentTypeBinding>
|
</contentTypeBinding>
|
||||||
|
@ -20,10 +20,32 @@
|
||||||
base-type="org.eclipse.core.runtime.text"
|
base-type="org.eclipse.core.runtime.text"
|
||||||
describer="com.wudsn.ide.tst.contenttypes.ATASCIIFileContentDescriber"
|
describer="com.wudsn.ide.tst.contenttypes.ATASCIIFileContentDescriber"
|
||||||
file-extensions="*"
|
file-extensions="*"
|
||||||
id="com.wudsn.ide.tst.editors.ATASCIIFile"
|
id="com.wudsn.ide.tst.ATASCIIFile"
|
||||||
name="ATASCII File"
|
name="%com.wudsn.ide.tst.ATASCIIFile.name"
|
||||||
priority="high">
|
priority="high">
|
||||||
</content-type>
|
</content-type>
|
||||||
</extension>
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.help.toc">
|
||||||
|
<toc
|
||||||
|
file="help/toc.xml">
|
||||||
|
</toc>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.help.contexts">
|
||||||
|
<contexts
|
||||||
|
file="context.xml">
|
||||||
|
</contexts>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.themes">
|
||||||
|
<fontDefinition
|
||||||
|
id="com.wudsn.ide.tst.fontDefinition1"
|
||||||
|
label="label">
|
||||||
|
<fontValue
|
||||||
|
value="com.wudsn.ide.tst.fontValue1">
|
||||||
|
</fontValue>
|
||||||
|
</fontDefinition>
|
||||||
|
</extension>
|
||||||
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -1,19 +1,32 @@
|
||||||
package com.wudsn.ide.tst.editors;
|
package com.wudsn.ide.tst.editors;
|
||||||
|
|
||||||
import org.eclipse.swt.graphics.Device;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Display;
|
import org.eclipse.ui.PlatformUI;
|
||||||
import org.eclipse.ui.editors.text.TextEditor;
|
import org.eclipse.ui.editors.text.TextEditor;
|
||||||
|
import org.eclipse.ui.texteditor.AbstractDecoratedTextEditor;
|
||||||
|
import org.eclipse.swt.graphics.Font;
|
||||||
|
import com.wudsn.ide.base.hardware.HardwareCharacterSet;
|
||||||
|
|
||||||
public class ATASCIIEditor extends TextEditor {
|
public class ATASCIIEditor extends AbstractDecoratedTextEditor {
|
||||||
|
|
||||||
public ATASCIIEditor() {
|
public ATASCIIEditor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
Display display = Display.getDefault();
|
setDocumentProvider(new ATASCIDocumentProvider());
|
||||||
Device device = display;
|
|
||||||
device.loadFont("C:\\Users\\D025328\\Documents\\Eclipse\\workspace.jac\\com.wudsn.ide.hex\\fonts\\atari8\\ATARCC__.TTF");
|
|
||||||
setDocumentProvider(new ATASCIDocumentProvider());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* @see
|
||||||
|
* org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(Composite)
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void createPartControl(Composite parent) {
|
||||||
|
|
||||||
|
super.createPartControl(parent);
|
||||||
|
// Font font = HardwareCharacterSet.ATARI_ATASCII.getFont();
|
||||||
|
// get
|
||||||
|
// PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, "message");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user