1 11 package org.eclipse.ui.internal.intro.impl.presentations; 12 13 import org.eclipse.core.runtime.IRegistryChangeEvent; 14 import org.eclipse.swt.SWT; 15 import org.eclipse.swt.widgets.Composite; 16 import org.eclipse.swt.widgets.Text; 17 import org.eclipse.ui.internal.intro.impl.IntroPlugin; 18 import org.eclipse.ui.internal.intro.impl.model.AbstractIntroPartImplementation; 19 import org.eclipse.ui.internal.intro.impl.model.IntroModelRoot; 20 import org.eclipse.ui.internal.intro.impl.util.IntroModelSerializer; 21 import org.eclipse.ui.intro.config.IIntroContentProvider; 22 23 27 public class TextIntroPartImplementation extends 28 AbstractIntroPartImplementation { 29 30 31 public void doStandbyStateChanged(boolean standby, 32 boolean isStandbyPartNeeded) { 33 } 35 36 public void createPartControl(Composite container) { 37 Text text = new Text(container, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); 38 IntroModelRoot model = IntroPlugin.getDefault().getIntroModelRoot(); 39 IntroModelSerializer serializer = new IntroModelSerializer(model); 40 text.setText(serializer.toString()); 41 addToolBarActions(); 42 } 43 44 protected void updateNavigationActionsState() { 45 } 47 48 49 public void setFocus() { 50 } 52 53 58 public boolean navigateBackward() { 59 return false; 60 } 61 62 67 public boolean navigateForward() { 68 return false; 69 } 70 71 76 protected void handleRegistryChanged(IRegistryChangeEvent event) { 77 } 79 80 85 public boolean navigateHome() { 86 return false; 87 } 88 89 public void reflow(IIntroContentProvider provider, boolean incremental) { 90 } 92 } 93 | Popular Tags |