IntelliJ Community . CanooULCPluginDev

 
CanooULCPluginDev 

HOME INDEX SEARCH CHANGES GO  

CanooULCPluginDev

Feedback

We are looking forward to your feedback...

-- EtienneStuder - 16 Nov 2004

Look and Feel

Hi Etienne,

Your Plugin really rocks.

I just installed it and it works right away.

I used to start with a starting class like

public class ClickOMatDevelopmentRunner
 {
  public static void main(String[] args)
  {
    UIManagerHelper.setJGoodiesLookAndFeel();
    DevelopmentRunner.setApplicationClass(ClickOMat.class);
    DevelopmentRunner.main(args);
  }
}
that cares for setting a look and feel. Now starting through the plugin obviously doesn't call these settings and the L&F appears to be not as nice.

It is only a minor issue, but is there a way to go around it?

thanks for your work

-- DierkKoenig - 18 Nov 2004

Hi Dierk

The current implementation does not support execution of additional code besides starting the selcted class through the ULC Development Runner. What you could do as a workaround is something like this in your IApplication.start() method:

public void start() {
  if(isRunInDevelopmentRunner()) {
    UIManagerHelper.setJGoodiesLookAndFeel();
  }
}

private static boolean isRunInDevelopmentRunner() {
  try {
    Class.forName("com.ulcjava.base.development.DevelopmentRunner");
    return true;
  }
  catch(ClassNotFoundException cnfe) {
    return false;
  }
}

-- EtienneStuder - 19 Nov 2004


...

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.