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 81033 Details for
Bug 190717
[Target][Editors] Target editor, content page: Features tab should not show Add Working Set etc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for R3.4
eclipse-pde-bug190717-patch-r34.txt (text/plain), 2.39 KB, created by
Les Jones
on 2007-10-24 04:49:27 EDT
(
hide
)
Description:
Patch for R3.4
Filename:
MIME Type:
Creator:
Les Jones
Created:
2007-10-24 04:49:27 EDT
Size:
2.39 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.pde.ui >Index: src/org/eclipse/pde/internal/ui/parts/SharedPartWithButtons.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/parts/SharedPartWithButtons.java,v >retrieving revision 1.12 >diff -u -r1.12 SharedPartWithButtons.java >--- src/org/eclipse/pde/internal/ui/parts/SharedPartWithButtons.java 8 Jun 2007 16:45:07 -0000 1.12 >+++ src/org/eclipse/pde/internal/ui/parts/SharedPartWithButtons.java 24 Oct 2007 07:39:09 -0000 >@@ -44,6 +44,19 @@ > fButtons[index].setEnabled(enabled); > } > } >+ >+ /** >+ * Set the specified button's visibility. >+ * Fix for defect 190717. >+ * @param index The index of the button to be changed >+ * @param visible true if the button is to be shown, false if hidden >+ */ >+ public void setButtonVisible(int index, boolean visible) { >+ if (fButtons != null && index >= 0 && fButtons.length > index) { >+ fButtons[index].setVisible(visible); >+ } >+ } >+ > protected abstract void createMainControl(Composite parent, int style, > int span, FormToolkit toolkit); > protected abstract void buttonSelected(Button button, int index); >Index: src/org/eclipse/pde/internal/ui/editor/target/ContentSection.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/target/ContentSection.java,v >retrieving revision 1.22 >diff -u -r1.22 ContentSection.java >--- src/org/eclipse/pde/internal/ui/editor/target/ContentSection.java 7 Sep 2007 04:17:31 -0000 1.22 >+++ src/org/eclipse/pde/internal/ui/editor/target/ContentSection.java 24 Oct 2007 07:39:09 -0000 >@@ -304,6 +304,15 @@ > boolean pluginTab = (fLastTab == 0); > table.setButtonEnabled(3, isEditable() && pluginTab && !useAllPlugins); > table.setButtonEnabled(4, isEditable() && pluginTab && !useAllPlugins && hasItems); >+ >+ // Fix for defect 190717 >+ // Only show the working set and required buttons on the plugin tab >+ // (retaining the existing enablement logic in the rare case the >+ // platform doesn't support control.visible=false; I can't imagine >+ // how this would happen, but better to be safe?) >+ table.setButtonVisible(3, pluginTab); >+ table.setButtonVisible(4, pluginTab); >+ > } > > protected boolean canPaste(Object target, Object[] objects) {
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 190717
: 81033 |
81034