示例#1
0
 public void setDirectory(FileSystemItem directoryItem) {
   if (directoryItem.equalTo(FileSystemItem.home())) {
     image_.setResource(FileDialogResources.INSTANCE.homeImage());
     name_.setHTML("Home");
   } else {
     image_.setResource(FileIconResources.INSTANCE.iconFolder());
     name_.setHTML(" " + directoryItem.getPath());
   }
 }
示例#2
0
    public DirectoryNameWidget() {
      setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

      image_ = new Image();
      image_.setStyleName(FileDialogResources.INSTANCE.styles().columnIcon());
      this.add(image_);
      name_ = new HTML();
      this.add(name_);
    }
示例#3
0
  private void ensureStylesInjected() {
    ThemeResources.INSTANCE.themeStyles().ensureInjected();
    CoreResources.INSTANCE.styles().ensureInjected();
    StudioResources.INSTANCE.styles().ensureInjected();
    ConsoleResources.INSTANCE.consoleStyles().ensureInjected();
    FileDialogResources.INSTANCE.styles().ensureInjected();
    ManipulatorResources.INSTANCE.manipulatorStyles().ensureInjected();
    PackagesCellTableResources.INSTANCE.cellTableStyle().ensureInjected();
    FilesListCellTableResources.INSTANCE.cellTableStyle().ensureInjected();
    ExportPlotResources.INSTANCE.styles().ensureInjected();
    CodeSearchResources.INSTANCE.styles().ensureInjected();

    ConsoleProgressDialog.ensureStylesInjected();
    SupportPopupMenu.ensureStylesInjected();
    SlideLabel.ensureStylesInjected();
    ThemedButton.ensureStylesInjected();
    ThemedPopupPanel.ensureStylesInjected();
    InstallPackageDialog.ensureStylesInjected();
    PublishPdfDialog.ensureStylesInjected();
    ApplicationEndedPopupPanel.ensureStylesInjected();
    ApplicationSerializationProgress.ensureStylesInjected();
    HistoryPane.ensureStylesInjected();
    Shelf.ensureStylesInjected();
    ImportFileSettingsDialog.ensureStylesInjected();
    ImportGoogleSpreadsheetDialog.ensureStylesInjected();
    FindReplaceBar.ensureStylesInjected();
    FontSizer.ensureStylesInjected();
    PreferencesDialogBaseResources.INSTANCE.styles().ensureInjected();
    PreferencesDialog.ensureStylesInjected();
    ProjectPreferencesDialogResources.INSTANCE.styles().ensureInjected();
    LinkColumn.ensureStylesInjected();
    CaptionWithHelp.ensureStylesInjected();
    CheckForUpdatesDialog.ensureStylesInjected();
    UnsavedChangesDialog.ensureStylesInjected();
    ChooseMirrorDialog.ensureStylesInjected();
    ResizeGripper.ensureStylesInjected();
    LineTableView.ensureStylesInjected();
    ChangelistTable.ensureStylesInjected();
    DiffFrame.ensureStylesInjected();
    ViewFilePanel.ensureStylesInjected();
    CodeBrowserEditingTargetWidget.ensureStylesInjected();
    ShowPublicKeyDialog.ensureStylesInjected();
    CreateKeyDialog.ensureStylesInjected();
    SshKeyWidget.ensureStylesInjected();
    IgnoreDialog.ensureStylesInjected();
    WizardResources.INSTANCE.styles().ensureInjected();
    NewProjectResources.INSTANCE.styles().ensureInjected();

    StyleInjector.inject("button::-moz-focus-inner {border:0}");
  }