Drag and drop enhancements
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / project / handlers / DropAdapterAssistant.java
1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Patrick Tasse - Initial API and implementation
11 * Patrick Tasse - Add support for DROP_LINK and rename prompt on name clash
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.internal.tmf.ui.project.handlers;
15
16 import java.io.File;
17 import java.io.FileInputStream;
18 import java.io.FileNotFoundException;
19 import java.io.InputStream;
20 import java.lang.reflect.InvocationTargetException;
21 import java.util.Arrays;
22 import java.util.List;
23 import java.util.Map;
24
25 import org.eclipse.core.resources.IFile;
26 import org.eclipse.core.resources.IFolder;
27 import org.eclipse.core.resources.IProject;
28 import org.eclipse.core.resources.IResource;
29 import org.eclipse.core.resources.IWorkspace;
30 import org.eclipse.core.resources.ResourcesPlugin;
31 import org.eclipse.core.runtime.CoreException;
32 import org.eclipse.core.runtime.IPath;
33 import org.eclipse.core.runtime.IProgressMonitor;
34 import org.eclipse.core.runtime.IStatus;
35 import org.eclipse.core.runtime.NullProgressMonitor;
36 import org.eclipse.core.runtime.Path;
37 import org.eclipse.core.runtime.QualifiedName;
38 import org.eclipse.core.runtime.Status;
39 import org.eclipse.jface.operation.IRunnableWithProgress;
40 import org.eclipse.jface.viewers.IStructuredSelection;
41 import org.eclipse.linuxtools.internal.tmf.ui.Activator;
42 import org.eclipse.linuxtools.tmf.core.TmfCommonConstants;
43 import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
44 import org.eclipse.linuxtools.tmf.ui.project.model.ITmfProjectModelElement;
45 import org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement;
46 import org.eclipse.linuxtools.tmf.ui.project.model.TmfProjectElement;
47 import org.eclipse.linuxtools.tmf.ui.project.model.TmfProjectRegistry;
48 import org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement;
49 import org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceFolder;
50 import org.eclipse.osgi.util.NLS;
51 import org.eclipse.swt.SWT;
52 import org.eclipse.swt.dnd.DND;
53 import org.eclipse.swt.dnd.DropTargetEvent;
54 import org.eclipse.swt.dnd.FileTransfer;
55 import org.eclipse.swt.dnd.TransferData;
56 import org.eclipse.swt.widgets.MessageBox;
57 import org.eclipse.ui.PlatformUI;
58 import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
59 import org.eclipse.ui.dialogs.IOverwriteQuery;
60 import org.eclipse.ui.navigator.CommonDropAdapter;
61 import org.eclipse.ui.navigator.CommonDropAdapterAssistant;
62 import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
63 import org.eclipse.ui.wizards.datatransfer.ImportOperation;
64
65 /**
66 * Drop adapter assistant for project explorer
67 */
68 public class DropAdapterAssistant extends CommonDropAdapterAssistant {
69
70 /**
71 * Default constructor
72 */
73 public DropAdapterAssistant() {
74 }
75
76 /* (non-Javadoc)
77 * @see org.eclipse.ui.navigator.CommonDropAdapterAssistant#isSupportedType(org.eclipse.swt.dnd.TransferData)
78 */
79 @Override
80 public boolean isSupportedType(TransferData aTransferType) {
81 return super.isSupportedType(aTransferType) || FileTransfer.getInstance().isSupportedType(aTransferType);
82 }
83
84 /* (non-Javadoc)
85 * @see org.eclipse.ui.navigator.CommonDropAdapterAssistant#validateDrop(java.lang.Object, int, org.eclipse.swt.dnd.TransferData)
86 */
87 @Override
88 public IStatus validateDrop(Object target, int operation, TransferData transferType) {
89 if (target instanceof TmfTraceFolder) {
90 return Status.OK_STATUS;
91 }
92 if (target instanceof TmfExperimentElement) {
93 return Status.OK_STATUS;
94 }
95 if (target instanceof TmfTraceElement) {
96 ITmfProjectModelElement parent = ((TmfTraceElement) target).getParent();
97 if (parent instanceof TmfTraceFolder) {
98 return Status.OK_STATUS;
99 }
100 if (parent instanceof TmfExperimentElement) {
101 return Status.OK_STATUS;
102 }
103 }
104 if (target instanceof IProject) {
105 return Status.OK_STATUS;
106 }
107 return Status.CANCEL_STATUS;
108 }
109
110 /* (non-Javadoc)
111 * @see org.eclipse.ui.navigator.CommonDropAdapterAssistant#handleDrop(org.eclipse.ui.navigator.CommonDropAdapter, org.eclipse.swt.dnd.DropTargetEvent, java.lang.Object)
112 */
113 @Override
114 public IStatus handleDrop(CommonDropAdapter aDropAdapter, DropTargetEvent aDropTargetEvent, Object aTarget) {
115 boolean ok = false;
116
117 // Use local variable to avoid parameter assignment
118 Object targetToUse = aTarget;
119
120 int operation = aDropTargetEvent.detail;
121 if (operation != DND.DROP_LINK) {
122 operation = DND.DROP_COPY;
123 }
124
125 // If target is a trace, use its parent (either trace folder or experiment)
126 if (targetToUse instanceof TmfTraceElement) {
127 targetToUse = ((TmfTraceElement) targetToUse).getParent();
128 }
129
130 // If target is a project, use its trace folder
131 if (targetToUse instanceof IProject) {
132 TmfProjectElement projectElement = TmfProjectRegistry.getProject((IProject) targetToUse);
133 if (projectElement != null) {
134 targetToUse = projectElement.getTracesFolder();
135 }
136 }
137
138 if (aDropTargetEvent.data instanceof IStructuredSelection) {
139 IStructuredSelection selection = (IStructuredSelection) aDropTargetEvent.data;
140 for (Object source : selection.toArray()) {
141 if (source instanceof IResource) {
142 // If source resource is a trace, use the trace element
143 IResource sourceResource = (IResource) source;
144 TmfProjectElement projectElement = TmfProjectRegistry.getProject(sourceResource.getProject());
145 if (projectElement != null && projectElement.getTracesFolder() != null) {
146 for (TmfTraceElement trace : projectElement.getTracesFolder().getTraces()) {
147 if (trace.getResource().equals(sourceResource)) {
148 source = trace;
149 break;
150 }
151 }
152 }
153 }
154 if (source instanceof TmfTraceElement) {
155 TmfTraceElement sourceTrace = (TmfTraceElement) source;
156 // If source trace is under an experiment, use the original trace from the traces folder
157 sourceTrace = sourceTrace.getElementUnderTraceFolder();
158 if (targetToUse instanceof TmfExperimentElement) {
159 TmfExperimentElement targetExperiment = (TmfExperimentElement) targetToUse;
160 ok |= drop(sourceTrace, targetExperiment, operation);
161 } else if (targetToUse instanceof TmfTraceFolder) {
162 TmfTraceFolder traceFolder = (TmfTraceFolder) targetToUse;
163 ok |= drop(sourceTrace, traceFolder, operation);
164 }
165 } else if (source instanceof IResource) {
166 IResource sourceResource = (IResource) source;
167 if (sourceResource.getType() != IResource.FILE && sourceResource.getType() != IResource.FOLDER) {
168 continue;
169 }
170 if (targetToUse instanceof TmfExperimentElement) {
171 TmfExperimentElement targetExperiment = (TmfExperimentElement) targetToUse;
172 ok |= (drop(sourceResource, targetExperiment, operation) != null);
173 } else if (targetToUse instanceof TmfTraceFolder) {
174 TmfTraceFolder traceFolder = (TmfTraceFolder) targetToUse;
175 ok |= (drop(sourceResource, traceFolder, operation) != null);
176 }
177 }
178 }
179 } else if (aDropTargetEvent.data instanceof String[]) {
180 String[] sources = (String[]) aDropTargetEvent.data;
181 for (String source : sources) {
182 Path path = new Path(source);
183 if (targetToUse instanceof TmfExperimentElement) {
184 TmfExperimentElement targetExperiment = (TmfExperimentElement) targetToUse;
185 ok |= drop(path, targetExperiment, operation);
186 } else if (targetToUse instanceof TmfTraceFolder) {
187 TmfTraceFolder traceFolder = (TmfTraceFolder) targetToUse;
188 ok |= drop(path, traceFolder, operation);
189 }
190 }
191 }
192 return (ok ? Status.OK_STATUS : Status.CANCEL_STATUS);
193 }
194
195
196 /**
197 * Drop a trace by copying/linking a trace element in a target experiment
198 *
199 * @param sourceTrace the source trace element to copy
200 * @param targetExperiment the target experiment
201 * @param operation the drop operation (DND.DROP_COPY | DND.DROP_LINK)
202 * @return true if successful
203 */
204 private static boolean drop(TmfTraceElement sourceTrace,
205 TmfExperimentElement targetExperiment,
206 int operation) {
207
208 IResource sourceResource = sourceTrace.getResource();
209 IResource targetResource = drop(sourceResource, targetExperiment, operation);
210
211 if (targetResource != null) {
212 IFolder destinationSupplementaryFolder = targetExperiment.getTraceSupplementaryFolder(targetResource.getName());
213 sourceTrace.copySupplementaryFolder(destinationSupplementaryFolder);
214 return true;
215 }
216 return false;
217 }
218
219 /**
220 * Drop a trace by copying/linking a resource in a target experiment
221 *
222 * @param sourceResource the source resource
223 * @param targetExperiment the target experiment
224 * @param operation the drop operation (DND.DROP_COPY | DND.DROP_LINK)
225 * @return the target resource or null if unsuccessful
226 */
227 private static IResource drop(IResource sourceResource,
228 TmfExperimentElement targetExperiment,
229 int operation) {
230
231 IResource traceResource = sourceResource;
232
233 TmfProjectElement projectElement = TmfProjectRegistry.getProject(sourceResource.getProject());
234 for (TmfTraceElement trace : targetExperiment.getTraces()) {
235 if (trace.getName().equals(sourceResource.getName()) && targetExperiment.getProject().equals(projectElement)) {
236 return null;
237 }
238 }
239 if (!targetExperiment.getProject().equals(projectElement)) {
240 String targetName = sourceResource.getName();
241 for (TmfTraceElement trace : targetExperiment.getProject().getTracesFolder().getTraces()) {
242 if (trace.getName().equals(targetName)) {
243 targetName = promptRename(trace);
244 if (targetName == null) {
245 return null;
246 }
247 break;
248 }
249 }
250 try {
251 if (operation == DND.DROP_COPY) {
252 IPath destination = targetExperiment.getProject().getTracesFolder().getResource().getFullPath().addTrailingSeparator().append(targetName);
253 sourceResource.copy(destination, false, null);
254 cleanupBookmarks(destination);
255 } else {
256 createLink(targetExperiment.getProject().getTracesFolder().getResource(), sourceResource, targetName);
257 }
258 // use the copied resource for the experiment
259 if (sourceResource.getType() == IResource.FILE) {
260 traceResource = targetExperiment.getProject().getTracesFolder().getResource().getFile(targetName);
261 } else if (sourceResource.getType() == IResource.FOLDER) {
262 traceResource = targetExperiment.getProject().getTracesFolder().getResource().getFolder(targetName);
263 }
264 } catch (CoreException e) {
265 displayException(e);
266 return null;
267 }
268 }
269 if (traceResource != null && traceResource.exists()) {
270 createLink(targetExperiment.getResource(), traceResource, traceResource.getName());
271 return traceResource;
272 }
273 return null;
274 }
275
276 /**
277 * Drop a trace by copying/linking a trace element in a trace folder
278 *
279 * @param sourceTrace the source trace
280 * @param traceFolder the target trace folder
281 * @param operation the drop operation (DND.DROP_COPY | DND.DROP_LINK)
282 * @return true if successful
283 */
284 private static boolean drop(TmfTraceElement sourceTrace,
285 TmfTraceFolder traceFolder,
286 int operation) {
287
288 IResource sourceResource = sourceTrace.getResource();
289 IResource targetResource = drop(sourceResource, traceFolder, operation);
290
291 if (targetResource != null) {
292 IFolder destinationSupplementaryFolder = traceFolder.getTraceSupplementaryFolder(targetResource.getName());
293 sourceTrace.copySupplementaryFolder(destinationSupplementaryFolder);
294 return true;
295 }
296 return false;
297 }
298
299 /**
300 * Drop a trace by copying/linking a resource in a trace folder
301 *
302 * @param sourceResource the source resource
303 * @param traceFolder the target trace folder
304 * @param operation the drop operation (DND.DROP_COPY | DND.DROP_LINK)
305 * @return the target resource or null if unsuccessful
306 */
307 private static IResource drop(IResource sourceResource,
308 TmfTraceFolder traceFolder,
309 int operation) {
310
311 if (sourceResource.getProject().equals(traceFolder.getResource().getProject())) {
312 return null;
313 }
314 String targetName = sourceResource.getName();
315 for (TmfTraceElement trace : traceFolder.getTraces()) {
316 if (trace.getName().equals(targetName)) {
317 targetName = promptRename(trace);
318 if (targetName == null) {
319 return null;
320 }
321 break;
322 }
323 }
324 try {
325 if (operation == DND.DROP_COPY) {
326 IPath destination = traceFolder.getResource().getFullPath().addTrailingSeparator().append(targetName);
327 sourceResource.copy(destination, false, null);
328 cleanupBookmarks(destination);
329 } else {
330 createLink(traceFolder.getResource(), sourceResource, targetName);
331 }
332 return traceFolder.getResource().findMember(targetName);
333 } catch (CoreException e) {
334 displayException(e);
335 }
336 return null;
337 }
338
339 /**
340 * Drop a trace by importing/linking a path in a target experiment
341 *
342 * @param path the source path
343 * @param targetExperiment the target experiment
344 * @param operation the drop operation (DND.DROP_COPY | DND.DROP_LINK)
345 * @return true if successful
346 */
347 private static boolean drop(Path path,
348 TmfExperimentElement targetExperiment,
349 int operation) {
350
351 // Use local variable to avoid parameter assignment
352 Path pathToUse = path;
353
354 for (TmfTraceElement trace : targetExperiment.getTraces()) {
355 if (trace.getName().equals(pathToUse.lastSegment()) && pathToUse.toString().startsWith(targetExperiment.getProject().getResource().getLocation().toString())) {
356 return false;
357 }
358 }
359 if (!pathToUse.toString().startsWith(targetExperiment.getProject().getResource().getLocation().toString())) {
360 String targetName = pathToUse.lastSegment();
361 for (TmfTraceElement trace : targetExperiment.getProject().getTracesFolder().getTraces()) {
362 if (trace.getName().equals(targetName)) {
363 targetName = promptRename(trace);
364 if (targetName == null) {
365 return false;
366 }
367 break;
368 }
369 }
370 if (operation == DND.DROP_COPY) {
371 importTrace(targetExperiment.getProject().getTracesFolder().getResource(), pathToUse, targetName);
372 } else {
373 createLink(targetExperiment.getProject().getTracesFolder().getResource(), pathToUse, targetName);
374 }
375 // use the copied resource for the experiment
376 IResource resource = null;
377 File file = new File(pathToUse.toString());
378 if (file.exists() && file.isFile()) {
379 resource = targetExperiment.getProject().getTracesFolder().getResource().getFile(targetName);
380 } else if (file.exists() && file.isDirectory()) {
381 resource = targetExperiment.getProject().getTracesFolder().getResource().getFolder(targetName);
382 }
383 if (resource != null && resource.exists()) {
384 createLink(targetExperiment.getResource(), resource, resource.getName());
385 return true;
386 }
387 }
388 return false;
389 }
390
391 /**
392 * Drop a trace by importing/linking a path in a trace folder
393 *
394 * @param path the source path
395 * @param traceFolder the target trace folder
396 * @param operation the drop operation (DND.DROP_COPY | DND.DROP_LINK)
397 * @return true if successful
398 */
399 private static boolean drop(Path path,
400 TmfTraceFolder traceFolder,
401 int operation) {
402
403 String targetName = path.lastSegment();
404 for (TmfTraceElement trace : traceFolder.getTraces()) {
405 if (trace.getName().equals(targetName)) {
406 targetName = promptRename(trace);
407 if (targetName == null) {
408 return false;
409 }
410 break;
411 }
412 }
413 if (operation == DND.DROP_COPY) {
414 importTrace(traceFolder.getResource(), path, targetName);
415 } else {
416 createLink(traceFolder.getResource(), path, targetName);
417 }
418 return true;
419 }
420
421 /**
422 * Import a trace to the trace folder
423 *
424 * @param folder the trace folder resource
425 * @param path the path to the trace to import
426 * @param targetName the target name
427 */
428 private static void importTrace(final IFolder folder, final Path path, final String targetName) {
429 final File source = new File(path.toString());
430 if (source.isDirectory()) {
431 IPath containerPath = folder.getFullPath().addTrailingSeparator().append(targetName);
432 IOverwriteQuery overwriteImplementor = new IOverwriteQuery() {
433 @Override
434 public String queryOverwrite(String pathString) {
435 return IOverwriteQuery.NO_ALL;
436 }
437 };
438 List<File> filesToImport = Arrays.asList(source.listFiles());
439 ImportOperation operation = new ImportOperation(
440 containerPath,
441 source,
442 FileSystemStructureProvider.INSTANCE,
443 overwriteImplementor,
444 filesToImport);
445 operation.setCreateContainerStructure(false);
446 try {
447 operation.run(new NullProgressMonitor());
448 } catch (InvocationTargetException e) {
449 displayException(e);
450 } catch (InterruptedException e) {
451 displayException(e);
452 }
453 } else {
454 IRunnableWithProgress runnable = new IRunnableWithProgress() {
455 @Override
456 public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
457 try {
458 InputStream inputStream = new FileInputStream(source);
459 IFile targetFile = folder.getFile(targetName);
460 targetFile.create(inputStream, IResource.NONE, monitor);
461 } catch (CoreException e) {
462 displayException(e);
463 } catch (FileNotFoundException e) {
464 displayException(e);
465 }
466 }
467 };
468 WorkspaceModifyDelegatingOperation operation = new WorkspaceModifyDelegatingOperation(runnable);
469 try {
470 operation.run(new NullProgressMonitor());
471 } catch (InvocationTargetException e) {
472 displayException(e);
473 } catch (InterruptedException e) {
474 displayException(e);
475 }
476 }
477 }
478
479 /**
480 * Create a link to the actual trace and set the trace type
481 *
482 * @param parentFolder the parent folder
483 * @param resource the resource
484 * @param targetName the target name
485 */
486 private static void createLink(IFolder parentFolder, IResource resource, String targetName) {
487 IPath location = resource.getLocation();
488 IWorkspace workspace = ResourcesPlugin.getWorkspace();
489 try {
490 Map<QualifiedName, String> properties = resource.getPersistentProperties();
491 String bundleName = properties.get(TmfCommonConstants.TRACEBUNDLE);
492 String traceType = properties.get(TmfCommonConstants.TRACETYPE);
493 String iconUrl = properties.get(TmfCommonConstants.TRACEICON);
494 String supplFolder = properties.get(TmfCommonConstants.TRACE_SUPPLEMENTARY_FOLDER);
495
496 if (resource instanceof IFolder) {
497 IFolder folder = parentFolder.getFolder(targetName);
498 if (workspace.validateLinkLocation(folder, location).isOK()) {
499 folder.createLink(location, IResource.REPLACE, null);
500 setProperties(folder, bundleName, traceType, iconUrl, supplFolder);
501
502 } else {
503 Activator.getDefault().logError("Invalid Trace Location"); //$NON-NLS-1$
504 }
505 } else {
506 IFile file = parentFolder.getFile(targetName);
507 if (workspace.validateLinkLocation(file, location).isOK()) {
508 file.createLink(location, IResource.REPLACE, null);
509 setProperties(file, bundleName, traceType, iconUrl, supplFolder);
510 } else {
511 Activator.getDefault().logError("Invalid Trace Location"); //$NON-NLS-1$
512 }
513 }
514 } catch (CoreException e) {
515 displayException(e);
516 }
517 }
518
519 /**
520 * Create a link to a file or folder
521 *
522 * @param parentFolder the parent folder
523 * @param source the file or folder
524 * @param targetName the target name
525 */
526 private static void createLink(IFolder parentFolder, IPath location, String targetName) {
527 File source = new File(location.toString());
528 IWorkspace workspace = ResourcesPlugin.getWorkspace();
529 try {
530
531 if (source.isDirectory()) {
532 IFolder folder = parentFolder.getFolder(targetName);
533 if (workspace.validateLinkLocation(folder, location).isOK()) {
534 folder.createLink(location, IResource.REPLACE, null);
535 } else {
536 Activator.getDefault().logError("Invalid Trace Location"); //$NON-NLS-1$
537 }
538 } else {
539 IFile file = parentFolder.getFile(targetName);
540 if (workspace.validateLinkLocation(file, location).isOK()) {
541 file.createLink(location, IResource.REPLACE, null);
542 } else {
543 Activator.getDefault().logError("Invalid Trace Location"); //$NON-NLS-1$
544 }
545 }
546 } catch (CoreException e) {
547 displayException(e);
548 }
549 }
550
551 /**
552 * Prompts the user to rename a trace
553 *
554 * @param trace the existing trace
555 * @return the new name to use or null if rename is canceled
556 */
557 private static String promptRename(TmfTraceElement trace) {
558 MessageBox mb = new MessageBox(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), SWT.ICON_QUESTION | SWT.CANCEL | SWT.OK);
559 mb.setText(Messages.DropAdapterAssistant_RenameTraceTitle);
560 mb.setMessage(NLS.bind(Messages.DropAdapterAssistant_RenameTraceMessage, trace.getName()));
561 if (mb.open() != SWT.OK) {
562 return null;
563 }
564 IFolder folder = trace.getProject().getTracesFolder().getResource();
565 int i = 2;
566 while (true) {
567 String name = trace.getName() + '-' + Integer.toString(i++);
568 IResource resource = folder.findMember(name);
569 if (resource == null) {
570 return name;
571 }
572 }
573 }
574
575 /**
576 * Cleanup bookmarks file in copied trace
577 */
578 private static void cleanupBookmarks(IPath path) {
579 IFolder folder = ResourcesPlugin.getWorkspace().getRoot().getFolder(path);
580 if (folder.exists()) {
581 try {
582 for (IResource member : folder.members()) {
583 if (TmfTrace.class.getCanonicalName().equals(member.getPersistentProperty(TmfCommonConstants.TRACETYPE))) {
584 member.delete(true, null);
585 }
586 }
587 } catch (CoreException e) {
588 displayException(e);
589 }
590 }
591 }
592
593 /**
594 * Set the trace persistent properties
595 *
596 * @param resource the trace resource
597 * @param bundleName the bundle name
598 * @param traceType the trace type
599 * @param iconUrl the icon URL
600 * @param supplFolder the directory of the directory for supplementary information or null to ignore the property
601 * @throws CoreException
602 */
603 private static void setProperties(IResource resource, String bundleName,
604 String traceType, String iconUrl, String supplFolder)
605 throws CoreException {
606 resource.setPersistentProperty(TmfCommonConstants.TRACEBUNDLE, bundleName);
607 resource.setPersistentProperty(TmfCommonConstants.TRACETYPE, traceType);
608 resource.setPersistentProperty(TmfCommonConstants.TRACEICON, iconUrl);
609 resource.setPersistentProperty(TmfCommonConstants.TRACE_SUPPLEMENTARY_FOLDER, supplFolder);
610 }
611
612 /**
613 * Display an exception in a message box
614 *
615 * @param e the exception
616 */
617 private static void displayException(Exception e) {
618 MessageBox mb = new MessageBox(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
619 mb.setText(e.getClass().getName());
620 mb.setMessage(e.getMessage());
621 mb.open();
622 }
623
624 }
This page took 0.046612 seconds and 6 git commands to generate.