JXMLPad - Tutorial

Creating a JSP 1.2 editor

STEP 3/5: Disable invalid actions

Previous step | Next Step


Inside the JSPEditor constructor after the previous part :

// Disable the format and search action as sample for disabling action
ActionModel.setEnabledAction( ActionModel.FORMAT_ACTION, false );
ActionModel.setEnabledAction( ActionModel.SEARCH_ACTION, false );