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 137591 Details for
Bug 278323
display additional information in section headers
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]
patch for local task editor
clipboard.txt (text/plain), 3.44 KB, created by
Steffen Pingel
on 2009-05-28 21:01:38 EDT
(
hide
)
Description:
patch for local task editor
Filename:
MIME Type:
Creator:
Steffen Pingel
Created:
2009-05-28 21:01:38 EDT
Size:
3.44 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java,v >retrieving revision 1.1 >diff -u -r1.1 AttributePart.java >--- src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java 28 May 2009 03:36:06 -0000 1.1 >+++ src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java 29 May 2009 01:02:46 -0000 >@@ -13,17 +13,21 @@ > > import org.eclipse.jface.layout.GridDataFactory; > import org.eclipse.mylyn.internal.provisional.commons.ui.CommonImages; >+import org.eclipse.mylyn.internal.tasks.core.TaskCategory; > import org.eclipse.mylyn.internal.tasks.ui.editors.RepositoryTextViewerConfiguration.Mode; > import org.eclipse.mylyn.internal.tasks.ui.util.AbstractRetrieveTitleFromUrlJob; > import org.eclipse.mylyn.tasks.ui.TasksUiImages; > import org.eclipse.swt.SWT; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; >+import org.eclipse.swt.layout.RowLayout; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.swt.widgets.Control; > import org.eclipse.swt.widgets.Label; > import org.eclipse.ui.forms.IFormColors; > import org.eclipse.ui.forms.IFormPart; >+import org.eclipse.ui.forms.events.ExpansionAdapter; >+import org.eclipse.ui.forms.events.ExpansionEvent; > import org.eclipse.ui.forms.events.HyperlinkAdapter; > import org.eclipse.ui.forms.events.HyperlinkEvent; > import org.eclipse.ui.forms.widgets.ExpandableComposite; >@@ -52,7 +56,8 @@ > > @Override > public Control createControl(Composite parent, FormToolkit toolkit) { >- int style = ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE; >+ int style = ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE >+ | ExpandableComposite.LEFT_TEXT_CLIENT_ALIGNMENT; > if (getTask().getUrl() != null && getTask().getUrl().length() > 0) { > style |= ExpandableComposite.EXPANDED; > } >@@ -60,6 +65,7 @@ > Section section = toolkit.createSection(parent, style); > section.setText(Messages.TaskPlanningEditor_Attributes); > GridDataFactory.fillDefaults().grab(true, false).applyTo(section); >+ createSectionClient(section, toolkit); > > // URL > Composite urlComposite = toolkit.createComposite(section); >@@ -101,6 +107,34 @@ > return section; > } > >+ private void createSectionClient(final Section section, FormToolkit toolkit) { >+ if (section.getTextClient() == null) { >+ final Composite textClient = toolkit.createComposite(section); >+ textClient.setBackground(null); >+ RowLayout rowLayout = new RowLayout(); >+ EditorUtil.center(rowLayout); >+ rowLayout.marginLeft = 20; >+ rowLayout.marginTop = 0; >+ rowLayout.marginBottom = 0; >+ textClient.setLayout(rowLayout); >+ >+ Label label = toolkit.createLabel(textClient, "Category:"); >+ label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); >+ label.setBackground(null); >+ >+ label = toolkit.createLabel(textClient, TaskCategory.getParentTaskCategory(getTask()).getSummary()); >+ label.setBackground(null); >+ >+ section.setTextClient(textClient); >+ section.addExpansionListener(new ExpansionAdapter() { >+ @Override >+ public void expansionStateChanging(ExpansionEvent e) { >+ textClient.setVisible(!e.getState()); >+ } >+ }); >+ } >+ } >+ > /** > * Set the task summary to the page title from the specified url. > */
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 278323
:
137590
| 137591 |
137592