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;
 
 import  org.eclipse.swt.widgets.Composite;
CSAbstractDetails
 
 public abstract class CSAbstractDetails extends PDEDetails implements ICSDetails {
 
 
 	private String fContextID;

 
 	public CSAbstractDetails(ICSMaster masterSectionString contextID) {
 		 = masterSection;
 		 = contextID;
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.ui.forms.IDetailsPage#createContents(org.eclipse.swt.widgets.Composite)
 	 */
 	public void createContents(Composite parent) {
 		createDetails(parent);
 	}

Parameters:
parent
 
 	private void configureParentLayout(Composite parent) {
 		parent.setLayout(FormLayoutFactory.createDetailsGridLayout(false, 1));
 	}

Parameters:
parent
 
 	public abstract void createDetails(Composite parent);

 
 	public abstract void updateFields();

 
 	public abstract void hookListeners();
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.ui.forms.IPartSelectionListener#selectionChanged(org.eclipse.ui.forms.IFormPart, org.eclipse.jface.viewers.ISelection)
 	 */
 	public void selectionChanged(IFormPart partISelection selection) {
 		// NO-OP
 		// Children to override
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.pde.internal.ui.editor.IContextPart#fireSaveNeeded()
 	 */
 	public void fireSaveNeeded() {
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.pde.internal.ui.editor.IContextPart#getContextId()
 	 */
 	public String getContextId() {
 		return ;
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.pde.internal.ui.editor.IContextPart#getPage()
 	 */
 	public PDEFormPage getPage() {
	}
	/* (non-Javadoc)
	 * @see org.eclipse.pde.internal.ui.editor.IContextPart#isEditable()
	 */
	public boolean isEditable() {
	}
	/* (non-Javadoc)
	 * @see org.eclipse.pde.core.IModelChangedListener#modelChanged(org.eclipse.pde.core.IModelChangedEvent)
	 */
	public void modelChanged(IModelChangedEvent event) {
		// NO-OP
	}

Returns:
	public boolean isEditableElement() {
	}

Returns:
	public FormToolkit getToolkit() {
	}

Returns:
	}

Parameters:
selection
Returns:
	protected Object getFirstSelectedObject(ISelection selection) {
		// Get the structured selection (obtained from the master tree viewer)
		IStructuredSelection structuredSel = ((IStructuredSelectionselection);
		// Ensure we have a selection
		if (structuredSel == null) {
			return null;
		}
		return structuredSel.getFirstElement();
	}
New to GrepCode? Check out our FAQ X