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, popupShouldSave
public static final String IMPORT_CURL
public void doAction(ActionEvent e)
doAction
in interface Command
doAction
in class AbstractAction
Command.doAction(ActionEvent)
public JMenuItem[] getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuCreator
getMenuItemsAtLocation
in interface MenuCreator
location
- in top menuJMenuItem
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public List<BasicCurlParser.Request> parseCommands(boolean isReadFromFile, List<String> commandsList)
public Set<String> getActionNames()
getActionNames
in interface Command
public JMenu[] getTopLevelMenus()
getTopLevelMenus
in interface MenuCreator
public boolean localeChanged(MenuElement menu)
localeChanged
in interface MenuCreator
menu
- MenuElementpublic void localeChanged()
MenuCreator
localeChanged
in interface MenuCreator
public List<String> readFromFile(String pathname) throws IOException
IOException
public String createCommentText(BasicCurlParser.Request request)
Copyright (c) 1998-2021 Apache Software Foundation. All Rights Reserved.