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 104234 Details for
Bug 235222
[wikitext] integrates Texile-J with bugzilla task editor
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]
wiki integration step 2 - Mylyn part
clipboard.txt (text/plain), 44.45 KB, created by
Jingwen 'Owen' Ou
on 2008-06-09 20:08:06 EDT
(
hide
)
Description:
wiki integration step 2 - Mylyn part
Filename:
MIME Type:
Creator:
Jingwen 'Owen' Ou
Created:
2008-06-09 20:08:06 EDT
Size:
44.45 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.sandbox.ui >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/TaskEditorExtensionReader.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/editors/TaskEditorExtensionReader.java,v >retrieving revision 1.1 >diff -u -r1.1 TaskEditorExtensionReader.java >--- src/org/eclipse/mylyn/internal/sandbox/ui/editors/TaskEditorExtensionReader.java 6 Jun 2008 22:55:54 -0000 1.1 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/TaskEditorExtensionReader.java 10 Jun 2008 00:00:55 -0000 >@@ -28,7 +28,7 @@ > > public static final String ATTR_NAME = "name"; > >- public static final String EXTENSION_TASK_EDITOR_EXTENSIONS = "org.eclipse.mylyn.tasks.ui.taskEditorExtensions"; >+ public static final String EXTENSION_TASK_EDITOR_EXTENSIONS = "org.eclipse.mylyn.sandbox.ui.taskEditorExtensions"; > > private static final String REPOSITORY_ASSOCIATION = "repositoryAssociation"; > >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/sandbox/org.eclipse.mylyn.sandbox.ui/plugin.xml,v >retrieving revision 1.82 >diff -u -r1.82 plugin.xml >--- plugin.xml 6 Jun 2008 22:55:55 -0000 1.82 >+++ plugin.xml 10 Jun 2008 00:00:55 -0000 >@@ -357,7 +357,30 @@ > state="true"> > </decorator> > </extension> >+ <extension >+ point="org.eclipse.mylyn.tasks.ui.editors"> >+ <pageFactory >+ class="org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaWikiTaskEditorPageFactory" >+ id="org.eclipse.mylyn.bugzilla.ui.pageFactory"> >+ </pageFactory> >+ </extension> > >+ <extension >+ point="org.eclipse.mylyn.sandbox.ui.taskEditorExtensions"> >+ <taskEditorExtension >+ class="org.eclipse.mylyn.internal.sandbox.ui.editors.DefalutTaskEditorExtension" >+ id="org.eclipse.mylyn.sandbox.ui.defaultTaskEditorExtension" >+ name="Textile"> >+ </taskEditorExtension> >+ <repositoryAssociation >+ repository="bugzilla" >+ taskEditorExtension="org.eclipse.mylyn.sandbox.ui.defaultTaskEditorExtension"> >+ </repositoryAssociation> >+ <repositoryAssociation >+ repository="local" >+ taskEditorExtension="org.eclipse.mylyn.sandbox.ui.defaultTaskEditorExtension"> >+ </repositoryAssociation> >+ </extension> > > > <!-- >Index: .classpath >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/sandbox/org.eclipse.mylyn.sandbox.ui/.classpath,v >retrieving revision 1.5 >diff -u -r1.5 .classpath >--- .classpath 4 Aug 2006 01:58:00 -0000 1.5 >+++ .classpath 10 Jun 2008 00:00:54 -0000 >@@ -1,6 +1,6 @@ > <?xml version="1.0" encoding="UTF-8"?> > <classpath> >- <classpathentry kind="src" path="src"/> >+ <classpathentry excluding="org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiNewCommentPart.java|org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiTextPart.java" kind="src" path="src"/> > <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> > <accessrules> > <accessrule kind="accessible" pattern="**/internal/**"/> >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/sandbox/org.eclipse.mylyn.sandbox.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.210 >diff -u -r1.210 MANIFEST.MF >--- META-INF/MANIFEST.MF 6 Jun 2008 22:55:54 -0000 1.210 >+++ META-INF/MANIFEST.MF 10 Jun 2008 00:00:55 -0000 >@@ -27,7 +27,9 @@ > org.eclipse.mylyn.monitor.core;bundle-version="[3.0.0,4.0.0)", > org.eclipse.mylyn.resources.ui;bundle-version="[3.0.0,4.0.0)", > org.eclipse.mylyn.ide.ant;bundle-version="[3.0.0,4.0.0)", >- org.eclipse.mylyn.pde.ui;bundle-version="[3.0.0,4.0.0)" >+ org.eclipse.mylyn.pde.ui;bundle-version="[3.0.0,4.0.0)", >+ org.eclipse.mylyn.wikitext.ui;bundle-version="1.0.0", >+ org.eclipse.mylyn.wikitext.textile.core;bundle-version="1.0.0" > Bundle-ActivationPolicy: lazy > Bundle-Vendor: Eclipse.org > Export-Package: org.eclipse.mylyn.internal.sandbox.bridge.bugs;x-internal:=true, >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/WikiTextAttributeEditor.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/WikiTextAttributeEditor.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/WikiTextAttributeEditor.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/WikiTextAttributeEditor.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,143 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla; >+ >+import org.eclipse.jface.text.Document; >+import org.eclipse.jface.text.ITextListener; >+import org.eclipse.jface.text.TextEvent; >+import org.eclipse.jface.text.source.SourceViewer; >+import org.eclipse.mylyn.internal.provisional.commons.ui.CommonThemes; >+import org.eclipse.mylyn.internal.sandbox.ui.editors.AbstractTaskEditorExtension; >+import org.eclipse.mylyn.internal.sandbox.ui.editors.TaskEditorExtensions; >+import org.eclipse.mylyn.internal.tasks.ui.editors.RichTextAttributeEditor; >+import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal; >+import org.eclipse.mylyn.tasks.core.TaskRepository; >+import org.eclipse.mylyn.tasks.core.data.TaskAttribute; >+import org.eclipse.mylyn.tasks.core.data.TaskDataModel; >+import org.eclipse.mylyn.wikitext.ui.viewer.MultiSourceViewer; >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.graphics.Font; >+import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; >+import org.eclipse.ui.PlatformUI; >+import org.eclipse.ui.forms.widgets.FormToolkit; >+import org.eclipse.ui.themes.IThemeManager; >+ >+/** >+ * A multitab source viewer that can edit and preview Textile wikitext markup >+ * >+ * FIXME: it will be cool that RichTextAttributeEditor has a protected method to create the SourceViewer >+ * (RepositoryTextViewer), then subclasses can then create its own SourceViewer without overriding createControl and >+ * copying the code in it >+ * >+ * @author Jingwen Ou >+ */ >+public class WikiTextAttributeEditor extends RichTextAttributeEditor { >+ >+ /** >+ * left for future extensions >+ */ >+// private boolean enabled = true; >+// >+// public boolean isEnabled() { >+// return enabled; >+// } >+// >+// public void setEnabled(boolean enabled) { >+// this.enabled = enabled; >+// } >+ private final int style; >+ >+ private final TaskRepository taskRepository; >+ >+ private SourceViewer viewer; >+ >+ public WikiTextAttributeEditor(TaskDataModel manager, TaskRepository taskRepository, TaskAttribute taskAttribute, >+ int style) { >+ super(manager, taskRepository, taskAttribute, style); >+ this.style = style; >+ this.taskRepository = taskRepository; >+ } >+ >+ public WikiTextAttributeEditor(TaskDataModel manager, TaskRepository taskRepository, TaskAttribute taskAttribute) { >+ this(manager, taskRepository, taskAttribute, SWT.MULTI); >+ } >+ >+ @Override >+ public void createControl(Composite parent, FormToolkit toolkit) { >+ /** >+ * left for future extensions >+ */ >+// if (!isEnabled()) { >+// super.createControl(parent, toolkit); >+// return; >+// } >+ int style = this.style; >+ if (!isReadOnly() && (style & TasksUiInternal.SWT_NO_SCROLL) == 0) { >+ style |= SWT.V_SCROLL; >+ } >+ >+ AbstractTaskEditorExtension extension = TaskEditorExtensions.getTaskEditorExtension(taskRepository); >+ if (extension != null) { >+ if (isReadOnly()) { >+ viewer = extension.createViewer(taskRepository, parent, style); >+ } else { >+ viewer = extension.createEditor(taskRepository, parent, style); >+ } >+ } >+ Document document = new Document(getValue()); >+ >+ if (viewer == null) { >+ super.createControl(parent, toolkit); >+ return; >+ } >+ >+ if (isReadOnly()) { >+ viewer.setEditable(false); >+ viewer.setDocument(document); >+ } else { >+ viewer.setEditable(true); >+ if (viewer.getDocument() == null) { >+ viewer.setDocument(document); >+ } >+ viewer.addTextListener(new ITextListener() { >+ public void textChanged(TextEvent event) { >+ // filter out events caused by text presentation changes, e.g. annotation drawing >+ String value = viewer.getTextWidget().getText(); >+ if (!getValue().equals(value)) { >+ setValue(value); >+ } >+ } >+ }); >+ >+ viewer.getControl().setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); >+ } >+ >+ IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager(); >+ Font font = themeManager.getCurrentTheme().getFontRegistry().get(CommonThemes.FONT_EDITOR_COMMENT); >+ viewer.getTextWidget().setFont(font); >+ toolkit.adapt(viewer.getTextWidget(), true, false); >+ >+ setControl(viewer.getTextWidget()); >+ } >+ >+ @Override >+ public SourceViewer getViewer() { >+ return viewer; >+ } >+ >+ @Override >+ public Control getControl() { >+ if (viewer instanceof MultiSourceViewer) { >+ return ((MultiSourceViewer) viewer).getParentControl(); >+ } >+ >+ return super.getControl(); >+ } >+} >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiNewCommentPart.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiNewCommentPart.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiNewCommentPart.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiNewCommentPart.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,27 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla; >+ >+import org.eclipse.mylyn.tasks.core.data.TaskAttribute; >+import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage; >+import org.eclipse.ui.forms.widgets.ExpandableComposite; >+ >+public class TaskEditorWikiNewCommentPart extends TaskEditorWikiTextPart { >+ public TaskEditorWikiNewCommentPart() { >+ setPartName("New Comment"); >+ setSectionStyle(ExpandableComposite.TITLE_BAR | ExpandableComposite.EXPANDED); >+ setExpandVertically(true); >+ } >+ >+ @Override >+ public void initialize(AbstractTaskEditorPage taskEditorPage) { >+ super.initialize(taskEditorPage); >+ setAttribute(getModel().getTaskData().getRoot().getMappedAttribute(TaskAttribute.COMMENT_NEW)); >+ } >+} >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPageFactory.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPageFactory.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPageFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPageFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,26 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla; >+ >+import org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPageFactory; >+import org.eclipse.mylyn.tasks.ui.editors.TaskEditor; >+import org.eclipse.ui.forms.editor.FormPage; >+ >+/** >+ * A bugzilla task editor page factory that invokes a task editor page that has wiki facilities >+ * >+ * @author Jingwen Ou >+ */ >+public class BugzillaWikiTaskEditorPageFactory extends BugzillaTaskEditorPageFactory { >+ >+ @Override >+ public FormPage createPage(TaskEditor parentEditor) { >+ return new BugzillaWikiTaskEditorPage(parentEditor); >+ } >+} >Index: .refactorings/2008/6/23/refactorings.index >=================================================================== >RCS file: .refactorings/2008/6/23/refactorings.index >diff -N .refactorings/2008/6/23/refactorings.index >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .refactorings/2008/6/23/refactorings.index 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+1212827078015 Move compilation unit >+1212828531765 Move compilation units >+1212830996265 Extract method 'checkMarkupLanguage' >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/AbstractMarkupTaskEditorExtension.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/editors/AbstractMarkupTaskEditorExtension.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/editors/AbstractMarkupTaskEditorExtension.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/AbstractMarkupTaskEditorExtension.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,82 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.editors; >+ >+import org.eclipse.jface.text.source.SourceViewer; >+import org.eclipse.mylyn.tasks.core.TaskRepository; >+import org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage; >+import org.eclipse.mylyn.wikitext.ui.viewer.MarkupViewer; >+import org.eclipse.mylyn.wikitext.ui.viewer.MarkupViewerConfiguration; >+import org.eclipse.mylyn.wikitext.ui.viewer.MultiSourceViewer; >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.widgets.Composite; >+ >+/** >+ * An abstract class that extends AbstractTaskEditorExtension and provides super cool helper methods >+ * >+ * @author Jingwen Ou >+ */ >+public abstract class AbstractMarkupTaskEditorExtension extends AbstractTaskEditorExtension { >+ >+ private MarkupLanguage markupLanguage;; >+ >+ public AbstractMarkupTaskEditorExtension() { >+ initializeMarkupLanguage(); >+ } >+ >+ private void checkMarkupLanguageNull() { >+ if (markupLanguage == null) { >+ throw new IllegalStateException(); >+ } >+ } >+ >+ protected SourceViewer createMultiSourceViewer(TaskRepository taskRepository, Composite parent, int style) { >+ return createMultiSourceViewer(taskRepository, parent, style, true); >+ } >+ >+ protected SourceViewer createMultiSourceViewer(final TaskRepository taskRepository, Composite parent, int style, >+ boolean enable) { >+ checkMarkupLanguageNull(); >+ >+ MultiSourceViewer multiSourceViewer = new MultiSourceViewer(parent, null, style | SWT.FLAT | SWT.WRAP) { >+ >+ @Override >+ protected SourceViewer createPreviewViewer(Composite parent, int style) { >+ return createReadOnlyViewer(taskRepository, parent, style); >+ } >+ }; >+ >+ multiSourceViewer.setMarkupLanguage(markupLanguage.clone()); >+ multiSourceViewer.getTextWidget().setEditable(true); >+ >+ return multiSourceViewer; >+ } >+ >+ protected SourceViewer createReadOnlyViewer(TaskRepository taskRepository, Composite parent, int style) { >+ checkMarkupLanguageNull(); >+ MarkupViewer markupViewer = new MarkupViewer(parent, null, style | SWT.FLAT | SWT.WRAP); >+ markupViewer.setMarkupLanguage(markupLanguage.clone()); >+ MarkupViewerConfiguration configuration = new MarkupViewerConfiguration(markupViewer); >+ markupViewer.configure(configuration); >+ >+ markupViewer.getTextWidget().setEditable(false); >+ >+ return markupViewer; >+ } >+ >+ public MarkupLanguage getMarkupLanguage() { >+ return markupLanguage; >+ } >+ >+ public abstract void initializeMarkupLanguage(); >+ >+ public void setMarkupLanguage(MarkupLanguage markupLanguage) { >+ this.markupLanguage = markupLanguage; >+ } >+} >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiTextPart.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiTextPart.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiTextPart.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/TaskEditorWikiTextPart.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,131 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla; >+ >+import org.eclipse.jface.layout.GridDataFactory; >+import org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil; >+import org.eclipse.mylyn.internal.tasks.ui.editors.RichTextAttributeEditor; >+import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorRichTextPart; >+import org.eclipse.mylyn.internal.wikitext.ui.viewer.MultiSourceViewer; >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.graphics.Point; >+import org.eclipse.swt.layout.GridData; >+import org.eclipse.swt.layout.GridLayout; >+import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; >+import org.eclipse.ui.forms.widgets.ExpandableComposite; >+import org.eclipse.ui.forms.widgets.FormToolkit; >+import org.eclipse.ui.forms.widgets.Section; >+import org.eclipse.ui.internal.EditorAreaHelper; >+import org.eclipse.ui.internal.WorkbenchPage; >+ >+public class TaskEditorWikiTextPart extends TaskEditorRichTextPart { >+ >+ private WikiTextAttributeEditor editor; >+ >+ private Composite composite; >+ >+ public TaskEditorWikiTextPart() { >+ setSectionStyle(ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); >+ } >+ >+ @Override >+ public void createControl(Composite parent, FormToolkit toolkit) { >+ if (getAttribute() == null) { >+ return; >+ } >+ >+ editor = new WikiTextAttributeEditor(this.getTaskEditorPage().getModel(), this.getTaskEditorPage() >+ .getTaskRepository(), getAttribute(), SWT.NONE); >+ >+ Section section = createSection(parent, toolkit, getSectionStyle()); >+ >+ composite = toolkit.createComposite(section); >+ GridLayout layout = new GridLayout(); >+ layout.numColumns = 1; >+ composite.setLayout(layout); >+ >+ editor.createControl(composite, toolkit); >+ if (editor.isReadOnly()) { >+ GridDataFactory.fillDefaults().hint(EditorUtil.MAXIMUM_WIDTH, SWT.DEFAULT).applyTo(editor.getControl()); >+ } else { >+ final GridData gd = new GridData(); >+ // wrap text at this margin, see comment below >+ int width = getEditorWidth(); >+ // the goal is to make the text viewer as big as the text so it does not require scrolling when first drawn >+ // on screen >+ >+ //resizing CTabFolder if enable >+ Control control = editor.getViewer().getTextWidget(); >+ >+ if (editor.getViewer() instanceof MultiSourceViewer) { >+ control = ((MultiSourceViewer) editor.getViewer()).getParentControl(); >+ } >+ >+ Point size = control.computeSize(width, SWT.DEFAULT, true); >+ gd.widthHint = EditorUtil.MAXIMUM_WIDTH; >+ gd.horizontalAlignment = SWT.FILL; >+ gd.grabExcessHorizontalSpace = true; >+ // limit height to be avoid dynamic resizing of the text widget: >+ // MAXIMUM_HEIGHT < height < MAXIMUM_HEIGHT * 4 >+ //gd.minimumHeight = AbstractAttributeEditor.MAXIMUM_HEIGHT; >+ gd.heightHint = Math.min(Math.max(EditorUtil.MAXIMUM_HEIGHT, size.y), EditorUtil.MAXIMUM_HEIGHT * 4); >+ if (getExpandVertically()) { >+ gd.verticalAlignment = SWT.FILL; >+ gd.grabExcessVerticalSpace = true; >+ } >+ >+ control.setLayoutData(gd); >+ control.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); >+ } >+ >+ getTaskEditorPage().getAttributeEditorToolkit().adapt(editor); >+ >+ toolkit.paintBordersFor(composite); >+ section.setClient(composite); >+ setSection(toolkit, section); >+ >+ } >+ >+ @Override >+ protected Composite getComposite() { >+ return composite; >+ } >+ >+ private int getEditorWidth() { >+ int widthHint = 0; >+ if (getManagedForm() != null && getManagedForm().getForm() != null) { >+ widthHint = getManagedForm().getForm().getClientArea().width - 90; >+ } >+ if (widthHint <= 0 && getTaskEditorPage().getEditor().getEditorSite() != null >+ && getTaskEditorPage().getEditor().getEditorSite().getPage() != null) { >+ EditorAreaHelper editorManager = ((WorkbenchPage) getTaskEditorPage().getEditor().getEditorSite().getPage()).getEditorPresentation(); >+ if (editorManager != null && editorManager.getLayoutPart() != null) { >+ widthHint = editorManager.getLayoutPart().getControl().getBounds().width - 90; >+ } >+ } >+ if (widthHint <= 0) { >+ widthHint = EditorUtil.MAXIMUM_WIDTH; >+ } >+ return widthHint; >+ } >+ >+ @Override >+ protected RichTextAttributeEditor getEditor() { >+ return editor; >+ } >+ >+ @Override >+ public void setFocus() { >+ if (editor != null) { >+ editor.getControl().setFocus(); >+ } >+ } >+ >+} >Index: .refactorings/2008/6/24/refactorings.index >=================================================================== >RCS file: .refactorings/2008/6/24/refactorings.index >diff -N .refactorings/2008/6/24/refactorings.index >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .refactorings/2008/6/24/refactorings.index 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,13 @@ >+1213037520062 Extract Class... >+1213037610406 Move compilation unit >+1213040114000 Rename type 'MarkupTaskEditorExtension' >+1213040168578 Rename method 'checkMarkupLanguage' >+1213045920500 Rename type 'BugzillaTaskEditorPage2' >+1213047482906 Rename type 'BugzillaTaskEditorPage' >+1213047834328 Rename type 'BugzillaTaskEditorPageFactory' >+1213047888812 Delete element >+1213053930984 Move compilation units >+1213054335265 Move compilation unit >+1213054402156 Delete element >+1213054568421 Move compilation unit >+1213054607921 Move compilation unit >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/DefalutTaskEditorExtension.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/editors/DefalutTaskEditorExtension.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/editors/DefalutTaskEditorExtension.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/DefalutTaskEditorExtension.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,43 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.editors; >+ >+import org.eclipse.jface.text.source.SourceViewer; >+import org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor; >+import org.eclipse.mylyn.tasks.core.TaskRepository; >+import org.eclipse.mylyn.wikitext.textile.core.TextileLanguage; >+import org.eclipse.swt.widgets.Composite; >+ >+/** >+ * A multitab source viewer that can edit and preview Textile wikitext markup >+ * >+ * @author Jingwen Ou >+ */ >+public class DefalutTaskEditorExtension extends AbstractMarkupTaskEditorExtension { >+ >+ @Override >+ public SourceViewer createEditor(TaskRepository taskRepository, Composite parent, int style) { >+ return createMultiSourceViewer(taskRepository, parent, style); >+ } >+ >+ @Override >+ public SourceViewer createViewer(TaskRepository taskRepository, Composite parent, int style) { >+ return createReadOnlyViewer(taskRepository, parent, style); >+ } >+ >+ @Override >+ public String getEditorContextId() { >+ return MarkupEditor.CONTEXT; >+ } >+ >+ @Override >+ public void initializeMarkupLanguage() { >+ setMarkupLanguage(new TextileLanguage()); >+ } >+} >Index: .refactorings/2008/6/24/refactorings.history >=================================================================== >RCS file: .refactorings/2008/6/24/refactorings.history >diff -N .refactorings/2008/6/24/refactorings.history >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .refactorings/2008/6/24/refactorings.history 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<session version="1.0">
<refactoring className="MultiSourceViewer" comment="Extract class 'MultiSourceViewer' from fields in 'MultiSourceViewer'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Extracted class name: 'MultiSourceViewer'
- Package: 'org.eclipse.mylyn.internal.sandbox.ui.editors'
- Moved fields:
 'folder' as 'folder'
- Field object: 'data'" createField0="true" createFieldCount="1" createGetterSetter="false" createTopLevel="true" description="Extract Class..." fieldName="data" flags="6" id="org.eclipse.jdt.ui.extract.class" input="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{MarkupTaskEditorExtension.java[MarkupTaskEditorExtension[MultiSourceViewer" newFieldCount="1" newFieldName0="folder" oldFieldCount="1" oldFieldName0="folder" packageName="org.eclipse.mylyn.internal.sandbox.ui.editors" stamp="1213037520062" version="1.0"/>
<refactoring comment="Move 1 elements(s) to 'org.eclipse.mylyn.wikitext.ui/src/org.eclipse.mylyn.internal.wikitext.ui.editor'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Destination element: 'org.eclipse.mylyn.wikitext.ui/src/org.eclipse.mylyn.internal.wikitext.ui.editor'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.MultiSourceViewer.java'
- Update references to refactored element" description="Move compilation unit" destination="=org.eclipse.mylyn.wikitext.ui/src<org.eclipse.mylyn.internal.wikitext.ui.editor" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{MultiSourceViewer.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.move" patterns="*" policy="org.eclipse.jdt.ui.moveResources" qualified="false" references="true" stamp="1213037610406" units="1" version="1.0"/>
<refactoring comment="Rename type 'org.eclipse.mylyn.internal.sandbox.ui.editors.MarkupTaskEditorExtension' to 'AbstractMarkupTaskEditorExtension'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.MarkupTaskEditorExtension'
- Renamed element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.AbstractMarkupTaskEditorExtension'
- Update references to refactored element
- Update textual occurrences in comments and strings" description="Rename type 'MarkupTaskEditorExtension'" flags="589830" id="org.eclipse.jdt.ui.rename.type" input="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{MarkupTaskEditorExtension.java[MarkupTaskEditorExtension" matchStrategy="1" name="AbstractMarkupTaskEditorExtension" qualified="false" references="true" similarDeclarations="false" stamp="1213040114000" textual="false" version="1.0"/>
<refactoring comment="Rename method 'org.eclipse.mylyn.internal.sandbox.ui.editors.AbstractMarkupTaskEditorExtension.checkMarkupLanguage()' to 'checkMarkupLanguageNull'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.AbstractMarkupTaskEditorExtension.checkMarkupLanguage()'
- Renamed element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.AbstractMarkupTaskEditorExtension.checkMarkupLanguageNull()'
- Update references to refactored element" delegate="false" deprecate="false" description="Rename method 'checkMarkupLanguage'" flags="589826" id="org.eclipse.jdt.ui.rename.method" input="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{AbstractMarkupTaskEditorExtension.java[AbstractMarkupTaskEditorExtension~checkMarkupLanguage" name="checkMarkupLanguageNull" references="true" stamp="1213040168578" version="1.0"/>
<refactoring comment="Rename type 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPage2' to 'BugzillaWikiTaskEditorPage'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPage2'
- Renamed element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaWikiTaskEditorPage'
- Update references to refactored element
- Update textual occurrences in comments and strings" description="Rename type 'BugzillaTaskEditorPage2'" flags="589830" id="org.eclipse.jdt.ui.rename.type" input="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla{BugzillaTaskEditorPage2.java[BugzillaTaskEditorPage2" matchStrategy="1" name="BugzillaWikiTaskEditorPage" qualified="false" references="true" similarDeclarations="false" stamp="1213045920500" textual="false" version="1.0"/>
<refactoring comment="Rename type 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPage' to 'BugzillaTaskEditorPage1'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPage'
- Renamed element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPage1'
- Update references to refactored element
- Update textual occurrences in comments and strings" description="Rename type 'BugzillaTaskEditorPage'" flags="589830" id="org.eclipse.jdt.ui.rename.type" input="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla{BugzillaTaskEditorPage.java[BugzillaTaskEditorPage" matchStrategy="1" name="BugzillaTaskEditorPage1" qualified="false" references="true" similarDeclarations="false" stamp="1213047482906" textual="false" version="1.0"/>
<refactoring comment="Rename type 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPageFactory' to 'BugzillaWikiTaskEditorPageFactory'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPageFactory'
- Renamed element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaWikiTaskEditorPageFactory'
- Update references to refactored element
- Update textual occurrences in comments and strings" description="Rename type 'BugzillaTaskEditorPageFactory'" flags="589830" id="org.eclipse.jdt.ui.rename.type" input="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla{BugzillaTaskEditorPageFactory.java[BugzillaTaskEditorPageFactory" matchStrategy="1" name="BugzillaWikiTaskEditorPageFactory" qualified="false" references="true" similarDeclarations="false" stamp="1213047834328" textual="false" version="1.0"/>
<refactoring accessors="true" comment="Delete 1 element(s) from project 'org.eclipse.mylyn.sandbox.ui'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.BugzillaTaskEditorPage1.java'" description="Delete element" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla{BugzillaTaskEditorPage1.java" elements="1" flags="589830" id="org.eclipse.jdt.ui.delete" resources="0" stamp="1213047888812" subPackages="false" version="1.0"/>
<refactoring comment="Move 2 elements(s) to 'org.eclipse.mylyn.wikitext.ui/src/org.eclipse.mylyn.wikitext.ui.viewer'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Destination element: 'org.eclipse.mylyn.wikitext.ui/src/org.eclipse.mylyn.wikitext.ui.viewer'
- Original elements:
 org.eclipse.mylyn.internal.sandbox.ui.editors.AbstractMarkupTaskEditorExtension.java
 org.eclipse.mylyn.internal.sandbox.ui.editors.DefalutTaskEditorExtension.java
- Update references to refactored element" description="Move compilation units" destination="=org.eclipse.mylyn.wikitext.ui/src<org.eclipse.mylyn.wikitext.ui.viewer" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{AbstractMarkupTaskEditorExtension.java" element2="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{DefalutTaskEditorExtension.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.move" patterns="*" policy="org.eclipse.jdt.ui.moveResources" qualified="false" references="true" stamp="1213053930984" units="2" version="1.0"/>
<refactoring comment="Move 1 elements(s) to 'org.eclipse.mylyn.wikitext.ui/src/org.eclipse.mylyn.wikitext.ui.viewer'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Destination element: 'org.eclipse.mylyn.wikitext.ui/src/org.eclipse.mylyn.wikitext.ui.viewer'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.WikiTextAttributeEditor.java'
- Update references to refactored element" description="Move compilation unit" destination="=org.eclipse.mylyn.wikitext.ui/src<org.eclipse.mylyn.wikitext.ui.viewer" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla{WikiTextAttributeEditor.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.move" patterns="*" policy="org.eclipse.jdt.ui.moveResources" qualified="false" references="true" stamp="1213054335265" units="1" version="1.0"/>
<refactoring accessors="true" comment="Delete 1 element(s) from project 'org.eclipse.mylyn.sandbox.ui'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.TaskEditorExtensionHelper.java'" description="Delete element" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{TaskEditorExtensionHelper.java" elements="1" flags="589830" id="org.eclipse.jdt.ui.delete" resources="0" stamp="1213054402156" subPackages="false" version="1.0"/>
<refactoring comment="Move 1 elements(s) to 'org.eclipse.mylyn.sandbox.ui/src/org.eclipse.mylyn.internal.sandbox.ui.editors'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Destination element: 'org.eclipse.mylyn.sandbox.ui/src/org.eclipse.mylyn.internal.sandbox.ui.editors'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.AbstractMarkupTaskEditorExtension.java'
- Update references to refactored element" description="Move compilation unit" destination="/src<org.eclipse.mylyn.internal.sandbox.ui.editors" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla{AbstractMarkupTaskEditorExtension.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.move" patterns="*" policy="org.eclipse.jdt.ui.moveResources" qualified="false" references="true" stamp="1213054568421" units="1" version="1.0"/>
<refactoring comment="Move 1 elements(s) to 'org.eclipse.mylyn.sandbox.ui/src/org.eclipse.mylyn.internal.sandbox.ui.editors'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Destination element: 'org.eclipse.mylyn.sandbox.ui/src/org.eclipse.mylyn.internal.sandbox.ui.editors'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla.DefalutTaskEditorExtension.java'
- Update references to refactored element" description="Move compilation unit" destination="/src<org.eclipse.mylyn.internal.sandbox.ui.editors" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla{DefalutTaskEditorExtension.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.move" patterns="*" policy="org.eclipse.jdt.ui.moveResources" qualified="false" references="true" stamp="1213054607921" units="1" version="1.0"/> >+</session> >Index: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPage.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPage.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/editors/bugzilla/BugzillaWikiTaskEditorPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,55 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla; >+ >+import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants; >+import org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaCcAttributeEditor; >+import org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaKeywordAttributeEditor; >+import org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPage; >+import org.eclipse.mylyn.tasks.core.data.TaskAttribute; >+import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor; >+import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorFactory; >+import org.eclipse.mylyn.tasks.ui.editors.TaskEditor; >+ >+/** >+ * A bugzilla task editor page that has wiki facilities >+ * >+ * @author Jingwen Ou >+ */ >+public class BugzillaWikiTaskEditorPage extends BugzillaTaskEditorPage { >+ >+ public BugzillaWikiTaskEditorPage(TaskEditor editor) { >+ super(editor); >+ } >+ >+ @Override >+ protected AttributeEditorFactory createAttributeEditorFactory() { >+ AttributeEditorFactory factory = new AttributeEditorFactory(getModel(), getTaskRepository()) { >+ @Override >+ public AbstractAttributeEditor createEditor(String type, TaskAttribute taskAttribute) { >+ AbstractAttributeEditor editor; >+ //replace all long rich text, including description part and the comment part, others copied from super class >+ if (TaskAttribute.TYPE_LONG_RICH_TEXT.equals(type)) { >+ editor = new WikiTextAttributeEditor(getModel(), getTaskRepository(), taskAttribute); >+ } else if (IBugzillaConstants.EDITOR_TYPE_KEYWORDS.equals(type)) { >+ editor = new BugzillaKeywordAttributeEditor(getModel(), taskAttribute); >+ } else if (IBugzillaConstants.EDITOR_TYPE_REMOVECC.equals(type)) { >+ editor = new BugzillaCcAttributeEditor(getModel(), taskAttribute); >+ } else { >+ editor = super.createEditor(type, taskAttribute); >+ if (TaskAttribute.TYPE_BOOLEAN.equals(type)) { >+ editor.setDecorationEnabled(false); >+ } >+ } >+ return editor; >+ } >+ }; >+ return factory; >+ } >+} >Index: .refactorings/2008/6/23/refactorings.history >=================================================================== >RCS file: .refactorings/2008/6/23/refactorings.history >diff -N .refactorings/2008/6/23/refactorings.history >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .refactorings/2008/6/23/refactorings.history 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<session version="1.0">
<refactoring comment="Move 1 elements(s) to 'org.eclipse.mylyn.tasks.ui/src/org.eclipse.mylyn.internal.tasks.ui.editors'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Destination element: 'org.eclipse.mylyn.tasks.ui/src/org.eclipse.mylyn.internal.tasks.ui.editors'
- Original element: 'org.eclipse.mylyn.internal.sandbox.ui.editors.TaskEditorWikiTextPart.java'
- Update references to refactored element" description="Move compilation unit" destination="=org.eclipse.mylyn.tasks.ui/src<org.eclipse.mylyn.internal.tasks.ui.editors" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{TaskEditorWikiTextPart.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.move" patterns="*" policy="org.eclipse.jdt.ui.moveResources" qualified="false" references="true" stamp="1212827078015" units="1" version="1.0"/>

<refactoring comment="Move 3 elements(s) to 'org.eclipse.mylyn.sandbox.ui/src/org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Destination element: 'org.eclipse.mylyn.sandbox.ui/src/org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla'
- Original elements:
 org.eclipse.mylyn.internal.sandbox.ui.editors.WikiTextAttributeEditor.java
 org.eclipse.mylyn.internal.sandbox.ui.editors.BugzillaTaskEditorPage.java
 org.eclipse.mylyn.internal.sandbox.ui.editors.TaskEditorWikiTextPart.java
- Update references to refactored element" description="Move compilation units" destination="/src<org.eclipse.mylyn.internal.sandbox.ui.editors.bugzilla" element1="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{WikiTextAttributeEditor.java" element2="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{BugzillaTaskEditorPage.java" element3="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{TaskEditorWikiTextPart.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.move" patterns="*" policy="org.eclipse.jdt.ui.moveResources" qualified="false" references="true" stamp="1212828531765" units="3" version="1.0"/>
<refactoring comment="Extract method 'private void checkMarkupLanguage()' from 'org.eclipse.mylyn.internal.sandbox.ui.editors.MarkupTaskEditorExtension.createReadOnlyViewer()' to 'org.eclipse.mylyn.internal.sandbox.ui.editors.MarkupTaskEditorExtension'
- Original project: 'org.eclipse.mylyn.sandbox.ui'
- Method name: 'checkMarkupLanguage'
- Destination type: 'org.eclipse.mylyn.internal.sandbox.ui.editors.MarkupTaskEditorExtension'
- Declared visibility: 'private'
- Replace occurrences of statements with method" comments="false" description="Extract method 'checkMarkupLanguage'" destination="0" exceptions="false" flags="786434" id="org.eclipse.jdt.ui.extract.method" input="/src<org.eclipse.mylyn.internal.sandbox.ui.editors{MarkupTaskEditorExtension.java" name="checkMarkupLanguage" replace="true" selection="3921 73" stamp="1212830996265" version="1.0" visibility="2"/> >+</session>
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 235222
:
103264
|
103615
|
104084
|
104233
| 104234 |
104240
|
104576
|
104592
|
104650
|
104651
|
104678
|
104721