|
What this is
Other links
The source code/******************************************************************************* * Copyright (c) 2003, 2006 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.ui.editor; import org.eclipse.jface.viewers.ISelection; import org.eclipse.swt.dnd.Clipboard; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.*; import org.eclipse.ui.forms.AbstractFormPart; import org.eclipse.ui.forms.IDetailsPage; import org.eclipse.ui.forms.widgets.FormToolkit; public abstract class PDEDetails extends AbstractFormPart implements IDetailsPage, IContextPart { public PDEDetails() { } public boolean canPaste(Clipboard clipboard) { return true; } /** * @param selection * @return */ public boolean canCopy(ISelection selection) { // Sub-classes to override return false; } /** * @param selection * @return */ public boolean canCut(ISelection selection) { // Sub-classes to override return false; } public boolean doGlobalAction(String actionId) { return false; } protected void markDetailsPart(Control control) { control.setData("part", this); //$NON-NLS-1$ } protected void createSpacer(FormToolkit toolkit, Composite parent, int span) { Label spacer = toolkit.createLabel(parent, ""); //$NON-NLS-1$ GridData gd = new GridData(); gd.horizontalSpan = span; spacer.setLayoutData(gd); } public void cancelEdit() { super.refresh(); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.