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

update source code + plug in for eclipse

parent ddbad410
No related branches found
No related tags found
No related merge requests found
Showing
with 1060 additions and 0 deletions
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
icons/,\
lib/jdom.jar
File added
<?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