public class ProjectSettingsStepBase<T> extends AbstractActionWithPanel implements DumbAware, Disposable
AnAction.TransparentUpdate
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected AbstractNewProjectStep.AbstractCallback<T> |
myCallback |
protected javax.swing.JButton |
myCreateButton |
protected javax.swing.JLabel |
myErrorLabel |
protected NotNullLazyValue<ProjectGeneratorPeer<T>> |
myLazyGeneratorPeer |
protected TextFieldWithBrowseButton |
myLocationField |
protected java.io.File |
myProjectDirectory |
protected DirectoryProjectGenerator<T> |
myProjectGenerator |
ACTIONS_KEY, EMPTY_ARRAY
Constructor and Description |
---|
ProjectSettingsStepBase(DirectoryProjectGenerator<T> projectGenerator,
AbstractNewProjectStep.AbstractCallback<T> callback) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
boolean |
checkValid() |
protected javax.swing.JButton |
createActionButton() |
protected javax.swing.JPanel |
createAdvancedSettings() |
protected javax.swing.JPanel |
createAndFillContentPanel() |
protected javax.swing.JPanel |
createBasePanel() |
protected java.awt.event.ActionListener |
createCloseActionListener() |
protected javax.swing.JPanel |
createContentPanelWithAdvancedSettingsPanel() |
protected javax.swing.JLabel |
createErrorLabel() |
protected NotNullLazyValue<ProjectGeneratorPeer<T>> |
createLazyPeer() |
protected LabeledComponent<TextFieldWithBrowseButton> |
createLocationComponent() |
javax.swing.JPanel |
createPanel() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected java.io.File |
findSequentNonExistingUntitled() |
javax.swing.JButton |
getActionButton() |
protected javax.swing.Icon |
getIcon() |
protected ProjectGeneratorPeer<T> |
getPeer() |
DirectoryProjectGenerator<T> |
getProjectGenerator() |
java.lang.String |
getProjectLocation() |
protected void |
initGeneratorListeners() |
void |
onPanelSelected() |
protected void |
registerValidators() |
void |
setErrorText(java.lang.String text) |
void |
setLocation(java.lang.String location) |
void |
setWarningText(java.lang.String text) |
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, update, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDumbAware
protected DirectoryProjectGenerator<T> myProjectGenerator
protected AbstractNewProjectStep.AbstractCallback<T> myCallback
protected TextFieldWithBrowseButton myLocationField
protected java.io.File myProjectDirectory
protected javax.swing.JButton myCreateButton
protected javax.swing.JLabel myErrorLabel
protected NotNullLazyValue<ProjectGeneratorPeer<T>> myLazyGeneratorPeer
public ProjectSettingsStepBase(DirectoryProjectGenerator<T> projectGenerator, AbstractNewProjectStep.AbstractCallback<T> callback)
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placepublic void onPanelSelected()
onPanelSelected
in class AbstractActionWithPanel
public javax.swing.JButton getActionButton()
getActionButton
in class AbstractActionWithPanel
protected NotNullLazyValue<ProjectGeneratorPeer<T>> createLazyPeer()
public javax.swing.JPanel createPanel()
createPanel
in class AbstractActionWithPanel
protected final javax.swing.JLabel createErrorLabel()
protected final javax.swing.JButton createActionButton()
protected final java.awt.event.ActionListener createCloseActionListener()
protected ProjectGeneratorPeer<T> getPeer()
protected final javax.swing.JPanel createContentPanelWithAdvancedSettingsPanel()
protected void initGeneratorListeners()
protected final javax.swing.Icon getIcon()
protected javax.swing.JPanel createBasePanel()
protected void registerValidators()
public boolean checkValid()
protected javax.swing.JPanel createAndFillContentPanel()
public void setErrorText(java.lang.String text)
public void setWarningText(java.lang.String text)
protected javax.swing.JPanel createAdvancedSettings()
public DirectoryProjectGenerator<T> getProjectGenerator()
public final java.lang.String getProjectLocation()
public final void setLocation(java.lang.String location)
protected final LabeledComponent<TextFieldWithBrowseButton> createLocationComponent()
protected java.io.File findSequentNonExistingUntitled()
public void dispose()
Disposable
dispose
in interface Disposable