Add language plugin com.wudsn.ide.lng

This commit is contained in:
peterdell 2021-09-18 02:04:31 +02:00
parent ef2ce4ecac
commit c7dabce2f3
11 changed files with 143 additions and 3 deletions

View File

@ -30,7 +30,7 @@ import org.eclipse.swt.widgets.Display;
import com.wudsn.ide.base.common.StringUtility;
/**
* Convertdf go connvert the class TextAttributes into a PreferenceStore
* Converter to convert the class TextAttributes into a PreferenceStore
* compatible form.
*
* @author Peter Dell

View File

@ -390,4 +390,11 @@ POSSIBILITY OF SUCH DAMAGES.
version="0.0.0"
unpack="false"/>
<plugin
id="com.wudsn.ide.lng"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>

View File

@ -5,9 +5,9 @@ Bundle-SymbolicName: com.wudsn.ide.hex;singleton:=true
Bundle-Version: 1.7.2.qualifier
Bundle-Activator: com.wudsn.ide.hex.HexPlugin
Bundle-Vendor: Peter Dell
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.ui,
org.eclipse.ui.ide,
org.eclipse.ui.views,
com.wudsn.ide.base

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry combineaccessrules="false" kind="src" path="/com.wudsn.ide.base"/>
<classpathentry kind="output" path="bin"/>
</classpath>

1
com.wudsn.ide.lng/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/bin/

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.wudsn.ide.lng</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11

View File

@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: WUDSN IDE Language Plugin
Bundle-SymbolicName: com.wudsn.ide.lng;singleton:=true
Bundle-Version: 1.7.2.qualifier
Bundle-Vendor: Peter Dell
Automatic-Module-Name: com.wudsn.ide.lang
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-ActivationPolicy: lazy
Bundle-Activator: com.wudsn.ide.lng.LanguagePlugin
Require-Bundle: org.eclipse.core.resources,
org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.ui.ide,
org.eclipse.ui.views,
com.wudsn.ide.base

View File

@ -0,0 +1,4 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.

View File

@ -0,0 +1,62 @@
package com.wudsn.ide.lng;
import org.osgi.framework.BundleContext;
import com.wudsn.ide.base.common.AbstractIDEPlugin;
/**
* The activator class controls the plug-in life cycle
*/
public class LanguagePlugin extends AbstractIDEPlugin {
// The plug-in ID
public static final String ID = "com.wudsn.ide.lng"; //$NON-NLS-1$
// The shared instance
private static LanguagePlugin plugin;
/**
* The constructor
*/
public LanguagePlugin() {
}
/**
* {@inheritDoc}
*/
@Override
protected String getPluginId() {
return ID;
}
/**
* {@inheritDoc}
*/
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/**
* {@inheritDoc}
*/
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Gets the shared plugin instance
*
* @return The plug-in, not <code>null</code>.
*/
public static LanguagePlugin getInstance() {
if (plugin == null) {
throw new IllegalStateException("Plugin not initialized or already stopped");
}
return plugin;
}
}

View File

@ -10,6 +10,7 @@ call :check com.wudsn.ide.base
call :check com.wudsn.ide.hex
call :check com.wudsn.ide.dsk
call :check com.wudsn.ide.gfx
call :check com.wudsn.ide.lng
call :check com.wudsn.ide.pas
call :check com.wudsn.ide.snd