Skip to content
Snippets Groups Projects
Commit 83c642b6 authored by Tom Zentek's avatar Tom Zentek
Browse files

No commit message

No commit message
parent 23583e3d
No related branches found
No related tags found
No related merge requests found
<?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-1.6"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="C:/Users/Alexander/Desktop/jdom.jar"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.universal.tools.configurationExtractor</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>
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
icons/,\
lib/jdom.jar
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
label="Sample Action Set"
visible="true"
id="Configuration_Extractor.actionSet">
<menu
label="Configuration &amp;"
id="sampleMenu">
<separator
name="sampleGroup">
</separator>
</menu>
<action
label="&amp;Extract Configuration"
icon="icons/icon_config.gif"
class="org.universal.tools.configurationExtractor.SampleAction"
tooltip="Extract Configuration"
menubarPath="sampleMenu/sampleGroup"
toolbarPath="sampleGroup"
id="org.universal.tools.configurationExtractor.SampleAction">
</action>
</actionSet>
</extension>
</plugin>
package org.universal.tools.configurationExtractor;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/*
* This comment will be removed later
* $-panel_element;
* id:notificationTimeout;
* type:TEXTBOX;
* label:Timeout bis zur Benachrichtigung;
* title:Timeout bis zur Benachrichtigung;
* standardvalue:42
* -$
*/
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "Configuration_Extractor"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
/**
* The constructor
*/
public Activator() {
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
/**
* Returns an image descriptor for the image file at the given
* plug-in relative path
*
* @param path the path
* @return the image descriptor
*/
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}
}
package org.universal.tools.configurationExtractor;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class Annotations {
@Retention(RetentionPolicy.RUNTIME)
public @interface Root {
String name();
String title();
String info();
}
@Retention(RetentionPolicy.RUNTIME)
public @interface LstPanel {
String id();
String title();
}
@Retention(RetentionPolicy.RUNTIME)
public @interface Lst {
String label();
String title();
long limit();
String domain();
}
@Retention(RetentionPolicy.RUNTIME)
public @interface ElementL {
String id();
enum Type {CHECKBOX,DROPDOWNLIST,LABEL,LISTBOX,MULTISELECTLISTBOX,RADIOBUTTONGROUP,TEXTAREA,TEXTBOX};
Type type();
String label();
String title();
String standardvalue() default " ";
String domain() default " ";
}
@Retention(RetentionPolicy.RUNTIME)
public @interface ElementP {
String id();
enum Type {CHECKBOX,DROPDOWNLIST,LABEL,LISTBOX,MULTISELECTLISTBOX,RADIOBUTTONGROUP,TEXTAREA,TEXTBOX};
Type type();
String label();
String title();
String standardvalue() default " ";
String domain() default " ";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment