Package com.iizigo.run.impl
Class EclipseRuntimeBuilder
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.iizigo.run.impl.EclipseRuntimeBuilder
- All Implemented Interfaces:
- ITooltipPropList,- IRuntimeBuilder,- org.osgi.framework.BundleActivator
The activator class controls the plug-in life cycle.
- Field SummaryFields- Fields inherited from class org.eclipse.core.runtime.Plugin- PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME- Fields inherited from interface com.iizigo.run.IRuntimeBuilder- FILENAME
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- buildRuntime- (IProgressMonitor monitor, RuntimeBuilderSettings settings, IPrintAdapter printer, boolean isVerbose) Runs the job to create the iiziRun program.- createNew- (ModuleModel module, RuntimeBuilderInitialSetup setup) Creates a new runtime builder property instance.- void- createPage- (Composite parent, ModuleModel module, IFile runtimeBuilderFile, EditorRuntimeBuilderProps props, EditorRuntimeBuilderPropertyPage parentPage) Creates the property page.Gets the code modifier.- getEditProperties- (PropCnr property) Gets the property definitions.- static EclipseRuntimeBuilderReturns the shared instance.Gets the Setup used for iiziGo, subclasses must override and provide their instance.- getRequiredTextIDs- (RuntimeBuilderSettings settings) Gets the required text IDs for the text file.Gets the list of property items that should be displayed.- boolean- initializeRuntimeBuilder- (Shell shell, EditorRuntimeBuilderProps props, RuntimeBuilderInitialSetup setup, EditorRuntimeBuilderPropertyPage page) Creates the initial runtime builder stuff.- void- onErrors- (EditorRuntimeBuilderProps props, boolean ok) Updates for errors.- boolean- processRemoteEvent- (EditorRuntimeBuilderProps props, File projectDir, RemoteEvent event) Processes a remote event from the server.- void- start- (org.osgi.framework.BundleContext context) - void- stop- (org.osgi.framework.BundleContext context) - void- verify- (EditorRuntimeBuilderProps props, File projectDir, PropVerification verification) Verifies this property container.- Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin- createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup- Methods inherited from class org.eclipse.core.runtime.Plugin- find, find, getBundle, 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- Methods inherited from interface com.iizigo.prop.tooltip.ITooltipPropList- wouldAddTooltipInfo
- Field Details- PLUGIN_IDThe plug-in ID: "com.iizigo.run".- See Also:
 
 
- Constructor Details- EclipseRuntimeBuilderpublic EclipseRuntimeBuilder()The constructor.
 
- Method Details- start- Specified by:
- startin interface- org.osgi.framework.BundleActivator
- Overrides:
- startin class- AbstractUIPlugin
- Throws:
- Exception
 
- stop- Specified by:
- stopin interface- org.osgi.framework.BundleActivator
- Overrides:
- stopin class- AbstractUIPlugin
- Throws:
- Exception
 
- getInstanceReturns the shared instance.- Returns:
- The shared instance.
 
- initializeRuntimeBuilderpublic boolean initializeRuntimeBuilder- (Shell shell, EditorRuntimeBuilderProps props, RuntimeBuilderInitialSetup setup, EditorRuntimeBuilderPropertyPage page) Creates the initial runtime builder stuff.- Specified by:
- initializeRuntimeBuilderin interface- IRuntimeBuilder
- Parameters:
- shell- The shell.
- props- The properties.
- setup- The setup settings.
- page- The settings page, null if not called from the page "Enable" checkbox.
- Returns:
- true for success to continue.
 
- createPagepublic void createPage- (Composite parent, ModuleModel module, IFile runtimeBuilderFile, EditorRuntimeBuilderProps props, EditorRuntimeBuilderPropertyPage parentPage) Creates the property page.- Specified by:
- createPagein interface- IRuntimeBuilder
- Parameters:
- parent- Parent composite initialized with a grid layout of 1 column.
- module- The module model.
- runtimeBuilderFile- The .iiziRun file.
- props- The runtime builder properties being edited.
- parentPage- The parent page.
 
- onErrorsUpdates for errors.- Specified by:
- onErrorsin interface- IRuntimeBuilder
- Parameters:
- props- The properties.
- ok- Flag for OK, i.e. no errors.
 
- getPropertyEditorSetupGets the Setup used for iiziGo, subclasses must override and provide their instance.- Specified by:
- getPropertyEditorSetupin interface- IRuntimeBuilder
- Returns:
- The instance of the PropertyEditorSetup.
 
- getEditPropertiesGets the property definitions.- Specified by:
- getEditPropertiesin interface- IRuntimeBuilder
- Parameters:
- property- The property container being edited.
- Returns:
- The PropCnrEditorProperties instance.
 
- createNewCreates a new runtime builder property instance.- Specified by:
- createNewin interface- IRuntimeBuilder
- Parameters:
- module- The module mode.
- setup- The setup settings.
- Returns:
- The new instance.
 
- getTooltipPropertyListGets the list of property items that should be displayed.- Specified by:
- getTooltipPropertyListin interface- ITooltipPropList
- Returns:
- The list, or null for no tooltip.
 
- getCodeModifierGets the code modifier.- Returns:
- The code modifier, or null for failure (it's been logged).
 
- getRequiredTextIDsGets the required text IDs for the text file.- Specified by:
- getRequiredTextIDsin interface- IRuntimeBuilder
- Parameters:
- settings- The runtime builder settings.
- Returns:
- The set of text IDs, null means failed to read it from the "www/js/msg.js" file. In case nullis returned, it has been logged in the server.
 
- verifyVerifies this property container. The check performed is the extension of classes and that no circular reference is present.- Specified by:
- verifyin interface- IRuntimeBuilder
- Parameters:
- props- The runtime builder properties being edited.
- projectDir- The project directory.
- verification- The property verification class.
 
- buildRuntimepublic IStatus buildRuntime- (IProgressMonitor monitor, RuntimeBuilderSettings settings, IPrintAdapter printer, boolean isVerbose) throws CoreException, CancelException, BuildException, IOException, PropException Runs the job to create the iiziRun program.- Specified by:
- buildRuntimein interface- IRuntimeBuilder
- Parameters:
- monitor- The progress monitor initialized with a job of 100 ticks.
- settings- The settings.
- printer- The printer for output.
- isVerbose- If the job should be verbose or not.
- Returns:
- The status of the job.
- Throws:
- CoreException- For core exceptions.
- CancelException- When job is canceled.
- BuildException- For build exceptions.
- IOException- For I/O errors.
- PropException- For property errors.
 
- processRemoteEventpublic boolean processRemoteEvent- (EditorRuntimeBuilderProps props, File projectDir, RemoteEvent event) Processes a remote event from the server.- Specified by:
- processRemoteEventin interface- IRuntimeBuilder
- Parameters:
- props- The runtime builder properties being edited.
- projectDir- The project directory.
- event- The remote event.
- Returns:
- true if processed, false if not.