public class ParseCurlCommandAction extends AbstractAction implements MenuCreator, ActionListener
MenuCreator.MENU_LOCATION| Modifier and Type | Field and Description |
|---|---|
static String |
IMPORT_CURL |
| Constructor and Description |
|---|
ParseCurlCommandAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
String |
createCommentText(BasicCurlParser.Request request) |
void |
doAction(ActionEvent e) |
Set<String> |
getActionNames() |
JMenuItem[] |
getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuItems to be added in location menu
|
JMenu[] |
getTopLevelMenus() |
void |
localeChanged()
Update Top Level menu on Locale Change
|
boolean |
localeChanged(MenuElement menu) |
List<BasicCurlParser.Request> |
parseCommands(boolean isReadFromFile,
List<String> commandsList) |
List<String> |
readFromFile(String pathname) |
List<String> |
readFromTextPanel(String commands) |
getParentFrame, popupCheckExistingFileListener, popupShouldSavepublic static final String IMPORT_CURL
public void doAction(ActionEvent e)
doAction in interface CommanddoAction in class AbstractActionCommand.doAction(ActionEvent)public JMenuItem[] getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuCreatorgetMenuItemsAtLocation in interface MenuCreatorlocation - in top menuJMenuItempublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic List<BasicCurlParser.Request> parseCommands(boolean isReadFromFile, List<String> commandsList)
public Set<String> getActionNames()
getActionNames in interface Commandpublic JMenu[] getTopLevelMenus()
getTopLevelMenus in interface MenuCreatorpublic boolean localeChanged(MenuElement menu)
localeChanged in interface MenuCreatormenu - MenuElementpublic void localeChanged()
MenuCreatorlocaleChanged in interface MenuCreatorpublic List<String> readFromFile(String pathname) throws IOException
IOExceptionpublic String createCommentText(BasicCurlParser.Request request)
Copyright © 1998-2020 Apache Software Foundation. All Rights Reserved.