diff options
3 files changed, 0 insertions, 296 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchPage.java deleted file mode 100644 index 2e2c45b1..00000000 --- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchPage.java +++ /dev/null @@ -1,140 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008-2010 Sonatype, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Sonatype, Inc. - initial API and implementation - *******************************************************************************/ - -package org.eclipse.m2e.core.ui.internal.search; - -import org.eclipse.jface.dialogs.DialogPage; -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.viewers.CheckboxTableViewer; -import org.eclipse.m2e.core.ui.internal.Messages; -import org.eclipse.search.ui.ISearchPage; -import org.eclipse.search.ui.ISearchPageContainer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Combo; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Table; - -/** - * Maven Search Page - * - * @author Eugene Kuleshov - */ -public class MavenSearchPage extends DialogPage implements ISearchPage { - - private Table table; - private Combo classNameText; - private Combo sha1Text; - private Combo versionText; - private Combo packagingIdText; - private Combo artifactIdText; - private Combo groupIdText; - - // private ISearchPageContainer container; - - public MavenSearchPage() { - } - - public MavenSearchPage(String title) { - super(title); - } - - public MavenSearchPage(String title, ImageDescriptor image) { - super(title, image); - } - - public void setContainer(ISearchPageContainer container) { - // this.container = container; - } - - public boolean performAction() { - // TODO Auto-generated method performAction - return false; - } - - public void createControl(Composite parent) { - Composite composite = new Composite(parent, SWT.NONE); - composite.setLayout(new GridLayout(3, false)); - composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - - setControl(parent); - - Label groupIdLabel = new Label(composite, SWT.NONE); - groupIdLabel.setText(Messages.MavenSearchPage_lblGroupid); - - groupIdText = new Combo(composite, SWT.NONE); - groupIdText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1)); - - Label artifactIdLabel = new Label(composite, SWT.NONE); - artifactIdLabel.setText(Messages.MavenSearchPage_lblArtifactid); - - artifactIdText = new Combo(composite, SWT.NONE); - artifactIdText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1)); - - Label versionLabel = new Label(composite, SWT.NONE); - versionLabel.setText(Messages.MavenSearchPage_lblVersion); - - versionText = new Combo(composite, SWT.NONE); - versionText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1)); - - Label packagingIdLabel = new Label(composite, SWT.NONE); - packagingIdLabel.setText(Messages.MavenSearchPage_lblPackaging); - - packagingIdText = new Combo(composite, SWT.NONE); - GridData packagingIdTextData = new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1); - packagingIdTextData.widthHint = 208; - packagingIdText.setLayoutData(packagingIdTextData); - - Label sha1Label = new Label(composite, SWT.NONE); - sha1Label.setText(Messages.MavenSearchPage_lblSha); - - sha1Text = new Combo(composite, SWT.NONE); - sha1Text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); - - Button browseButton = new Button(composite, SWT.NONE); - browseButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false)); - browseButton.setText(Messages.MavenSearchPage_btnBrowse); - - Label classNameLabel = new Label(composite, SWT.NONE); - classNameLabel.setText(Messages.MavenSearchPage_lblClass); - - classNameText = new Combo(composite, SWT.NONE); - classNameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1)); - - Label separator = new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR); - GridData separatorData = new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1); - separatorData.heightHint = 15; - separatorData.minimumHeight = 15; - separator.setLayoutData(separatorData); - separator.setText(Messages.MavenSearchPage_separator); - - Label repositoriesLabel = new Label(composite, SWT.NONE); - repositoriesLabel.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false)); - repositoriesLabel.setText(Messages.MavenSearchPage_lblRepos); - - CheckboxTableViewer tableViewer = CheckboxTableViewer.newCheckList(composite, SWT.BORDER); - table = tableViewer.getTable(); - table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 2)); - - Button selectAllButton = new Button(composite, SWT.NONE); - selectAllButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false)); - selectAllButton.setText(Messages.MavenSearchPage_btnSelect); - new Label(composite, SWT.NONE); - - Button deselectAllButton = new Button(composite, SWT.NONE); - deselectAllButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false)); - deselectAllButton.setText(Messages.MavenSearchPage_btnUnselect); - } - -} diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchResult.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchResult.java deleted file mode 100644 index a464aeea..00000000 --- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchResult.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008-2010 Sonatype, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Sonatype, Inc. - initial API and implementation - *******************************************************************************/ - -package org.eclipse.m2e.core.ui.internal.search; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.search.ui.ISearchQuery; -import org.eclipse.search.ui.text.AbstractTextSearchResult; -import org.eclipse.search.ui.text.IEditorMatchAdapter; -import org.eclipse.search.ui.text.IFileMatchAdapter; - -/** - * Maven search result - * - * @author Eugene Kuleshov - */ -public class MavenSearchResult extends AbstractTextSearchResult { - - /* (non-Javadoc) - * @see org.eclipse.search.ui.ISearchResult#getQuery() - */ - public ISearchQuery getQuery() { - // TODO Auto-generated method getQuery - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.ISearchResult#getLabel() - */ - public String getLabel() { - // TODO Auto-generated method getLabel - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.ISearchResult#getImageDescriptor() - */ - public ImageDescriptor getImageDescriptor() { - // TODO Auto-generated method getImageDescriptor - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.ISearchResult#getTooltip() - */ - public String getTooltip() { - // TODO Auto-generated method getTooltip - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchResult#getEditorMatchAdapter() - */ - public IEditorMatchAdapter getEditorMatchAdapter() { - // TODO Auto-generated method getEditorMatchAdapter - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchResult#getFileMatchAdapter() - */ - public IFileMatchAdapter getFileMatchAdapter() { - // TODO Auto-generated method getFileMatchAdapter - return null; - } - -} - diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchResultPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchResultPage.java deleted file mode 100644 index d0c28aae..00000000 --- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/MavenSearchResultPage.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008-2010 Sonatype, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Sonatype, Inc. - initial API and implementation - *******************************************************************************/ - -package org.eclipse.m2e.core.ui.internal.search; - -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.search.ui.text.AbstractTextSearchViewPage; -import org.eclipse.ui.IMemento; - -/** - * Maven search result page - * - * @author Eugene Kuleshov - */ -public class MavenSearchResultPage extends AbstractTextSearchViewPage { - - public MavenSearchResultPage() { - super(FLAG_LAYOUT_TREE | FLAG_LAYOUT_FLAT); - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTableViewer(org.eclipse.jface.viewers.TableViewer) - */ - protected void configureTableViewer(TableViewer viewer) { - // TODO Auto-generated method configureTableViewer - - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTreeViewer(org.eclipse.jface.viewers.TreeViewer) - */ - protected void configureTreeViewer(TreeViewer viewer) { - // TODO Auto-generated method configureTreeViewer - - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#clear() - */ - protected void clear() { - // TODO Auto-generated method clear - - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#elementsChanged(java.lang.Object[]) - */ - protected void elementsChanged(Object[] objects) { - // TODO Auto-generated method elementsChanged - - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#restoreState(org.eclipse.ui.IMemento) - */ - public void restoreState(IMemento memento) { - super.restoreState(memento); - - // TODO Auto-generated method restoreState - - } - - /* (non-Javadoc) - * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#saveState(org.eclipse.ui.IMemento) - */ - public void saveState(IMemento memento) { - super.saveState(memento); - // TODO Auto-generated method saveState - } - -} |