Tabnine Logo
EditorPart.setInput
Code IndexAdd Tabnine to your IDE (free)

How to use
setInput
method
in
org.eclipse.ui.part.EditorPart

Best Java code snippets using org.eclipse.ui.part.EditorPart.setInput (Showing top 10 results out of 315)

origin: org.eclipse.neoscada.hmi/org.eclipse.scada.ca.ui.editor

@Override
protected void setInput ( final IEditorInput input )
{
  this.factoryInput = (FactoryEditorInput)input;
  refresh ();
  super.setInput ( input );
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * @see IReusableEditor#setInput(org.eclipse.ui.IEditorInput)
 */
@Override
public void setInput(IEditorInput input) {
  super.setInput(input);
  setPartName(input.getName());
  if (fText != null) {
    fText.setText(input.getToolTipText());
  }
}
origin: org.openl.rules/org.openl.rules.eclipse.ui

/**
 * @see IReusableEditor#setInput(org.eclipse.ui.IEditorInput)
 */
@Override
public void setInput(IEditorInput input) {
  super.setInput(input);
  setPartName(input.getName());
  if (fText != null) {
    fText.setText(input.getToolTipText());
  }
}
origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public void setInput(IEditorInput input) {
  super.setInput(input);
  setPartName(input.getName());
  if (fText != null) {
    fText.setText(getText());
  }
  firePropertyChange(PROP_INPUT);
}
origin: org.eclipse.neoscada.hmi/org.eclipse.scada.ca.ui.editor

@Override
protected void setInput ( final IEditorInput input )
{
  final ConfigurationEditorInput configurationInput = (ConfigurationEditorInput)input;
  if ( !this.nested )
  {
    configurationInput.performLoad ( new NullProgressMonitor () );
  }
  this.dirtyValue = configurationInput.getDirtyValue ();
  this.dirtyValue.addValueChangeListener ( new IValueChangeListener () {
    @Override
    public void handleValueChange ( final ValueChangeEvent event )
    {
      firePropertyChange ( IEditorPart.PROP_DIRTY );
    }
  } );
  super.setInput ( input );
}
origin: org.eclipse.platform/org.eclipse.compare

super.setInput(input);
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

  getDocumentProvider().disconnect(oldInput);
super.setInput(input);
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

  getDocumentProvider().disconnect(oldInput);
super.setInput(input);
origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor

  getDocumentProvider().disconnect(oldInput);
super.setInput(input);
origin: org.eclipse/org.eclipse.compare

super.setInput(input);
org.eclipse.ui.partEditorPartsetInput

Javadoc

Sets the input to this editor. This method simply updates the internal member variable.

Unlike most of the other set methods on this class, this method does not fire a property change. Clients that call this method from a subclass must ensure that they fire an IWorkbenchPartConstants.PROP_INPUT property change after calling this method but before leaving whatever public method they are in. Clients that expose this method as public API must fire the property change within their implementation of setInput.

Note that firing a property change may cause listeners to immediately reach back and call methods on this editor. Care should be taken not to fire the property change until the editor has fully updated its internal state to reflect the new input.

Popular methods of EditorPart

  • dispose
  • getAdapter
  • firePropertyChange
  • getEditorInput
  • addPropertyListener
  • getPartName
  • getSite
  • getTitle
  • internalSetPartName
  • isDirty
  • removePropertyListener
  • setDefaultPartName
  • removePropertyListener,
  • setDefaultPartName,
  • setFocus,
  • setPartName,
  • setTitle

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Reference (javax.naming)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now