public class MavenRepositorySearchDialog extends AbstractMavenDialog
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ArtifactKey> |
artifacts |
private org.eclipse.swt.widgets.Combo |
comScope |
static java.lang.String[] |
DEP_MANAGEMENT_SCOPES |
private static java.lang.String |
DIALOG_SETTINGS |
private boolean |
ignoreTextChange |
private java.util.Map<ArtifactKey,java.lang.String> |
managed
keys = artifact keys, values = type
|
private org.apache.maven.project.MavenProject |
mavenproject |
(package private) MavenPomSelectionComponent |
pomSelectionComponent |
private org.eclipse.core.resources.IProject |
project |
private java.lang.String |
queryText |
private java.lang.String |
queryType
One of
IIndex.SEARCH_ARTIFACT , IIndex#SEARCH_CLASS_NAME , |
static java.lang.String[] |
SCOPES |
private IndexedArtifact |
selectedIndexedArtifact |
private IndexedArtifactFile |
selectedIndexedArtifactFile |
private java.lang.String |
selectedScope |
private boolean |
showCoords |
private boolean |
showScope |
private org.eclipse.swt.widgets.Text |
txtArtifactId |
private org.eclipse.swt.widgets.Text |
txtGroupId |
private org.eclipse.swt.widgets.Text |
txtVersion |
KEY_HEIGHT, KEY_WIDTH, settings
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
Modifier | Constructor and Description |
---|---|
private |
MavenRepositorySearchDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title,
java.lang.String queryType,
java.util.Set<ArtifactKey> artifacts,
java.util.Map<ArtifactKey,java.lang.String> managed,
boolean showScope,
org.apache.maven.project.MavenProject mp,
org.eclipse.core.resources.IProject p,
boolean showCoordinates) |
Modifier and Type | Method and Description |
---|---|
private IndexedArtifact |
cloneIndexedArtifact(IndexedArtifact old,
java.lang.String groupId,
java.lang.String artifactId) |
private IndexedArtifactFile |
cloneIndexedArtifactFile(IndexedArtifactFile old,
java.lang.String type) |
private IndexedArtifactFile |
cloneIndexedArtifactFile(IndexedArtifactFile old,
java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version) |
protected void |
computeResult() |
private void |
computeResultFromField(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version) |
private void |
computeResultFromTree() |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
private org.eclipse.swt.widgets.Composite |
createGAVControls(org.eclipse.swt.widgets.Composite parent)
Sets the up group-artifact-version controls
|
static MavenRepositorySearchDialog |
createOpenPomDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title) |
static MavenRepositorySearchDialog |
createSearchDependencyDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title,
org.apache.maven.project.MavenProject mp,
org.eclipse.core.resources.IProject p,
boolean inManagedSection) |
static MavenRepositorySearchDialog |
createSearchParentDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title,
org.apache.maven.project.MavenProject mp,
org.eclipse.core.resources.IProject p) |
static MavenRepositorySearchDialog |
createSearchPluginDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title,
org.apache.maven.project.MavenProject mp,
org.eclipse.core.resources.IProject p,
boolean inManagedSection) |
IndexedArtifact |
getSelectedIndexedArtifact() |
IndexedArtifactFile |
getSelectedIndexedArtifactFile() |
java.lang.String |
getSelectedScope() |
protected boolean |
hasDisposedTextField() |
(package private) void |
okPressedDelegate() |
void |
setQuery(java.lang.String query) |
(package private) void |
updateStatusDelegate(org.eclipse.core.runtime.IStatus status) |
(package private) org.eclipse.core.runtime.IStatus |
validateArtifactEntries() |
private java.lang.String |
valueOrNull(java.lang.String text) |
close, getInitialLocation, getInitialSize, readSettings
configureShell, create, createButtonBar, getFirstResult, okPressed, setImage, setResult, setStatusLineAboveButtons, updateButtonsEnableState, updateStatus
createButtonsForButtonBar, createMessageArea, getDialogBoundsSettings, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitle
closeTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
private static final java.lang.String DIALOG_SETTINGS
public static final java.lang.String[] SCOPES
public static final java.lang.String[] DEP_MANAGEMENT_SCOPES
private final boolean showScope
private final java.util.Set<ArtifactKey> artifacts
private final java.util.Map<ArtifactKey,java.lang.String> managed
private final java.lang.String queryType
IIndex.SEARCH_ARTIFACT
, IIndex#SEARCH_CLASS_NAME
,private java.lang.String queryText
MavenPomSelectionComponent pomSelectionComponent
private IndexedArtifact selectedIndexedArtifact
private IndexedArtifactFile selectedIndexedArtifactFile
private java.lang.String selectedScope
private org.eclipse.swt.widgets.Combo comScope
private org.eclipse.swt.widgets.Text txtGroupId
private org.eclipse.swt.widgets.Text txtArtifactId
private org.eclipse.swt.widgets.Text txtVersion
private boolean ignoreTextChange
private org.eclipse.core.resources.IProject project
private org.apache.maven.project.MavenProject mavenproject
private final boolean showCoords
private MavenRepositorySearchDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String queryType, java.util.Set<ArtifactKey> artifacts, java.util.Map<ArtifactKey,java.lang.String> managed, boolean showScope, org.apache.maven.project.MavenProject mp, org.eclipse.core.resources.IProject p, boolean showCoordinates)
public static MavenRepositorySearchDialog createOpenPomDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title)
parent
- title
- public static MavenRepositorySearchDialog createSearchDependencyDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, org.apache.maven.project.MavenProject mp, org.eclipse.core.resources.IProject p, boolean inManagedSection)
parent
- title
- mp
- p
- inManagedSection
- true when the result will be added to the dependencyManagement section of the pom.public static MavenRepositorySearchDialog createSearchParentDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, org.apache.maven.project.MavenProject mp, org.eclipse.core.resources.IProject p)
parent
- title
- mp
- p
- public static MavenRepositorySearchDialog createSearchPluginDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, org.apache.maven.project.MavenProject mp, org.eclipse.core.resources.IProject p, boolean inManagedSection)
parent
- title
- mp
- p
- inManagedSection
- true when the result will be added to the dependencyManagement section of the pom.public void setQuery(java.lang.String query)
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
private org.eclipse.swt.widgets.Composite createGAVControls(org.eclipse.swt.widgets.Composite parent)
protected boolean hasDisposedTextField()
org.eclipse.core.runtime.IStatus validateArtifactEntries()
void okPressedDelegate()
void updateStatusDelegate(org.eclipse.core.runtime.IStatus status)
private java.lang.String valueOrNull(java.lang.String text)
protected void computeResult()
computeResult
in class org.eclipse.ui.dialogs.SelectionStatusDialog
private void computeResultFromField(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
private void computeResultFromTree()
public IndexedArtifact getSelectedIndexedArtifact()
public IndexedArtifactFile getSelectedIndexedArtifactFile()
public java.lang.String getSelectedScope()
private IndexedArtifact cloneIndexedArtifact(IndexedArtifact old, java.lang.String groupId, java.lang.String artifactId)
private IndexedArtifactFile cloneIndexedArtifactFile(IndexedArtifactFile old, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
private IndexedArtifactFile cloneIndexedArtifactFile(IndexedArtifactFile old, java.lang.String type)