Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2006, 2008 IBM Corporation and others. 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: IBM Corporation - initial API and implementation /
package org.eclipse.pde.internal.ua.ui.editor.cheatsheet.comp.actions;
CompCSAddTaskAction
public class CompCSAddTaskAction extends CompCSAbstractAddAction {

	public CompCSAddTaskAction() {
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.action.Action#run()
	 */
	public void run() {
		if ( == null) {
			return;
		}
		ICompCSTask task = CompCSCreationOperation.createBasicTask();
		// Set on the proper parent object
			task.setFieldName(name);
			parent.addFieldTaskObject(task);
			// Not supported by editor
		}
	}
New to GrepCode? Check out our FAQ X