示例#1
0
 private void setSelected(ToolButton button) {
   if (fSelectedToolButton != null) {
     fSelectedToolButton.reset();
   }
   fSelectedToolButton = button;
   if (fSelectedToolButton != null) {
     fSelectedToolButton.select();
   }
 }
示例#2
0
 public void paletteUserOver(PaletteButton button, boolean inside) {
   if (inside) {
     showStatus(button.name());
   } else if (fSelectedToolButton != null) {
     showStatus(fSelectedToolButton.name());
   }
 }
示例#3
0
 public void toolDone() {
   setTool(fDefaultToolButton.tool(), fDefaultToolButton.name());
   setSelected(fDefaultToolButton);
 }
示例#4
0
 public void paletteUserSelected(PaletteButton button) {
   ToolButton toolButton = (ToolButton) button;
   setTool(toolButton.tool(), toolButton.name());
   setSelected(toolButton);
 }