@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); } }
/** * Load image from several sources. */ public static SwtUniversalImage getImage( Display display, String location ) { return getImageAsResource( display, location ); }
private static SwtUniversalImage getUniversalImageInternal( Display display, ClassLoader classLoader, String filename ) { SwtUniversalImage result = loadFromClassLoader( display, classLoader, filename ); if ( result == null ) { result = loadFromClassLoader( display, classLoader, "/" + filename ); if ( result == null ) { result = loadFromClassLoader( display, classLoader, "ui/images/" + filename ); if ( result == null ) { result = getImageAsResourceInternal( display, filename ); } } } return result; }
@Override public void widgetSelected( SelectionEvent evt ) { HelpUtils.openHelpDialog( parent.getShell(), docTitle, docUrl, docHeader ); } } );
/** * Load image from several sources. */ private static SwtUniversalImage getImageAsResourceInternal( Display display, String location ) { SwtUniversalImage result = null; if ( result == null ) { result = loadFromCurrentClasspath( display, location ); } if ( result == null ) { result = loadFromBasedVFS( display, location ); } if ( result == null ) { result = loadFromSimpleVFS( display, location ); } return result; }
/** * Checks the existence of the webkit library on ubuntu 16 or ubuntu 14 . * * @return 'true' if the webkit library is not present in ubuntu 16 or ubuntu 14 , 'false' otherwise. */ public synchronized boolean isWebkitUnavailable() { String path = getWebkitPath(); String osName = getEnvironmentName(); return ( ( path == null || path.length() < 1 || !path.contains( "webkit" ) ) && ( osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "max.ubuntu.os.distribution.supported" ) ) || osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "min.ubuntu.os.distribution.supported" ) ) ) ); }
/** * Ask for the Operating system name. * * @return a string that contains the current Operating System. */ private String getEnvironmentName() { String osName = getOsName(); if ( osName.contentEquals( "linux" ) ) { return osName + " " + getLinuxDistribution().toLowerCase(); } return osName; }
protected String getPathOf( RepositoryElementMetaInterface object ) { return DialogUtils.getPathOf( object ); }
public static Button createHelpButton( final Composite parent, final String title, final PluginInterface plugin ) { Button button = newButton( parent ); button.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), plugin ); } } ); return button; }
@Override public InputStream getPerspectiveIcon() { return ImageUtil.getImageInputStream( Display.getCurrent(), "ui/images/transformation.png" ); }
@Override public void drawImage( BufferedImage image, int x, int y ) { ImageData imageData = ImageUtil.convertToSWT( image ); Image swtImage = new Image( gc.getDevice(), imageData ); gc.drawImage( swtImage, x, y ); swtImage.dispose(); } }
@Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), plugin ); } } );
@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
protected String getPathOf( RepositoryElementMetaInterface object ) { return DialogUtils.getPathOf( object ); }
public static Button createHelpButton( final Composite parent, final String title, final String url, final String header ) { Button button = newButton( parent ); button.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), title, url, header ); } } ); return button; }
/** * TODO: Load splash and common images. */ public static Image getImageAsResource( Display display, String location ) { return new Image( display, getImageInputStream( display, location ) ); }
@Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), title, url, header ); } } );
protected Button createHelpButton( final Shell shell, final StepMeta stepMeta, final PluginInterface plugin ) { return HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
public void onHelp() { HelpUtils.openHelpDialog( dialogShell, getPlugin() ); }
@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }