Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2014-08-14 13:52:12 -0400
committerIgor Fedorenko2014-08-14 13:52:12 -0400
commit0c300fad88b4c1c169c615f5f946eb6c1c8f069f (patch)
tree7e09bf47ef6068b88bb71bd2e322a09ea5a3e06c
parent88b5d399020465ddd9e0a633f70410ff0c2222f5 (diff)
downloadm2e-core-0c300fad88b4c1c169c615f5f946eb6c1c8f069f.tar.gz
m2e-core-0c300fad88b4c1c169c615f5f946eb6c1c8f069f.tar.xz
m2e-core-0c300fad88b4c1c169c615f5f946eb6c1c8f069f.zip
344997 removed dead code
Change-Id: I411cc26e90df8fcc260c3738a6774b38072e6282 Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java362
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java194
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java75
3 files changed, 0 insertions, 631 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java
deleted file mode 100644
index 65384f6b..00000000
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java
+++ /dev/null
@@ -1,362 +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.dialogs;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.TreeMap;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.internal.index.IIndex;
-import org.eclipse.m2e.core.internal.index.IndexManager;
-import org.eclipse.m2e.core.internal.index.IndexedArtifact;
-import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
-import org.eclipse.m2e.core.ui.internal.Messages;
-
-
-public class MavenGoalSelectionDialog extends ElementTreeSelectionDialog {
- private static final Logger log = LoggerFactory.getLogger(MavenGoalSelectionDialog.class);
-
- Button isQualifiedNameButton;
-
- boolean isQualifiedName = true;
-
- public MavenGoalSelectionDialog(Shell parent) {
- super(parent, new GoalsLabelProvider(), new GoalsContentProvider());
-
- setTitle(Messages.launchGoalsDialogTitle);
- setMessage(org.eclipse.m2e.core.ui.internal.Messages.MavenGoalSelectionDialog_message);
- setValidator(new GoalsSelectionValidator());
- setInput(new Object());
- }
-
- protected Control createDialogArea(Composite parent) {
- Composite composite = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
- layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
- layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
- layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
- composite.setLayout(layout);
- composite.setLayoutData(new GridData(GridData.FILL_BOTH));
-
- Label selectGoalLabel = new Label(composite, SWT.NONE);
- selectGoalLabel.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenGoalSelectionDialog_lblSelect);
-
- final GoalsFilter filter = new GoalsFilter();
-
- final Text filterText = new Text(composite, SWT.BORDER);
- GridData gd_filterText = new GridData(SWT.FILL, SWT.CENTER, true, false);
- gd_filterText.widthHint = 200;
- filterText.setLayoutData(gd_filterText);
- filterText.setFocus();
-
- final TreeViewer treeViewer = createTreeViewer(composite);
- treeViewer.addFilter(filter);
-
- GridData data = new GridData(GridData.FILL_BOTH);
- data.widthHint = 500;
- data.heightHint = 400;
- // data.widthHint = convertWidthInCharsToPixels(fWidth);
- // data.heightHint = convertHeightInCharsToPixels(fHeight);
-
- final Tree tree = treeViewer.getTree();
- tree.setLayoutData(data);
- tree.setFont(parent.getFont());
-
- filterText.addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- String text = filterText.getText();
- filter.setFilter(text);
- treeViewer.refresh();
- if(text.trim().length() == 0) {
- treeViewer.collapseAll();
- } else {
- treeViewer.expandAll();
- }
- }
- });
-
- filterText.addKeyListener(new KeyAdapter() {
- public void keyPressed(KeyEvent e) {
- if(e.keyCode == SWT.ARROW_DOWN) {
- tree.setFocus();
- tree.setSelection(tree.getTopItem().getItem(0));
-
- Object[] elements = ((ITreeContentProvider) treeViewer.getContentProvider()).getElements(null);
- treeViewer.setSelection(new StructuredSelection(elements[0]));
- }
-
- }
- });
-
- isQualifiedNameButton = new Button(composite, SWT.CHECK);
- isQualifiedNameButton.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenGoalSelectionDialog_btnQualified);
- isQualifiedNameButton.setSelection(true);
- isQualifiedNameButton.addSelectionListener(new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
- isQualifiedName = isQualifiedNameButton.getSelection();
- }
- });
-
-// if (fIsEmpty) {
-// messageLabel.setEnabled(false);
-// treeWidget.setEnabled(false);
-// }
-
- return composite;
- }
-
- public boolean isQualifiedName() {
- return isQualifiedName;
- }
-
- /**
- * GoalsContentProvider
- */
- static class GoalsContentProvider implements ITreeContentProvider {
- private static Object[] EMPTY = new Object[0];
-
- private final List<Group> groups = new ArrayList<Group>();
-
- public GoalsContentProvider() {
-// MavenEmbedderManager embedderManager = MavenPlugin.getMavenEmbedderManager();
-// try {
-// MavenEmbedder embedder = embedderManager.getWorkspaceEmbedder();
-// groups.add(new Group(Messages.getString("launch.goalsDialog.lifecycleBuild"), //$NON-NLS-1$
-// null, null, getLifecyclePhases(embedder.getBuildLifecyclePhases())));
-// groups.add(new Group(Messages.getString("launch.goalsDialog.lifecycleSite"), //$NON-NLS-1$
-// null, null, getLifecyclePhases(embedder.getSiteLifecyclePhases())));
-// groups.add(new Group(Messages.getString("launch.goalsDialog.lifecycleClean"), //$NON-NLS-1$
-// null, null, getLifecyclePhases(embedder.getCleanLifecyclePhases())));
-// } catch(Exception e) {
-// log.error("Unable to get lifecycle phases", e);
-// }
-
- IndexManager indexManager = MavenPlugin.getIndexManager();
- try {
- // TODO: this will search ALL indexes, isn't the right to search _this_ project reposes only?
- // I did not find (at first glance, maybe was hasty) a way to get IProject
- Map<String, IndexedArtifact> result = indexManager.getAllIndexes().search(null, IIndex.SEARCH_PLUGIN);
- TreeMap<String, Group> map = new TreeMap<String, Group>();
- for(IndexedArtifact a : result.values()) {
- IndexedArtifactFile f = a.getFiles().iterator().next();
- if(f.prefix != null && f.prefix.length() > 0 && f.goals != null) {
- List<Entry> goals = new ArrayList<Entry>();
- for(String goal : f.goals) {
- if(goal.length() > 0) {
- goals.add(new Entry(goal, f.prefix, f));
- }
- }
- if(goals.size() > 0) {
- map.put(f.prefix + ":" + f.group, new Group(f.prefix, f.group, f.artifact, goals)); //$NON-NLS-1$
- }
- }
- }
- groups.addAll(map.values());
- } catch(CoreException e) {
- log.error(e.getMessage(), e);
- }
- }
-
- private List<Entry> getLifecyclePhases(List<?> phases) {
- List<Entry> entries = new ArrayList<Entry>();
- for(int i = 0; i < phases.size(); i++ ) {
- entries.add(new Entry((String) phases.get(i), null, null));
- }
- return entries;
- }
-
- public Object[] getElements(Object inputElement) {
- return groups.toArray();
- }
-
- public Object[] getChildren(Object parent) {
- if(parent instanceof Group) {
- return ((Group) parent).entries.toArray();
- }
- return EMPTY;
- }
-
- public boolean hasChildren(Object element) {
- return element instanceof Group;
- }
-
- public Object getParent(Object element) {
- return null;
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- }
-
- public void dispose() {
- }
-
- }
-
- /**
- * GoalsLabelProvider
- */
- static class GoalsLabelProvider extends LabelProvider {
- public String getText(Object element) {
- if(element instanceof Group) {
- Group g = (Group) element;
- if(g.groupId == null) {
- return g.name;
- }
- return g.name + " - " + g.groupId + ":" + g.artifactId; //$NON-NLS-1$ //$NON-NLS-2$
-
- } else if(element instanceof Entry) {
- return ((Entry) element).name;
-
- }
- return super.getText(element);
- }
- }
-
- /**
- * GoalsFilter
- */
- static class GoalsFilter extends ViewerFilter {
- private String filter;
-
- public boolean select(Viewer viewer, Object parentElement, Object element) {
- if(filter == null || filter.trim().length() == 0) {
- return true;
- }
- if(element instanceof Group) {
- Group g = (Group) element;
- if(g.name.indexOf(filter) > -1) {
- return true;
- }
- for(Iterator<Entry> it = g.entries.iterator(); it.hasNext();) {
- Entry e = it.next();
- if(e.name.indexOf(filter) > -1) {
- return true;
- }
- }
-
- } else if(element instanceof Entry) {
- Entry e = (Entry) element;
- return e.name.indexOf(filter) > -1 || (e.prefix != null && e.prefix.indexOf(filter) > -1);
-
- }
- return false;
- }
-
- public void setFilter(String filter) {
- this.filter = filter;
- }
- }
-
- /**
- * GoalsSelectionValidator
- */
- static class GoalsSelectionValidator implements ISelectionStatusValidator {
- public IStatus validate(Object[] selection) {
- if(selection.length == 0) {
- return new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- org.eclipse.m2e.core.ui.internal.Messages.MavenGoalSelectionDialog_error, null);
- }
- for(int j = 0; j < selection.length; j++ ) {
- if(selection[j] instanceof Entry) {
- continue;
- }
- return new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, "", null); //$NON-NLS-1$
- }
- return Status.OK_STATUS;
- }
- }
-
- /**
- * Group
- */
- static class Group {
- public final String name;
-
- public final String groupId;
-
- public final String artifactId;
-
- public final List<Entry> entries;
-
- public Group(String name, String groupId, String artifactId, List<Entry> entries) {
- this.name = name;
- this.groupId = groupId;
- this.artifactId = artifactId;
- this.entries = entries;
- }
- }
-
- /**
- * Entry
- */
- public static class Entry {
- public final String prefix;
-
- public final String name;
-
- private final IndexedArtifactFile f;
-
- public Entry(String name, String prefix, IndexedArtifactFile f) {
- this.prefix = prefix;
- this.name = name;
- this.f = f;
- }
-
- public String getName() {
- return prefix == null ? name : prefix + ":" + name; //$NON-NLS-1$
- }
-
- public String getQualifiedName() {
- // return prefix == null ? name : prefix + ":" + name;
- return prefix == null ? name : f.group + ":" + f.artifact + ":" + f.version + ":" + name; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
- }
-
-}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java
deleted file mode 100644
index 433e01f5..00000000
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java
+++ /dev/null
@@ -1,194 +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.preferences;
-
-import org.eclipse.jface.preference.FieldEditor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Text;
-
-
-/**
- * A field editor for a combo box that allows the drop-down selection of one of a list of items. Adapted from
- * org.eclipse.jface.preference.ComboFieldEditor
- */
-public class GoalsFieldEditor extends FieldEditor {
-
- /**
- * The <code>Combo</code> widget.
- */
- Text goalsText;
-
- /**
- * The value (not the name) of the currently selected item in the Combo widget.
- */
- String value;
-
- private Button goialsSelectButton;
-
- private final String buttonText;
-
- /**
- * Create the combo box field editor.
- *
- * @param name the name of the preference this field editor works on
- * @param labelText the label text of the field editor
- * @param buttonText
- * @param entryValues the entry values
- * @param parent the parent composite
- */
- public GoalsFieldEditor(String name, String labelText, String buttonText, Composite parent) {
- init(name, labelText);
- this.buttonText = buttonText;
- createControl(parent);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#adjustForNumColumns(int)
- */
- protected void adjustForNumColumns(int numColumns) {
- if(numColumns > 1) {
- Control control = getLabelControl();
- ((GridData) control.getLayoutData()).horizontalSpan = numColumns;
- ((GridData) goalsText.getLayoutData()).horizontalSpan = numColumns - 1;
- } else {
- Control control = getLabelControl();
- ((GridData) control.getLayoutData()).horizontalSpan = 2;
- ((GridData) goalsText.getLayoutData()).horizontalSpan = 1;
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doFillIntoGrid(org.eclipse.swt.widgets.Composite, int)
- */
- protected void doFillIntoGrid(Composite parent, int numColumns) {
- Control labelControl = getLabelControl(parent);
- GridData gd = new GridData();
- gd.horizontalSpan = numColumns;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- labelControl.setLayoutData(gd);
-
- Text goalsText = getTextControl(parent);
- gd = new GridData();
- gd.horizontalSpan = numColumns - 1;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- goalsText.setLayoutData(gd);
- goalsText.setFont(parent.getFont());
-
- goialsSelectButton = new Button(parent, SWT.NONE);
- goialsSelectButton.setText(buttonText);
- goialsSelectButton.addSelectionListener(new MavenGoalSelectionAdapter(goalsText, parent.getShell()));
- gd = new GridData();
- gd.horizontalSpan = 1;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- goalsText.setLayoutData(gd);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doLoad()
- */
- protected void doLoad() {
- updateComboForValue(getPreferenceStore().getString(getPreferenceName()));
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doLoadDefault()
- */
- protected void doLoadDefault() {
- updateComboForValue(getPreferenceStore().getDefaultString(getPreferenceName()));
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doStore()
- */
- protected void doStore() {
- if(value == null) {
- getPreferenceStore().setToDefault(getPreferenceName());
- } else {
- getPreferenceStore().setValue(getPreferenceName(), value);
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#getNumberOfControls()
- */
- public int getNumberOfControls() {
- return 2;
- }
-
- /*
- * Lazily create and return the Combo control.
- */
- private Text getTextControl(Composite parent) {
- if(goalsText == null) {
- goalsText = new Text(parent, SWT.BORDER);
- goalsText.setFont(parent.getFont());
-// for (int i = 0; i < entryValues.length; i++) {
-// goalsCombo.add(entryValues[i], i);
-// }
-// goalsCombo.addSelectionListener(new SelectionAdapter() {
-// public void widgetSelected(SelectionEvent evt) {
-// String oldValue = value;
-// value = goalsCombo.getText();
-// setPresentsDefaultValue(false);
-// fireValueChanged(VALUE, oldValue, value);
-// }
-// });
- goalsText.addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent modifyevent) {
- String oldValue = value;
- value = goalsText.getText();
- setPresentsDefaultValue(false);
- fireValueChanged(VALUE, oldValue, value);
- }
- });
- }
- return goalsText;
- }
-
- protected void setPresentsDefaultValue(boolean booleanValue) {
- super.setPresentsDefaultValue(booleanValue);
- }
-
- protected void fireValueChanged(String property, Object oldValue, Object newValue) {
- super.fireValueChanged(property, oldValue, newValue);
- }
-
-// /*
-// * Given the name (label) of an entry, return the corresponding value.
-// */
-// String getValueForName(String name) {
-// for (int i = 0; i < fEntryValues.length; i++) {
-// String[] entry = fEntryValues[i];
-// if (name.equals(entry[0])) {
-// return entry[1];
-// }
-// }
-// return fEntryValues[0][0];
-// }
-
- /*
- * Set the name in the combo widget to match the specified value.
- */
- private void updateComboForValue(String value) {
- this.value = value;
- goalsText.setText(value);
- }
-}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java
deleted file mode 100644
index 97a26369..00000000
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java
+++ /dev/null
@@ -1,75 +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.preferences;
-
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenGoalSelectionDialog;
-
-
-public class MavenGoalSelectionAdapter extends SelectionAdapter {
- private Shell shell;
-
- private Text text;
-
- public MavenGoalSelectionAdapter(Text text, Shell shell) {
- this.text = text;
- this.shell = shell;
- }
-
- public void widgetSelected(SelectionEvent e) {
-// String fileName = Util.substituteVar(fPomDirName.getText());
-// if(!isDirectoryExist(fileName)) {
-// MessageDialog.openError(getShell(), Messages.getString("launch.errorPomMissing"),
-// Messages.getString("launch.errorSelectPom")); //$NON-NLS-1$ //$NON-NLS-2$
-// return;
-// }
- MavenGoalSelectionDialog dialog = new MavenGoalSelectionDialog(shell);
- int rc = dialog.open();
- if(rc == IDialogConstants.OK_ID) {
- text.insert(""); // clear selected text //$NON-NLS-1$
-
- String txt = text.getText();
- int len = txt.length();
- int pos = text.getCaretPosition();
-
- StringBuffer sb = new StringBuffer();
- if((pos > 0 && txt.charAt(pos - 1) != ' ')) {
- sb.append(' ');
- }
-
- String sep = ""; //$NON-NLS-1$
- Object[] o = dialog.getResult();
- for(int i = 0; i < o.length; i++ ) {
- if(o[i] instanceof MavenGoalSelectionDialog.Entry) {
- if(dialog.isQualifiedName()) {
- sb.append(sep).append(((MavenGoalSelectionDialog.Entry) o[i]).getQualifiedName());
- } else {
- sb.append(sep).append(((MavenGoalSelectionDialog.Entry) o[i]).getName());
- }
- }
- sep = " "; //$NON-NLS-1$
- }
-
- if(pos < len && txt.charAt(pos) != ' ') {
- sb.append(' ');
- }
-
- text.insert(sb.toString());
- text.setFocus();
- }
- }
-}

Back to the top