ContentOutlinePage
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.eclipse.ui.views.contentoutline.ContentOutlinePage (Showing top 20 results out of 315)

origin: org.apache.directory.studio/ldifeditor

/**
 * {@inheritDoc}
 */
public void dispose()
{
  super.dispose();
  if ( ldifEditor != null )
  {
    ldifEditor.outlinePageClosed();
    ldifEditor = null;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.views

@Override
public void selectionChanged(SelectionChangedEvent event) {
  fireSelectionChanged(event.getSelection());
}
origin: org.eclipse.mylyn.wikitext/ui

@Override
protected TreeViewer getTreeViewer() {
  return super.getTreeViewer();
}
origin: org.eclipse.xtext/ui

@Override
public void createControl(Composite parent) {
  super.createControl(parent);
  configureTree();
  configureModelListener();
  configureActions();
  refreshJob.setOutlinePage(this);
  configureContextMenu();
}
origin: RepreZen/KaiZen-OpenAPI-Editor

@Override
public void selectionChanged(SelectionChangedEvent event) {
  super.selectionChanged(event);
  showInTarget.show(new ShowInContext(null, event.getSelection()));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.views

/**
 * The <code>ContentOutlinePage</code> implementation of this
 * <code>IContentOutlinePage</code> method creates a tree viewer. Subclasses
 * must extend this method configure the tree viewer with a proper content
 * provider, label provider, and input element.
 * @param parent
 */
@Override
public void createControl(Composite parent) {
  treeViewer = new TreeViewer(parent, getTreeStyle());
  treeViewer.addSelectionChangedListener(this);
}
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

/**
 * Creates the SWT control for this page under the given parent control.
 * The <code>ContentOutlinePage</code> implementation of this 
 * <code>IContentOutlinePage</code> method creates a tree viewer.
 * 
 * @see org.eclipse.ui.views.contentoutline.ContentOutlinePage#createControl(org.eclipse.swt.widgets.Composite)
 * @see org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)
 */
public void createControl( Composite parent ) {
  super.createControl( parent );
  TreeViewer viewer = getTreeViewer();
  viewer.setContentProvider( new SQLEditorOutlineContentProvider( this ));
  viewer.setLabelProvider( new LabelProvider() );
  viewer.addSelectionChangedListener( this );
  if (fInput != null)
    viewer.setInput( fInput );
}
 
origin: oyse/yedit

public void selectionChanged( SelectionChangedEvent event ){
  
  YEditLog.logger.info("Select in the outline view changed");
  
  super.selectionChanged(event);
  ISelection selection= event.getSelection();
  if (selection.isEmpty())
    yamlEditor.resetHighlightRange();
  else {
    YAMLOutlineElement segment= (YAMLOutlineElement) ((IStructuredSelection) selection).getFirstElement();
    int start= segment.position.getOffset();
    int length= segment.position.getLength();
    try {
      yamlEditor.setHighlightRange(start, length, true);
    } catch (IllegalArgumentException x) {
      yamlEditor.resetHighlightRange();
    }
  }        
}

origin: org.eclipse.platform/org.eclipse.ui.views

/**
 * The <code>ContentOutlinePage</code> implementation of this
 * <code>IContentOutlinePage</code> method creates a tree viewer. Subclasses
 * must extend this method configure the tree viewer with a proper content
 * provider, label provider, and input element.
 * @param parent
 */
@Override
public void createControl(Composite parent) {
  treeViewer = new TreeViewer(parent, getTreeStyle());
  treeViewer.addSelectionChangedListener(this);
}
origin: RepreZen/KaiZen-OpenAPI-Editor

@Override
public void createControl(Composite parent) {
  super.createControl(parent);
  TreeViewer viewer = getTreeViewer();
  viewer.setContentProvider(new OutlineContentProvider());
  viewer.setLabelProvider(new OutlineStyledLabelProvider());
  viewer.addSelectionChangedListener(this);
  viewer.setAutoExpandLevel(2);
  viewer.setUseHashlookup(true);
  if (currentInput != null) {
    setInput(currentInput);
  }
}
origin: org.eclipse.mylyn.wikitext/ui

@Override
public void dispose() {
  if (dndConfigurationStrategy != null) {
    dndConfigurationStrategy.dispose();
    dndConfigurationStrategy = null;
  }
  super.dispose();
}
origin: winterstein/Eclipse-Markdown-Editor-Plugin

@Override
public void selectionChanged(SelectionChangedEvent event) {
  super.selectionChanged(event);
  selectedHeaders = null;
  ISelection selection = event.getSelection();
origin: org.eclipse.platform/org.eclipse.ui.views

@Override
public void selectionChanged(SelectionChangedEvent event) {
  fireSelectionChanged(event.getSelection());
}
origin: org.eclipse/org.eclipse.wst.xsd.ui

public TreeViewer getTreeViewer()
{
 return super.getTreeViewer();
}
origin: oyse/yedit

public void createControl(Composite parent) {
  
  super.createControl(parent);
  IPreferenceStore prefs = Activator.getDefault().getPreferenceStore();
  
  int expandLevels = TreeViewer.ALL_LEVELS;
  if( !(prefs.getBoolean(PreferenceConstants.AUTO_EXPAND_OUTLINE) ) ){
    expandLevels = 0;
  }
  
  
  TreeViewer viewer= getTreeViewer();
  viewer.setContentProvider(new ContentProvider());
  viewer.setLabelProvider( new YEditStyledLabelProvider( yamlEditor.getColorManager() ) );
  viewer.addSelectionChangedListener(this);
  viewer.setAutoExpandLevel(expandLevels);
  if (input != null){
    setInput(input);
  }
}    

origin: org.eclipse.mylyn.wikitext/ui

  @Override
  public void dispose() {
    setEditor(null);
    super.dispose();
  }
}
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

/**
 * Notifies that the selection has changed, using the given SelectionChangedEvent.
 * 
 * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
 */
public void selectionChanged( SelectionChangedEvent event ) {
  super.selectionChanged( event );
  ISelection selection = event.getSelection();
  if (selection.isEmpty())
    fSQLEditor.resetHighlightRange();
  else {
    SQLSegment segment = (SQLSegment) ((IStructuredSelection) selection).getFirstElement();
    int start = segment.getPosition().getOffset();
    int length = segment.getPosition().getLength();
    try {
      fSQLEditor.setHighlightRange( start, length, true );
    } catch (IllegalArgumentException x) {
      fSQLEditor.resetHighlightRange();
    }
  }
}
origin: org.eclipse/org.eclipse.ui.views

public void selectionChanged(SelectionChangedEvent event) {
  fireSelectionChanged(event.getSelection());
}
origin: org.eclipse.xtext/ui

@Override
public TreeViewer getTreeViewer() {
  return super.getTreeViewer();
}
origin: org.apache.directory.studio/ldifeditor

super.createControl( parent );
org.eclipse.ui.views.contentoutlineContentOutlinePage

Javadoc

An abstract base class for content outline pages.

Clients who are defining an editor may elect to provide a corresponding content outline page. This content outline page will be presented to the user via the standard Content Outline View (the user decides whether their workbench window contains this view) whenever that editor is active. This class should be subclassed.

Internally, each content outline page consists of a standard tree viewer; selections made in the tree viewer are reported as selection change events by the page (which is a selection provider). The tree viewer is not created until createPage is called; consequently, subclasses must extend createControl to configure the tree viewer with a proper content provider, label provider, and input element.

Note that those wanting to use a control other than internally created TreeViewer will need to implement IContentOutlinePage directly rather than subclassing this class.

Most used methods

  • createControl
    The ContentOutlinePage implementation of thisIContentOutlinePage method creates a tree viewer. Subcl
  • dispose
  • selectionChanged
  • fireSelectionChanged
    Fires a selection changed event.
  • getTreeViewer
    Returns this page's tree viewer.
  • getTreeStyle
    A hint for the styles to use while constructing the TreeViewer.Subclasses may override.
  • setActionBars
  • setSelection

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)