Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 247661 Details for
Bug 324773
[patch] feature.xml editor, Recompute check box in dependencies tab does not stay set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
feature.xml saves the previous state of the recompute check box specific to the feature project.
eclipse.pde.ui.patch (text/plain), 3.17 KB, created by
pragya gaur
on 2014-10-07 02:02:00 EDT
(
hide
)
Description:
feature.xml saves the previous state of the recompute check box specific to the feature project.
Filename:
MIME Type:
Creator:
pragya gaur
Created:
2014-10-07 02:02:00 EDT
Size:
3.17 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.pde.ui >diff --git src/org/eclipse/pde/internal/ui/editor/feature/RequiresSection.java src/org/eclipse/pde/internal/ui/editor/feature/RequiresSection.java >index a983cee..7baf455 100644 >--- src/org/eclipse/pde/internal/ui/editor/feature/RequiresSection.java >+++ src/org/eclipse/pde/internal/ui/editor/feature/RequiresSection.java >@@ -14,7 +14,7 @@ > > import java.util.ArrayList; > import java.util.Iterator; >-import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.*; > import org.eclipse.jface.action.*; > import org.eclipse.jface.viewers.*; > import org.eclipse.jface.window.Window; >@@ -23,8 +23,7 @@ > import org.eclipse.pde.internal.core.*; > import org.eclipse.pde.internal.core.feature.FeatureImport; > import org.eclipse.pde.internal.core.ifeature.*; >-import org.eclipse.pde.internal.ui.PDEPlugin; >-import org.eclipse.pde.internal.ui.PDEUIMessages; >+import org.eclipse.pde.internal.ui.*; > import org.eclipse.pde.internal.ui.dialogs.FeatureSelectionDialog; > import org.eclipse.pde.internal.ui.dialogs.PluginSelectionDialog; > import org.eclipse.pde.internal.ui.editor.*; >@@ -36,6 +35,8 @@ > import org.eclipse.swt.SWT; > import org.eclipse.swt.custom.BusyIndicator; > import org.eclipse.swt.dnd.Clipboard; >+import org.eclipse.swt.events.SelectionAdapter; >+import org.eclipse.swt.events.SelectionEvent; > import org.eclipse.swt.graphics.Cursor; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.widgets.*; >@@ -44,6 +45,7 @@ > import org.eclipse.ui.actions.ActionFactory; > import org.eclipse.ui.forms.widgets.FormToolkit; > import org.eclipse.ui.forms.widgets.Section; >+import org.osgi.service.prefs.Preferences; > > public class RequiresSection extends TableSection implements IPluginModelListener, IFeatureModelListener { > private Button fSyncButton; >@@ -87,6 +89,7 @@ > @Override > public void createClient(Section section, FormToolkit toolkit) { > >+ final IFeatureModel model = (IFeatureModel) getPage().getModel(); > section.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); > GridData data = new GridData(GridData.FILL_BOTH); > section.setLayoutData(data); >@@ -98,6 +101,13 @@ > GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL); > gd.horizontalSpan = 2; > fSyncButton.setLayoutData(gd); >+ fSyncButton.addSelectionListener(new SelectionAdapter() { >+ @Override >+ public void widgetSelected(SelectionEvent e) { >+ Preferences prefs = Platform.getPreferencesService().getRootNode().node(Plugin.PLUGIN_PREFERENCE_SCOPE).node(IPDEUIConstants.PLUGIN_ID); >+ prefs.putBoolean(model.getFeature().getLabel(), fSyncButton.getSelection()); >+ } >+ }); > > createViewerPartControl(container, SWT.MULTI, 2, toolkit); > >@@ -404,6 +414,8 @@ > getTablePart().setButtonEnabled(3, false); > fSyncButton.setEnabled(false); > } >+ Preferences prefs = Platform.getPreferencesService().getRootNode().node(Plugin.PLUGIN_PREFERENCE_SCOPE).node(IPDEUIConstants.PLUGIN_ID); >+ fSyncButton.setSelection(prefs.getBoolean(model.getFeature().getLabel(), false)); > model.addModelChangedListener(this); > PDECore.getDefault().getModelManager().addPluginModelListener(this); > PDECore.getDefault().getFeatureModelManager().addFeatureModelListener(this);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 324773
:
247061
| 247661 |
247956