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 247061 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.
eclipse.pde.ui.patch (text/plain), 2.85 KB, created by
pragya gaur
on 2014-09-15 05:18:43 EDT
(
hide
)
Description:
Feature.xml saves the previous state of the Recompute check box.
Filename:
MIME Type:
Creator:
pragya gaur
Created:
2014-09-15 05:18:43 EDT
Size:
2.85 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..bfe458f 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; >@@ -98,6 +100,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("fsyncButton", fSyncButton.getSelection()); //$NON-NLS-1$ >+ } >+ }); > > createViewerPartControl(container, SWT.MULTI, 2, toolkit); > >@@ -404,6 +413,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("fsyncButton", false)); //$NON-NLS-1$ > 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