Package chemaxon.marvin.util.codeassist
Class CodeAssistFactory
java.lang.Object
chemaxon.marvin.util.codeassist.CodeAssistFactory
Manages the creation of Chemical Terms related components, such as the Code Assist text field,
toolbars, favorite and macro handling components, and validation response component.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Helper class forCodeAssistFactory
to set upCodeAssist
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JTextPane
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane.static JTextPane
createChemicalTermsTextPane
(boolean helpText) Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.static JTextPane
createChemicalTermsTextPane
(boolean helpText, boolean autoPopup) Deprecated, for removal: This API element is subject to removal in a future version.static JTextPane
createChemicalTermsTextPane
(boolean helpText, boolean autoPopup, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(boolean helpText, boolean autoPopup, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(boolean helpText, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.static JTextPane
createChemicalTermsTextPane
(chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane.static JTextPane
Creates aJTextPane
instance with code assist capabilities.static JTextPane
createChemicalTermsTextPane
(String prefix) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane.static JTextPane
createChemicalTermsTextPane
(String prefix, boolean helpText) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-spacestatic JTextPane
createChemicalTermsTextPane
(String prefix, boolean helpText, boolean autoPopup) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(String prefix, boolean helpText, boolean autoPopup, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(String prefix, boolean helpText, boolean autoPopup, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(String prefix, boolean helpText, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-spacestatic JTextPane
createChemicalTermsTextPane
(String prefix, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane.static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-spacestatic JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, boolean expertMode, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.protected static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, boolean expertMode, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context, boolean addServices) Creates aJTextPane
instance with code assist capabilities.static JTextPane
createChemicalTermsTextPane
(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.static JToolBar
getCusromToolBar
(JTextPane textPane, String toolbarID) Returns a custom toolbar for textPane instance NOTE: textPane have to be created with this factoryCreates and returns the favorites combo instancestatic JToolBar
getOperatorToolBar
(JTextPane textPane) Returns the operator toolbar for textPane instance NOTE: textPane have to be created with this factorystatic JToolBar
getToolBar
(JTextPane textPane) Returns the default toolbar for textPane instance NOTE: textPane have to be created with this factorystatic JLabel
getValidationResultLabel
(JTextPane textPane) Returns aJLabel
instance, dinamically showing validation result of textPane NOTE: will validate against Molecular Context.static JLabel
getValidationResultLabel
(JTextPane textPane, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Returns aJLabel
instance, dinamically showing validation result of textPane NOTE: textPane have to be created with this factorystatic JLabel
Returns aJLabel
instance, dinamically showing validation result of textPane NOTE: will validate against Reaction Context.void
insertText
(String text) Inserts the given string to textPane at caret position.static void
Forces allCodeAssist
instances created with this factory to reload the code completion data.void
Shows the modal macro manager dialog, setting current selection as new macrovoid
Shows the modal insert function dialogvoid
Shows the modal favourite manager dialogvoid
Shows the modal macro manager dialog
-
Field Details
-
PROPERTY_KEY_FACTORY_INSTANCE
property key for factory instances- See Also:
-
-
Method Details
-
createChemicalTermsTextPane
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane. Molecule context will be used.- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane.- Parameters:
context
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.- Parameters:
helpText
- flags if default help text is shown in empty textpane- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(boolean helpText, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.- Parameters:
helpText
- flags if default help text is shown in empty textpanecontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(boolean helpText, boolean autoPopup) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
helpText
- flags if default help text is shown in empty textpaneautoPopup
- indicates available function list pops up on any keypress- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(boolean helpText, boolean autoPopup, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
helpText
- flags if default help text is shown in empty textpaneautoPopup
- indicates available function list pops up on any keypressexpertMode
- when true, code assist is in expert mode, showing more detailed informations like arguments- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(boolean helpText, boolean autoPopup, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
helpText
- flags if default help text is shown in empty textpaneautoPopup
- indicates available function list pops up on any keypresscontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane.- Parameters:
prefix
- is the code assist invoke prefix- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space.
Default help text will be shown in empty textpane.- Parameters:
prefix
- is the code assist invoke prefixcontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, boolean helpText) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space- Parameters:
prefix
- is the code assist invoke prefixhelpText
- flags if default help text is shown in empty textpane- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, boolean helpText, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space- Parameters:
prefix
- is the code assist invoke prefixhelpText
- flags if default help text is shown in empty textpanecontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, boolean helpText, boolean autoPopup) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- flags if default help text is shown in empty textpaneautoPopup
- indicates available function list pops up on any keypress- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, boolean helpText, boolean autoPopup, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- flags if default help text is shown in empty textpaneautoPopup
- indicates available function list pops up on any keypressexpertMode
- when true, code assist is in expert mode, showing more detailed informations like arguments- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, boolean helpText, boolean autoPopup, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- flags if default help text is shown in empty textpaneautoPopup
- indicates available function list pops up on any keypresscontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.
Available function list will be shown when typing ctrl-space- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpane- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- indicates available function list pops up on any keypress- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- indicates available function list pops up on any keypressexpertMode
- when true, code assist is in expert mode, showing more detailed informations like arguments- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.
Default toolbar configuration will be used for toolbars.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- indicates available function list pops up on any keypresscontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- available function list pops up on any keypresstoolbarConfigPath
- path to toolbars configuration xml- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, boolean expertMode) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- available function list pops up on any keypresstoolbarConfigPath
- path to toolbars configuration xmlexpertMode
- when true, code assist is in expert mode, showing more detailed informations like arguments- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- available function list pops up on any keypresstoolbarConfigPath
- path to toolbars configuration xmlcontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, boolean expertMode, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Deprecated, for removal: This API element is subject to removal in a future version.usecreateChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- available function list pops up on any keypresstoolbarConfigPath
- path to toolbars configuration xmlexpertMode
- when true, code assist is in expert mode, showing more detailed informations like argumentscontext
- is the data provider context- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
public static JTextPane createChemicalTermsTextPane(CodeAssistFactory.CodeAssistConfiguration config) Creates aJTextPane
instance with code assist capabilities.- Parameters:
config
- the behaviour and display configuration- Returns:
JTextPane
instance with code assist capabilities.
-
createChemicalTermsTextPane
protected static JTextPane createChemicalTermsTextPane(String prefix, String helpText, boolean autoPopup, String toolbarConfigPath, boolean expertMode, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context, boolean addServices) Creates aJTextPane
instance with code assist capabilities.- Parameters:
prefix
- is the code assist invoke prefixhelpText
- is the text displayed in empty textpaneautoPopup
- available function list pops up on any keypresstoolbarConfigPath
- path to toolbars configuration xmlexpertMode
- when true, code assist is in expert mode, showing more detailed informations like argumentscontext
- is the data provider contextaddServices
- iftrue
services are added to the completion list- Returns:
JTextPane
instance with code assist capabilities.- Since:
- 5.6
-
getToolBar
Returns the default toolbar for textPane instance NOTE: textPane have to be created with this factory- Parameters:
textPane
- is the textPane requesting toolbar for- Returns:
- the default toolbar for textPane instance
-
getOperatorToolBar
Returns the operator toolbar for textPane instance NOTE: textPane have to be created with this factory- Parameters:
textPane
- is the textPane requesting toolbar for- Returns:
- the default toolbar for textPane instance
-
getCusromToolBar
Returns a custom toolbar for textPane instance NOTE: textPane have to be created with this factory- Parameters:
textPane
- is the textPane requesting toolbar fortoolbarID
- is the id of the custom toolbar defined in menu configuration xml- Returns:
- the custom toolbar for textPane instance
-
getValidationResultLabel
Returns aJLabel
instance, dinamically showing validation result of textPane NOTE: will validate against Molecular Context. NOTE: textPane have to be created with this factory- Parameters:
textPane
- is the textPane requesting validation label for- Returns:
- a
JLabel
instance - See Also:
-
getValidationResultLabelForReactionContext
Returns aJLabel
instance, dinamically showing validation result of textPane NOTE: will validate against Reaction Context. NOTE: textPane have to be created with this factory- Parameters:
textPane
- is the textPane requesting validation label for- Returns:
- a
JLabel
instance - See Also:
-
getValidationResultLabel
public static JLabel getValidationResultLabel(JTextPane textPane, chemaxon.marvin.util.codeassist.CodeAssistDataProvider.Context context) Returns aJLabel
instance, dinamically showing validation result of textPane NOTE: textPane have to be created with this factory- Parameters:
textPane
- is the textPane requesting validation label forcontext
- is the context used for validating- Returns:
- a
JLabel
instance
-
getFavoritesComboBox
Creates and returns the favorites combo instance- Returns:
- the favorites combo instance
-
showManageFavoritesDialog
public void showManageFavoritesDialog()Shows the modal favourite manager dialog -
showManageMacrosDialog
public void showManageMacrosDialog()Shows the modal macro manager dialog -
showInsertFunctionDialog
public void showInsertFunctionDialog()Shows the modal insert function dialog -
saveAsMacro
public void saveAsMacro()Shows the modal macro manager dialog, setting current selection as new macro -
insertText
Inserts the given string to textPane at caret position. Whitespaces will be added when necessary- Parameters:
text
- is the text to be inserted
-
reloadCodeCompletionData
public static void reloadCodeCompletionData()Forces allCodeAssist
instances created with this factory to reload the code completion data.- Since:
- 5.10
-
createChemicalTermsTextPane(CodeAssistConfiguration)
Creates aJTextPane
instance with code assist capabilities.Default toolbar configuration will be used for toolbars.