View | Details | Raw Unified | Return to bug 387272 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.jdt.ui/templates/default-swttemplates.xml (-2 / +2 lines)
Lines 388-396 Link Here
388
	id="org.eclipse.jdt.ui.text.codetemplates.swt.text" 
388
	id="org.eclipse.jdt.ui.text.codetemplates.swt.text" 
389
	context="swt-statements" enabled="true" autoinsert="false"
389
	context="swt-statements" enabled="true" autoinsert="false"
390
	
390
	
391
>${type:newType(org.eclipse.swt.widgets.Text)} ${text:newName(org.eclipse.swt.widgets.Text)}= new ${type}(${parent:var(org.eclipse.swt.widgets.Composite)}, ${style:link('SWT.SINGLE | SWT.LEAD | SWT.BORDER', 'SWT.SINGLE | SWT.LEAD | SWT.READ_ONLY | SWT.BORDER', 'SWT.SINGLE | SWT.LEAD | SWT.PASSWORD | SWT.BORDER', 'SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.BORDER', 'SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER')});
391
>${type:newType(org.eclipse.swt.widgets.Text)} ${text:newName(org.eclipse.swt.widgets.Text)}= new ${type}(${parent:var(org.eclipse.swt.widgets.Composite)}, ${style:link('SWT.SINGLE | SWT.BORDER', 'SWT.SINGLE | SWT.READ_ONLY | SWT.BORDER', 'SWT.SINGLE | SWT.PASSWORD | SWT.BORDER', 'SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.BORDER', 'SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER')});
392
${text}.setLayoutData(new ${gridDataType:newType(org.eclipse.swt.layout.GridData)}(SWT.${horizontal:link(FILL, BEGINNING, CENTER, END)}, SWT.${vertical:link(CENTER, TOP, BOTTOM, FILL)}, ${hex:link(true, false)}, ${vex:link(false, true)}));
392
${text}.setLayoutData(new ${gridDataType:newType(org.eclipse.swt.layout.GridData)}(SWT.${horizontal:link(FILL, BEGINNING, CENTER, END)}, SWT.${vertical:link(CENTER, TOP, BOTTOM, FILL)}, ${hex:link(true, false)}, ${vex:link(false, true)}));
393
${text}.setText(${word_selection}${});
393
${text}.setText("${word_selection}${}");
394
${imp:import(org.eclipse.swt.SWT)}${cursor}</template>
394
${imp:import(org.eclipse.swt.SWT)}${cursor}</template>
395
395
396
<template 
396
<template 

Return to bug 387272