IParameter[] parms = null; try { parms = command.getParameters(); } catch (NotDefinedException e) {
IParameter[] parms = null; try { parms = command.getParameters(); } catch (NotDefinedException e) {
IParameter[] parms = null; try { parms = command.getParameters(); } catch (NotDefinedException e) {
final IParameter[] parameters = command.getParameters(); if (parameters == null) { return Collections.singleton(new ParameterizedCommand(command, null));
final IParameter[] parameters = command.getParameters(); if (parameters == null) { return Collections.singleton(new ParameterizedCommand(command, null));
private boolean hasTypedParameterMatch(Command command, Object object) throws CommandException { IParameter[] params = command.getParameters(); if (params != null) { for (IParameter param : params) { ParameterType parameterType = command.getParameterType(param.getId()); if (parameterType != null) { if (parameterType.isCompatible(object)) return true; } } } return false; }
final IParameter[] parameters = command.getParameters(); if (parameters == null) { return Collections.singleton(new ParameterizedCommand(command, null));
ModelElement(CompletionProposalCategory category, PreferenceModel model) { fCategory= category; ICommandService commandSvc= (ICommandService) PlatformUI.getWorkbench().getAdapter(ICommandService.class); fCommand= commandSvc.getCommand("org.eclipse.jdt.ui.specific_content_assist.command"); //$NON-NLS-1$ IParameter type; try { type= fCommand.getParameters()[0]; } catch (NotDefinedException x) { Assert.isTrue(false); type= null; } fParam= type; fPreferenceModel= model; } Image getImage() {
ModelElement(CompletionProposalCategory category, PreferenceModel model) { fCategory= category; ICommandService commandSvc= PlatformUI.getWorkbench().getAdapter(ICommandService.class); fCommand= commandSvc.getCommand("org.eclipse.jdt.ui.specific_content_assist.command"); //$NON-NLS-1$ IParameter type; try { type= fCommand.getParameters()[0]; } catch (NotDefinedException x) { Assert.isTrue(false); type= null; } fParam= type; fPreferenceModel= model; } Image getImage() {
ModelElement(CompletionProposalCategory category, PreferenceModel model) { fCategory= category; ICommandService commandSvc= PlatformUI.getWorkbench().getAdapter(ICommandService.class); fCommand= commandSvc.getCommand("org.eclipse.jdt.ui.specific_content_assist.command"); //$NON-NLS-1$ IParameter type; try { type= fCommand.getParameters()[0]; } catch (NotDefinedException x) { Assert.isTrue(false); type= null; } fParam= type; fPreferenceModel= model; } Image getImage() {
final IParameter[] parameters = command.getParameters(); final Parameterization[] parameterizations = getParameterizations( serializedParameters, parameters);
final IParameter[] parameters = command.getParameters(); final Parameterization[] parameterizations = getParameterizations( serializedParameters, parameters);
final IParameter[] parameters = command.getParameters(); final Parameterization[] parameterizations = getParameterizations( serializedParameters, parameters);
final IParameter[] commandParameters = command.getParameters(); if (parameters != null) { for (final IParameter currentParameter : commandParameters) {
IParameter[] parameters = command.getParameters(); if (parameters == null || parameters.length == 0) { fParamLabel.setText(PDEUIMessages.CommandDetails_noParameters);
final IParameter[] commandParameters = command.getParameters(); if (parameters != null) { for (final IParameter currentParameter : commandParameters) {
IParameter[] cmdParms = cmd.getParameters(); if (cmdParms != null) { for (IParameter cmdParm : cmdParms) {