|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.drools.eclipse.DroolsEclipsePlugin
public class DroolsEclipsePlugin
The main plugin class to be used in the desktop.
| Field Summary | |
|---|---|
static String |
BUILD_RESULT_PACKAGE
|
static String |
BUILD_RESULT_PACKAGE_DESCR
|
static int |
INTERNAL_ERROR
|
static String |
PLUGIN_ID
|
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
DroolsEclipsePlugin()
The constructor. |
|
| Method Summary | |
|---|---|
void |
clearCache()
|
org.eclipse.core.resources.IResource |
findProcessResource(String processId)
|
DRLInfo |
generateParsedResource(String content,
org.eclipse.core.resources.IResource resource,
boolean useCache,
boolean compile)
|
org.eclipse.swt.graphics.Color |
getColor(String type)
|
static DroolsEclipsePlugin |
getDefault()
Returns the shared instance. |
DRLInfo.FunctionInfo |
getFunctionInfoByClass(String functionClassName)
|
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(String path)
Returns an image descriptor for the image file at the given plug-in relative path. |
ProcessInfo |
getProcessInfo(String processId)
|
ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle, |
static String |
getResourceString(String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
org.eclipse.ui.forms.FormColors |
getRuleBuilderFormColors(org.eclipse.swt.widgets.Display display)
Form Colors, default colors for now. |
DRLInfo.RuleInfo |
getRuleInfoByClass(String ruleClassName)
|
Map<ProcessInfo,List<org.jbpm.workflow.core.node.RuleSetNode>> |
getRuleSetNodeByFlowGroup(String flowGroup)
|
static String |
getUniqueIdentifier()
|
protected void |
initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
|
void |
invalidateResource(org.eclipse.core.resources.IResource resource)
|
static void |
log(org.eclipse.core.runtime.IStatus status)
|
static void |
log(Throwable t)
|
DRLInfo |
parseBRLResource(String content,
org.eclipse.core.resources.IResource resource)
|
DRLInfo |
parseGDSTResource(String content,
org.eclipse.core.resources.IResource resource)
|
ProcessInfo |
parseProcess(org.jbpm.process.core.Process process,
org.eclipse.core.resources.IResource resource,
org.drools.compiler.PackageBuilderConfiguration config)
|
ProcessInfo |
parseProcess(String input,
org.eclipse.core.resources.IResource resource)
|
DRLInfo |
parseResource(AbstractRuleEditor editor,
boolean useUnsavedContent,
boolean compile)
|
DRLInfo |
parseResource(org.eclipse.core.resources.IResource resource,
boolean compile)
|
List<DRLInfo> |
parseResources(List<ResourceDescr> resources)
|
DRLInfo |
parseXLSResource(String content,
org.eclipse.core.resources.IResource resource)
|
boolean |
resetForceFullBuild()
|
void |
setColor(String type,
org.eclipse.swt.graphics.Color color)
|
void |
setForceFullBuild()
|
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
| Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
|---|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup |
| Methods inherited from class org.eclipse.core.runtime.Plugin |
|---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INTERNAL_ERROR
public static final String PLUGIN_ID
public static final String BUILD_RESULT_PACKAGE
public static final String BUILD_RESULT_PACKAGE_DESCR
| Constructor Detail |
|---|
public DroolsEclipsePlugin()
| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.ui.plugin.AbstractUIPluginExceptionpublic void clearCache()
public void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.ui.plugin.AbstractUIPluginExceptionpublic static DroolsEclipsePlugin getDefault()
public static String getResourceString(String key)
public ResourceBundle getResourceBundle()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
path - the path
public static String getUniqueIdentifier()
public static void log(Throwable t)
public static void log(org.eclipse.core.runtime.IStatus status)
public org.eclipse.swt.graphics.Color getColor(String type)
public void setColor(String type,
org.eclipse.swt.graphics.Color color)
protected void initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
initializeDefaultPreferences in class org.eclipse.ui.plugin.AbstractUIPluginpublic List<DRLInfo> parseResources(List<ResourceDescr> resources)
public DRLInfo parseResource(org.eclipse.core.resources.IResource resource,
boolean compile)
throws org.drools.compiler.DroolsParserException
org.drools.compiler.DroolsParserException
public DRLInfo parseResource(AbstractRuleEditor editor,
boolean useUnsavedContent,
boolean compile)
throws org.drools.compiler.DroolsParserException
org.drools.compiler.DroolsParserException
public DRLInfo parseXLSResource(String content,
org.eclipse.core.resources.IResource resource)
throws org.drools.compiler.DroolsParserException
org.drools.compiler.DroolsParserException
public DRLInfo parseBRLResource(String content,
org.eclipse.core.resources.IResource resource)
throws org.drools.compiler.DroolsParserException
org.drools.compiler.DroolsParserException
public DRLInfo parseGDSTResource(String content,
org.eclipse.core.resources.IResource resource)
throws org.drools.compiler.DroolsParserException
org.drools.compiler.DroolsParserExceptionpublic void invalidateResource(org.eclipse.core.resources.IResource resource)
public DRLInfo generateParsedResource(String content,
org.eclipse.core.resources.IResource resource,
boolean useCache,
boolean compile)
throws org.drools.compiler.DroolsParserException
org.drools.compiler.DroolsParserExceptionpublic DRLInfo.RuleInfo getRuleInfoByClass(String ruleClassName)
public DRLInfo.FunctionInfo getFunctionInfoByClass(String functionClassName)
public ProcessInfo parseProcess(String input,
org.eclipse.core.resources.IResource resource)
throws Exception
Exceptionpublic ProcessInfo getProcessInfo(String processId)
public Map<ProcessInfo,List<org.jbpm.workflow.core.node.RuleSetNode>> getRuleSetNodeByFlowGroup(String flowGroup)
public org.eclipse.core.resources.IResource findProcessResource(String processId)
public ProcessInfo parseProcess(org.jbpm.process.core.Process process,
org.eclipse.core.resources.IResource resource,
org.drools.compiler.PackageBuilderConfiguration config)
public org.eclipse.ui.forms.FormColors getRuleBuilderFormColors(org.eclipse.swt.widgets.Display display)
display -
public boolean resetForceFullBuild()
public void setForceFullBuild()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||