Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2008, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2008, 2013 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 30-35
Link Here
|
30 |
import org.eclipse.jface.viewers.StructuredSelection; |
30 |
import org.eclipse.jface.viewers.StructuredSelection; |
31 |
import org.eclipse.jface.wizard.WizardDialog; |
31 |
import org.eclipse.jface.wizard.WizardDialog; |
32 |
import org.eclipse.pde.core.IModel; |
32 |
import org.eclipse.pde.core.IModel; |
|
|
33 |
import org.eclipse.pde.internal.core.WorkspaceModelManager; |
33 |
import org.eclipse.pde.internal.ua.core.ctxhelp.text.CtxHelpMarkerManager; |
34 |
import org.eclipse.pde.internal.ua.core.ctxhelp.text.CtxHelpMarkerManager; |
34 |
import org.eclipse.pde.internal.ua.core.ctxhelp.text.CtxHelpModel; |
35 |
import org.eclipse.pde.internal.ua.core.ctxhelp.text.CtxHelpModel; |
35 |
import org.eclipse.pde.internal.ua.core.ctxhelp.text.CtxHelpObject; |
36 |
import org.eclipse.pde.internal.ua.core.ctxhelp.text.CtxHelpObject; |
Lines 315-321
Link Here
|
315 |
* @see org.eclipse.pde.internal.ui.editor.PDEFormEditor#contributeToToolbar(org.eclipse.jface.action.IToolBarManager) |
316 |
* @see org.eclipse.pde.internal.ui.editor.PDEFormEditor#contributeToToolbar(org.eclipse.jface.action.IToolBarManager) |
316 |
*/ |
317 |
*/ |
317 |
public void contributeToToolbar(IToolBarManager manager) { |
318 |
public void contributeToToolbar(IToolBarManager manager) { |
318 |
if (getAggregateModel().isEditable()) { |
319 |
if (WorkspaceModelManager.isPluginProject(getCommonProject()) && getAggregateModel().isEditable()) { |
319 |
manager.add(new ControlContribution("Register") { //$NON-NLS-1$ |
320 |
manager.add(new ControlContribution("Register") { //$NON-NLS-1$ |
320 |
protected Control createControl(Composite parent) { |
321 |
protected Control createControl(Composite parent) { |
321 |
ImageHyperlink fImageHyperlinkRegisterTOC = new ImageHyperlink(parent, SWT.NONE); |
322 |
ImageHyperlink fImageHyperlinkRegisterTOC = new ImageHyperlink(parent, SWT.NONE); |