Tabnine Logo
JobMeta.addNote
Code IndexAdd Tabnine to your IDE (free)

How to use
addNote
method
in
org.pentaho.di.job.JobMeta

Best Java code snippets using org.pentaho.di.job.JobMeta.addNote (Showing top 6 results out of 315)

origin: pentaho/pentaho-kettle

@Test
public void shouldUseCoordinatesOfItsStepsAndNotesWhenCalculatingMinimumPoint() {
 Point jobEntryPoint = new Point( 500, 500 );
 Point notePadMetaPoint = new Point( 400, 400 );
 JobEntryCopy jobEntryCopy = mock( JobEntryCopy.class );
 when( jobEntryCopy.getLocation() ).thenReturn( jobEntryPoint );
 NotePadMeta notePadMeta = mock( NotePadMeta.class );
 when( notePadMeta.getLocation() ).thenReturn( notePadMetaPoint );
 // empty Job return 0 coordinate point
 Point point = jobMeta.getMinimum();
 assertEquals( 0, point.x );
 assertEquals( 0, point.y );
 // when Job contains a single step or note, then jobMeta should return coordinates of it, subtracting borders
 jobMeta.addJobEntry( 0, jobEntryCopy );
 Point actualStepPoint = jobMeta.getMinimum();
 assertEquals( jobEntryPoint.x - JobMeta.BORDER_INDENT, actualStepPoint.x );
 assertEquals( jobEntryPoint.y - JobMeta.BORDER_INDENT, actualStepPoint.y );
 // when Job contains step or notes, then jobMeta should return minimal coordinates of them, subtracting borders
 jobMeta.addNote( notePadMeta );
 Point stepPoint = jobMeta.getMinimum();
 assertEquals( notePadMetaPoint.x - JobMeta.BORDER_INDENT, stepPoint.x );
 assertEquals( notePadMetaPoint.y - JobMeta.BORDER_INDENT, stepPoint.y );
}
origin: pentaho/pentaho-kettle

public void newNote() {
 String title = BaseMessages.getString( PKG, "JobGraph.Dialog.EditNote.Title" );
 NotePadDialog dd = new NotePadDialog( jobMeta, shell, title );
 NotePadMeta n = dd.open();
 if ( n != null ) {
  NotePadMeta npi =
    new NotePadMeta( n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, ConstUI.NOTE_MIN_SIZE, n
     .getFontName(), n.getFontSize(), n.isFontBold(), n.isFontItalic(), n.getFontColorRed(), n
     .getFontColorGreen(), n.getFontColorBlue(), n.getBackGroundColorRed(), n.getBackGroundColorGreen(), n
     .getBackGroundColorBlue(), n.getBorderColorRed(), n.getBorderColorGreen(), n.getBorderColorBlue(), n
     .isDrawShadow() );
  jobMeta.addNote( npi );
  spoon.addUndoNew( jobMeta, new NotePadMeta[] { npi }, new int[] { jobMeta.indexOfNote( npi ) } );
  redraw();
 }
}
origin: pentaho/pentaho-kettle

String xml = getString( noteNode, PROP_XML );
jobMeta
  .addNote( new NotePadMeta( XMLHandler.getSubNode( XMLHandler.loadXMLString( xml ), NotePadMeta.XML_TAG ) ) );
origin: pentaho/pentaho-kettle

idx = transAction.getCurrentIndex();
for ( int i = 0; i < idx.length; i++ ) {
 jobMeta.addNote( idx[i], ni[i] );
 jobMeta.addNote( idx[i], ni[i] );
origin: pentaho/pentaho-kettle

idx = transAction.getCurrentIndex();
for ( int i = 0; i < idx.length; i++ ) {
 jobMeta.addNote( idx[i], ni[i] );
for ( int i = 0; i < idx.length; i++ ) {
 jobMeta.removeNote( idx[i] );
 jobMeta.addNote( idx[i], prev[i] );
origin: pentaho/pentaho-kettle

jobMeta.addNote( ni );
org.pentaho.di.jobJobMetaaddNote

Popular methods of JobMeta

  • environmentSubstitute
  • <init>
    Create a new JobMeta object by loading it from a a DOM node.
  • getName
  • findDatabase
  • getDatabases
  • getJobCopies
    Gets the job copies.
  • getParameterDefault
  • getXML
  • setName
  • addDatabase
  • addJobEntry
    Adds the job entry.
  • addJobHop
    Adds the job hop.
  • addJobEntry,
  • addJobHop,
  • addParameterDefinition,
  • clearChanged,
  • findJobEntry,
  • getCreatedDate,
  • getCreatedUser,
  • getDatabase,
  • getExtendedDescription

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • JComboBox (javax.swing)
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
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