|
Lines 7-22
Link Here
|
| 7 |
* |
7 |
* |
| 8 |
* Contributors: |
8 |
* Contributors: |
| 9 |
* Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation |
9 |
* Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation |
|
|
10 |
* Marco Descher <marco@descher.at> - Bug395283 |
| 10 |
******************************************************************************/ |
11 |
******************************************************************************/ |
| 11 |
package org.eclipse.e4.tools.emf.ui.internal.common.component.dialogs; |
12 |
package org.eclipse.e4.tools.emf.ui.internal.common.component.dialogs; |
| 12 |
|
13 |
|
| 13 |
import org.eclipse.e4.tools.emf.ui.internal.common.component.ControlFactory; |
|
|
| 14 |
|
| 15 |
import java.util.ArrayList; |
14 |
import java.util.ArrayList; |
| 16 |
import java.util.List; |
15 |
import java.util.List; |
| 17 |
import org.eclipse.e4.tools.emf.ui.common.IModelResource; |
16 |
import org.eclipse.e4.tools.emf.ui.common.IModelResource; |
| 18 |
import org.eclipse.e4.tools.emf.ui.internal.Messages; |
17 |
import org.eclipse.e4.tools.emf.ui.internal.Messages; |
| 19 |
import org.eclipse.e4.tools.emf.ui.internal.PatternFilter; |
18 |
import org.eclipse.e4.tools.emf.ui.internal.PatternFilter; |
|
|
19 |
import org.eclipse.e4.tools.emf.ui.internal.ToolsEmfUiPlugin; |
| 20 |
import org.eclipse.e4.tools.emf.ui.internal.common.component.ControlFactory; |
| 20 |
import org.eclipse.e4.ui.model.application.commands.MCategory; |
21 |
import org.eclipse.e4.ui.model.application.commands.MCategory; |
| 21 |
import org.eclipse.e4.ui.model.application.commands.MCommand; |
22 |
import org.eclipse.e4.ui.model.application.commands.MCommand; |
| 22 |
import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; |
23 |
import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; |
|
Lines 25-30
Link Here
|
| 25 |
import org.eclipse.emf.ecore.EObject; |
26 |
import org.eclipse.emf.ecore.EObject; |
| 26 |
import org.eclipse.emf.ecore.util.EcoreUtil; |
27 |
import org.eclipse.emf.ecore.util.EcoreUtil; |
| 27 |
import org.eclipse.emf.edit.command.SetCommand; |
28 |
import org.eclipse.emf.edit.command.SetCommand; |
|
|
29 |
import org.eclipse.jface.dialogs.IDialogSettings; |
| 28 |
import org.eclipse.jface.dialogs.TitleAreaDialog; |
30 |
import org.eclipse.jface.dialogs.TitleAreaDialog; |
| 29 |
import org.eclipse.jface.viewers.AbstractTreeViewer; |
31 |
import org.eclipse.jface.viewers.AbstractTreeViewer; |
| 30 |
import org.eclipse.jface.viewers.ArrayContentProvider; |
32 |
import org.eclipse.jface.viewers.ArrayContentProvider; |
|
Lines 40-47
Link Here
|
| 40 |
import org.eclipse.swt.SWT; |
42 |
import org.eclipse.swt.SWT; |
| 41 |
import org.eclipse.swt.events.DisposeEvent; |
43 |
import org.eclipse.swt.events.DisposeEvent; |
| 42 |
import org.eclipse.swt.events.DisposeListener; |
44 |
import org.eclipse.swt.events.DisposeListener; |
| 43 |
import org.eclipse.swt.events.ModifyEvent; |
|
|
| 44 |
import org.eclipse.swt.events.ModifyListener; |
| 45 |
import org.eclipse.swt.graphics.Image; |
45 |
import org.eclipse.swt.graphics.Image; |
| 46 |
import org.eclipse.swt.layout.GridData; |
46 |
import org.eclipse.swt.layout.GridData; |
| 47 |
import org.eclipse.swt.layout.GridLayout; |
47 |
import org.eclipse.swt.layout.GridLayout; |
|
Lines 180-183
public String getText(Object element) {
Link Here
|
| 180 |
return s; |
180 |
return s; |
| 181 |
} |
181 |
} |
| 182 |
} |
182 |
} |
|
|
183 |
|
| 184 |
@Override |
| 185 |
protected IDialogSettings getDialogBoundsSettings() { |
| 186 |
return ToolsEmfUiPlugin.getDefault().getDialogSettings(); |
| 187 |
} |
| 183 |
} |
188 |
} |