+/*******************************************************************************
+ * Copyright (c) 2013 Ericsson
+ * 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:
+ * Bernd Hufmann - Initial API and implementation
+ *******************************************************************************/
+
package org.eclipse.linuxtools.tmf.ui.tests.uml2sd.load;
import java.net.URL;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
+import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimestamp;
import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
import org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.AsyncMessageReturn;
import org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.BasicExecutionOccurrence;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;
-// Referenced classes of package org.eclipse.hyades.uml2sd.ztest:
-// OpenToolBox
-
+/**
+ * Test loader class.
+ */
+@SuppressWarnings("javadoc")
public class TestLoaders implements IUml2SDLoader, ISDFindProvider, ISDFilterProvider, ISDPagingProvider, ISelectionListener {
public SDView v;
this(""); //$NON-NLS-1$
}
+ @SuppressWarnings("unused")
public TestLoaders(String name) {
page = 1;
}
@SuppressWarnings("nls")
public Image getResourceImage(String _name) {
- ImageDescriptor img;
+ ImageDescriptor imgage;
try {
URL BASIC_URL = new URL("platform", "localhost", "plugin");
URL url = new URL(BASIC_URL, (new StringBuilder("plugin/org.eclipse.linuxtools.tmf.ui/icons/")).append(_name).toString());
- img = ImageDescriptor.createFromURL(url);
- return img.createImage();
+ imgage = ImageDescriptor.createFromURL(url);
+ return imgage.createImage();
} catch (Exception e) {
System.err.println(e);
}