diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/META-INF/MANIFEST.MF b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/META-INF/MANIFEST.MF index a0bfd98b..664f810e 100644 --- a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/META-INF/MANIFEST.MF +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/META-INF/MANIFEST.MF @@ -16,7 +16,12 @@ Require-Bundle: org.eclipse.ui, org.eclipse.ease, org.eclipse.tracecompass.tmf.core, org.eclipse.tracecompass.tmf.analysis.xml.ui, - org.eclipse.tracecompass.tmf.analysis.xml.core + org.eclipse.tracecompass.tmf.analysis.xml.core, + org.eclipse.tracecompass.tmf.ui, + org.eclipse.debug.ui, + org.eclipse.ui.views, + org.eclipse.ease.ui, + org.eclipse.core.expressions Export-Package: org.eclipse.tracecompass.incubator.internal.scripting.ui;x-internal:=true, org.eclipse.tracecompass.incubator.internal.scripting.ui.views;x-internal:=true Automatic-Module-Name: org.eclipse.tracecompass.incubator.scripting.ui diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/build.properties b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/build.properties index 5ae48ac2..1b7f6b6b 100644 --- a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/build.properties +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/build.properties @@ -13,4 +13,6 @@ bin.includes = META-INF/,\ .,\ about.html,\ plugin.properties,\ - plugin.xml + plugin.xml,\ + icons/,\ + build.properties diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/debug_exc.png b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/debug_exc.png new file mode 100644 index 00000000..17bb448f Binary files /dev/null and b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/debug_exc.png differ diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/debug_exc@2x.png b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/debug_exc@2x.png new file mode 100644 index 00000000..8c168ee6 Binary files /dev/null and b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/debug_exc@2x.png differ diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/run_exc.png b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/run_exc.png new file mode 100644 index 00000000..c06ce07b Binary files /dev/null and b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/run_exc.png differ diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/run_exc@2x.png b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/run_exc@2x.png new file mode 100644 index 00000000..d1a4b910 Binary files /dev/null and b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/icons/etool16/run_exc@2x.png differ diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.properties b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.properties index d1d0ee7b..402db66d 100644 --- a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.properties +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.properties @@ -10,3 +10,10 @@ Bundle-Vendor = Eclipse Trace Compass Incubator Bundle-Name = Trace Compass Scripting UI Plug-in (Incubator) +command.run_as_ease_script = Run As... +command.run_as_ease_script.description = Run as ease script +command.launch_as_ease_script.type = Launch Type +command.launch_as_ease_script.mode = Launch Mode + +command.debug_as_ease_script = Debug As... +command.debug_as_ease_script.description = Debug as ease script diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.xml b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.xml index 24bee6ae..7429e409 100644 --- a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.xml +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/plugin.xml @@ -16,4 +16,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/DebugAsElementTypeContributionItem.java b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/DebugAsElementTypeContributionItem.java new file mode 100644 index 00000000..1632e91e --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/DebugAsElementTypeContributionItem.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2019 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 + *******************************************************************************/ +package org.eclipse.tracecompass.incubator.scripting.ui.project.handlers; + +import java.util.HashSet; +import java.util.Objects; +import java.util.Set; + +import org.eclipse.debug.core.ILaunchManager; +import org.eclipse.tracecompass.tmf.core.util.Pair; + +/** + * ContributionItem for the Debug As -> . + * + * @author Bernd Hufmann + * + */ +public class DebugAsElementTypeContributionItem extends LaunchElementTypeContributionItem { + + private static final String EASE_LAUNCH_SHORTCUT = "org.eclipse.ease.launchShortcut"; //$NON-NLS-1$ + + @Override + protected String getLaunchMode() { + return Objects.requireNonNull(ILaunchManager.DEBUG_MODE); + } + + @Override + protected Set> getParam() { + Set> selectedTraceTypes = new HashSet<>(); + selectedTraceTypes.add(new Pair<>(EASE_LAUNCH_SHORTCUT, Objects.requireNonNull(Messages.Scripting_RunAsScriptName))); + return selectedTraceTypes; + } +} diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/LaunchAsEaseScriptHandler.java b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/LaunchAsEaseScriptHandler.java new file mode 100644 index 00000000..f40b4b38 --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/LaunchAsEaseScriptHandler.java @@ -0,0 +1,153 @@ +/******************************************************************************* + * Copyright (c) 2019 Ericsson, École Polytechnique de Montréal + * + * 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 + *******************************************************************************/ + +package org.eclipse.tracecompass.incubator.scripting.ui.project.handlers; + +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.resources.IResource; +import org.eclipse.debug.core.ILaunchManager; +import org.eclipse.debug.internal.ui.DebugUIPlugin; +import org.eclipse.debug.internal.ui.actions.OpenDebugConfigurations; +import org.eclipse.debug.internal.ui.actions.OpenRunConfigurations; +import org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension; +import org.eclipse.jdt.annotation.Nullable; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.ISelectionProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.viewers.TreeSelection; +import org.eclipse.tracecompass.tmf.ui.project.model.TmfCommonProjectElement; +import org.eclipse.tracecompass.tmf.ui.project.model.TmfTraceElement; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PlatformUI; + +/** + * Command Handler to run scripts. + * + * @author Bernd Hufmann + */ +@SuppressWarnings({ "restriction", "null" }) +public class LaunchAsEaseScriptHandler extends AbstractHandler { + + // ------------------------------------------------------------------------ + // Constants + // ------------------------------------------------------------------------ + + private static final String TYPE_PARAMETER = "org.eclipse.tracecompass.incubator.scripting.ui.commandparameter.launch_as_ease_script.type"; //$NON-NLS-1$ + private static final String MODE_PARAMETER = "org.eclipse.tracecompass.incubator.scripting.ui.commandparameter.launch_as_ease_script.mode"; //$NON-NLS-1$ + + // ------------------------------------------------------------------------ + // Attributes + // ------------------------------------------------------------------------ + + @Nullable + private TreeSelection fSelection = null; + + // ------------------------------------------------------------------------ + // Validation + // ------------------------------------------------------------------------ + + @Override + public boolean isEnabled() { + + // Check if we are closing down + IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); + if (window == null) { + return false; + } + + // Get the selection + IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); + IWorkbenchPart part = page.getActivePart(); + if (part == null) { + return false; + } + ISelectionProvider selectionProvider = part.getSite().getSelectionProvider(); + if (selectionProvider == null) { + return false; + } + ISelection selection = selectionProvider.getSelection(); + + // Make sure selection contains only traces + fSelection = null; + if (selection instanceof TreeSelection) { + fSelection = (TreeSelection) selection; + Iterator iterator = fSelection.iterator(); + while (iterator.hasNext()) { + Object element = iterator.next(); + if (!(element instanceof TmfCommonProjectElement)) { + return false; + } + } + } + + // If we get here, either nothing is selected or everything is a trace + return !selection.isEmpty(); + } + + // ------------------------------------------------------------------------ + // Execution + // ------------------------------------------------------------------------ + + @Override + public @Nullable Object execute(@Nullable ExecutionEvent event) throws ExecutionException { + + TreeSelection selection = fSelection; + // Check if we are closing down + IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); + if (window == null || event == null || selection == null) { + return null; + } + + List allShortCuts = DebugUIPlugin.getDefault().getLaunchConfigurationManager().getLaunchShortcuts(); + if (allShortCuts == null) { + return null; + } + for (Object element : selection.toList()) { + TmfCommonProjectElement trace = (TmfCommonProjectElement) element; + if (trace instanceof TmfTraceElement) { + trace = ((TmfTraceElement) trace).getElementUnderTraceFolder(); + } + IResource resource = trace.getResource(); + String type = event.getParameter(TYPE_PARAMETER); + String mode = event.getParameter(MODE_PARAMETER); + if (resource != null) { + IStructuredSelection s = new StructuredSelection(Arrays.asList(resource)); + if (type.equals(LaunchElementTypeContributionItem.LAUNCH_DIALOG_CONFIG_ID)) { + if (mode.equals(ILaunchManager.RUN_MODE)) { + OpenRunConfigurations r = new OpenRunConfigurations(); + r.run(null); + } + + if (mode.equals(ILaunchManager.DEBUG_MODE)) { + OpenDebugConfigurations r = new OpenDebugConfigurations(); + r.run(null); + } + } else { + for (LaunchShortcutExtension launchShortcutExtension : allShortCuts) { + if (type.equals(launchShortcutExtension.getId())) { + launchShortcutExtension.launch(s, mode); + break; + } + } + } + } + } + return null; + } + +} diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/LaunchElementTypeContributionItem.java b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/LaunchElementTypeContributionItem.java new file mode 100644 index 00000000..5ed7e5e2 --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/LaunchElementTypeContributionItem.java @@ -0,0 +1,133 @@ +/******************************************************************************* + * Copyright (c) 2019 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 + *******************************************************************************/ +package org.eclipse.tracecompass.incubator.scripting.ui.project.handlers; + +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.eclipse.debug.core.ILaunchManager; +import org.eclipse.jdt.annotation.Nullable; +import org.eclipse.jface.action.IContributionItem; +import org.eclipse.tracecompass.tmf.core.util.Pair; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.actions.CompoundContributionItem; +import org.eclipse.ui.menus.CommandContributionItem; +import org.eclipse.ui.menus.CommandContributionItemParameter; + + +/** + * Base ContributionItem for the Run As -> or Debug As -> . + * + * @author Bernd Hufmann + * + */ +public abstract class LaunchElementTypeContributionItem extends CompoundContributionItem { + + private static final String TYPE_PARAMETER = "org.eclipse.tracecompass.incubator.scripting.ui.commandparameter.launch_as_ease_script.type"; //$NON-NLS-1$ + private static final String MODE_PARAMETER = "org.eclipse.tracecompass.incubator.scripting.ui.commandparameter.launch_as_ease_script.mode"; //$NON-NLS-1$ + private static final String LAUNCH_AS_EASE_SCRIPT_COMMAND_ID = "org.eclipse.tracecompass.incubator.scripting.ui.command.launch_as_ease_script"; //$NON-NLS-1$ + private static final String LAUCH_DIALOG_STRING = "Configuration..."; //$NON-NLS-1$ + private static final String RUN_STRING = "Run"; //$NON-NLS-1$ + private static final String DEBUG_STRING = "Debug"; //$NON-NLS-1$ + private static final Comparator ITEM_COMPARATOR = new ItemComparator(); + + /** ID to identify the Open Run/Debug dialog menu item */ + public static final String LAUNCH_DIALOG_CONFIG_ID = "org.eclipse.tracecompass.incubator.scripting.ui.launch-dialog"; //$NON-NLS-1$ + + private static final class ItemComparator implements Comparator { + @Override + public int compare(IContributionItem o1, IContributionItem o2) { + CommandContributionItem c1 = (CommandContributionItem) o1; + CommandContributionItem c2 = (CommandContributionItem) o2; + if (c1.getData().label.equals(c2.getData().label)) { + return 0; + } + if (c1.getData().label.endsWith(LAUCH_DIALOG_STRING)) { + return 1; + } + if (c2.getData().label.endsWith(LAUCH_DIALOG_STRING)) { + return -1; + } + return c1.getData().label.compareTo(c2.getData().label); + } + } + + @Override + protected IContributionItem[] getContributionItems() { + + /* + * Fill the selected trace types and verify if selection applies only to + * either traces or experiments + */ + Set> selectedTraceTypes = new HashSet<>(getParam()); + Pair launchConfiguration = getLaunchConfigurationParam(); + if (launchConfiguration != null) { + selectedTraceTypes.add(launchConfiguration); + } + + List list = new LinkedList<>(); + for (Pair item : selectedTraceTypes) { + Map params = new HashMap<>(); + params.put(TYPE_PARAMETER, item.getFirst()); + params.put(MODE_PARAMETER, getLaunchMode()); + CommandContributionItemParameter param = new CommandContributionItemParameter( + PlatformUI.getWorkbench().getActiveWorkbenchWindow(), // serviceLocator + "my.parameterid", // id //$NON-NLS-1$ + getContributionItemCommandId(), // commandId + CommandContributionItem.STYLE_PUSH // style + ); + param.parameters = params; + param.label = item.getSecond(); + param.visibleEnabled = true; + list.add(new CommandContributionItem(param)); + } + Collections.sort(list, ITEM_COMPARATOR); + return list.toArray(new IContributionItem[list.size()]); + } + + /** + * Returns the command id to use for contribution items + * + * @return the command id + */ + protected String getContributionItemCommandId() { + return LAUNCH_AS_EASE_SCRIPT_COMMAND_ID; + } + + /** + * Get the launch mode + * + * @return one of {@link ILaunchManager#RUN_MODE} or {@link ILaunchManager#DEBUG_MODE} + */ + protected abstract String getLaunchMode(); + + /** + * Pairs of launch shortcut ID to shortcut label + * + * @return Pairs of launch shortcut ID to shortcut label + */ + protected abstract Set> getParam(); + + @Nullable private Pair getLaunchConfigurationParam() { + if (getLaunchMode().equals(ILaunchManager.RUN_MODE)) { + return new Pair<>(LAUNCH_DIALOG_CONFIG_ID, RUN_STRING + ' ' + LAUCH_DIALOG_STRING); + } + if (getLaunchMode().equals(ILaunchManager.DEBUG_MODE)) { + return new Pair<>(LAUNCH_DIALOG_CONFIG_ID, DEBUG_STRING + ' ' + LAUCH_DIALOG_STRING); + } + return null; + } + +} diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/Messages.java b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/Messages.java new file mode 100644 index 00000000..58af1964 --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/Messages.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2019 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 + *******************************************************************************/ +package org.eclipse.tracecompass.incubator.scripting.ui.project.handlers; + +import org.eclipse.jdt.annotation.Nullable; +import org.eclipse.osgi.util.NLS; + +/** + * Messages class + * + * @author Bernd Hufmann + * + */ +public class Messages extends NLS { + private static final String BUNDLE_NAME = "org.eclipse.tracecompass.incubator.scripting.ui.project.handlers.messages"; //$NON-NLS-1$ + /** Menu entry for run/debug as menu*/ + public static @Nullable String Scripting_RunAsScriptName; + static { + // initialize resource bundle + NLS.initializeMessages(BUNDLE_NAME, Messages.class); + } + + private Messages() { + } +} diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/RunAsElementTypeContributionItem.java b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/RunAsElementTypeContributionItem.java new file mode 100644 index 00000000..e9c3fed2 --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/RunAsElementTypeContributionItem.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2019 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 + *******************************************************************************/ +package org.eclipse.tracecompass.incubator.scripting.ui.project.handlers; + +import java.util.HashSet; +import java.util.Objects; +import java.util.Set; + +import org.eclipse.debug.core.ILaunchManager; +import org.eclipse.tracecompass.tmf.core.util.Pair; + +/** + * ContributionItem for the Run As -> . + * + * @author Bernd Hufmann + * + */ +public class RunAsElementTypeContributionItem extends LaunchElementTypeContributionItem { + + private static final String EASE_LAUNCH_SHORTCUT = "org.eclipse.ease.launchShortcut"; //$NON-NLS-1$ + + @Override + protected String getLaunchMode() { + return Objects.requireNonNull(ILaunchManager.RUN_MODE); + } + + @Override + protected Set> getParam() { + Set> selectedTraceTypes = new HashSet<>(); + selectedTraceTypes.add(new Pair<>(EASE_LAUNCH_SHORTCUT, Objects.requireNonNull(Messages.Scripting_RunAsScriptName))); + return selectedTraceTypes; + } +} diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/ScriptEngineTester.java b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/ScriptEngineTester.java new file mode 100644 index 00000000..3451a18f --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/ScriptEngineTester.java @@ -0,0 +1,50 @@ +/******************************************************************************* + * Copyright (c) 2019 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 + *******************************************************************************/ +package org.eclipse.tracecompass.incubator.scripting.ui.project.handlers; + +import java.util.Iterator; + +import org.eclipse.core.expressions.PropertyTester; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IResource; +import org.eclipse.ease.ui.propertytester.EngineTester; +import org.eclipse.jdt.annotation.Nullable; +import org.eclipse.jface.viewers.TreeSelection; +import org.eclipse.tracecompass.tmf.ui.project.model.TmfTraceElement; + +/** + * Checks if an script as an engine for installed. + * + * @author Bernd Hufmann + * + */ +@SuppressWarnings("restriction") +public class ScriptEngineTester extends PropertyTester { + + private EngineTester fDelegateTester = new EngineTester(); + + @Override + public boolean test(@Nullable Object receiver, @Nullable String property, Object @Nullable [] args, @Nullable Object expectedValue) { + if (receiver instanceof TreeSelection) { + TreeSelection selection = (TreeSelection) receiver; + Iterator iterator = selection.iterator(); + while (iterator.hasNext()) { + Object element = iterator.next(); + if (element instanceof TmfTraceElement) { + IResource resource = ((TmfTraceElement) element).getResource(); + if (resource instanceof IFile) { + return fDelegateTester.test(resource, property, args, expectedValue); + } + } + break; + } + } + return false; + } +} diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/messages.properties b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/messages.properties new file mode 100644 index 00000000..11309a24 --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/messages.properties @@ -0,0 +1,10 @@ +############################################################################### +# Copyright (c) 2019 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 +############################################################################### + +Scripting_RunAsScriptName=Ease Script diff --git a/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/package-info.java b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/package-info.java new file mode 100644 index 00000000..e521213c --- /dev/null +++ b/analyses/org.eclipse.tracecompass.incubator.scripting.ui/src/org/eclipse/tracecompass/incubator/scripting/ui/project/handlers/package-info.java @@ -0,0 +1,11 @@ +/******************************************************************************* + * Copyright (c) 2016 École Polytechnique de Montréal + * + * 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 + *******************************************************************************/ + +@org.eclipse.jdt.annotation.NonNullByDefault +package org.eclipse.tracecompass.incubator.scripting.ui.project.handlers; diff --git a/common/org.eclipse.tracecompass.incubator.target/tracecompass-incubator-master.target b/common/org.eclipse.tracecompass.incubator.target/tracecompass-incubator-master.target index 5e5181fb..a3ae17a3 100644 --- a/common/org.eclipse.tracecompass.incubator.target/tracecompass-incubator-master.target +++ b/common/org.eclipse.tracecompass.incubator.target/tracecompass-incubator-master.target @@ -164,8 +164,8 @@ - - + +