本文整理匯總了Java中org.eclipse.che.ide.CoreLocalizationConstant類的典型用法代碼示例。如果您正苦於以下問題:Java CoreLocalizationConstant類的具體用法?Java CoreLocalizationConstant怎麽用?Java CoreLocalizationConstant使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CoreLocalizationConstant類屬於org.eclipse.che.ide包,在下文中一共展示了CoreLocalizationConstant類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ShowSshKeyViewImpl
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public ShowSshKeyViewImpl(
ShowSshKeyViewImplUiBinder binder,
CoreLocalizationConstant locale,
ClipboardButtonBuilder clipBoardBtnBuilder,
SshKeyLocalizationConstant constant) {
this.locale = locale;
this.constant = constant;
setWidget(binder.createAndBindUi(this));
setHideOnEscapeEnabled(true);
clipBoardBtnBuilder.withResourceWidget(key).build();
addButtons();
}
示例2: CreateCSourceFileAction
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public CreateCSourceFileAction(
CppLocalizationConstant localizationConstant,
CppResources cppResources,
DialogFactory dialogFactory,
CoreLocalizationConstant coreLocalizationConstant,
EventBus eventBus,
AppContext appContext,
NotificationManager notificationManager,
Provider<EditorAgent> editorAgentProvider) {
super(
localizationConstant.createCFileActionTitle(),
localizationConstant.createCFileActionDescription(),
cppResources.cFile(),
dialogFactory,
coreLocalizationConstant,
eventBus,
appContext,
notificationManager,
editorAgentProvider);
}
示例3: NewPhplikeResourceAction
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
/**
* Creates new action.
*
* @param title action's title
* @param description action's description
* @param svgIcon
*/
public NewPhplikeResourceAction(
String title,
String description,
SVGResource svgIcon,
DialogFactory dialogFactory,
CoreLocalizationConstant coreLocalizationConstant,
EventBus eventBus,
AppContext appContext,
NotificationManager notificationManager,
Provider<EditorAgent> editorAgentProvider) {
super(
title,
description,
svgIcon,
dialogFactory,
coreLocalizationConstant,
eventBus,
appContext,
notificationManager,
editorAgentProvider);
this.appContext = appContext;
}
示例4: EmptyEditorsPanel
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
public EmptyEditorsPanel(
ActionManager actionManager,
Provider<PerspectiveManager> perspectiveManagerProvider,
KeyBindingAgent keyBindingAgent,
AppContext appContext,
CoreLocalizationConstant localizationConstant,
NewFileAction newFileAction,
CreateProjectAction createProjectAction,
ImportProjectAction importProjectAction) {
this.actionManager = actionManager;
this.perspectiveManagerProvider = perspectiveManagerProvider;
this.keyBindingAgent = keyBindingAgent;
this.appContext = appContext;
this.localizationConstant = localizationConstant;
noFiles.put("Create File...", newFileAction);
noFiles.put("Create Project...", createProjectAction);
noProjects.put("Import Project...", importProjectAction);
noProjects.put("Create Project...", createProjectAction);
presentationFactory = new PresentationFactory();
initWidget(uiBinder.createAndBindUi(this));
}
示例5: ShowReferenceViewImpl
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public ShowReferenceViewImpl(
ShowReferenceViewImplUiBinder binder,
CoreLocalizationConstant locale,
ClipboardButtonBuilder clipBoardBtnBuilder) {
this.locale = locale;
setTitle(locale.showReference());
setWidget(binder.createAndBindUi(this));
setHideOnEscapeEnabled(true);
reference.setReadOnly(true);
clipBoardBtnBuilder.withResourceWidget(reference).build();
clipBoardBtnBuilder.withResourceWidget(path).build();
addButtons();
}
示例6: NewTerminalAction
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public NewTerminalAction(
CoreLocalizationConstant locale,
MachineResources machineResources,
ProcessesPanelPresenter processesPanelPresenter,
EventBus eventBus) {
super(
Collections.singletonList(PROJECT_PERSPECTIVE_ID),
locale.newTerminal(),
locale.newTerminalDescription(),
machineResources.addTerminalIcon());
this.processesPanelPresenter = processesPanelPresenter;
eventBus.addHandler(ProcessTreeNodeSelectedEvent.TYPE, this);
}
示例7: ProjectImporter
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public ProjectImporter(
CoreLocalizationConstant localizationConstant,
ImportProjectNotificationSubscriberFactory subscriberFactory,
AppContext appContext,
ProjectResolver projectResolver,
AskCredentialsDialog credentialsDialog,
OAuth2AuthenticatorRegistry oAuth2AuthenticatorRegistry,
DtoUnmarshallerFactory unmarshaller,
OAuthServiceClient oAuthServiceClient) {
super(appContext, subscriberFactory);
this.localizationConstant = localizationConstant;
this.projectResolver = projectResolver;
this.credentialsDialog = credentialsDialog;
this.unmarshallerFactory = unmarshaller;
this.oAuth2AuthenticatorRegistry = oAuth2AuthenticatorRegistry;
this.oAuthServiceClient = oAuthServiceClient;
}
示例8: ImportProjectWizardPresenter
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public ImportProjectWizardPresenter(
ImportProjectWizardView view,
MainPagePresenter mainPage,
CoreLocalizationConstant locale,
Provider<MainPagePresenter> mainPageProvider,
ImportWizardRegistry wizardRegistry,
DialogFactory dialogFactory,
ImportWizardFactory importWizardFactory) {
this.view = view;
this.locale = locale;
this.wizardRegistry = wizardRegistry;
this.mainPage = mainPage;
this.mainPageProvider = mainPageProvider;
this.dialogFactory = dialogFactory;
this.importWizardFactory = importWizardFactory;
wizardsCache = new HashMap<>();
view.setDelegate(this);
}
示例9: TerminalPresenter
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public TerminalPresenter(
TerminalView view,
NotificationManager notificationManager,
CoreLocalizationConstant locale,
@NotNull @Assisted MachineImpl machine,
@Assisted TerminalOptionsJso options,
final TerminalInitializePromiseHolder terminalHolder,
final ModuleHolder moduleHolder,
AgentURLModifier agentURLModifier) {
this.view = view;
this.options = options != null ? options : TerminalOptionsJso.createDefault();
this.agentURLModifier = agentURLModifier;
view.setDelegate(this);
this.notificationManager = notificationManager;
this.locale = locale;
this.machine = machine;
connected = false;
countRetry = 2;
this.terminalHolder = terminalHolder;
this.moduleHolder = moduleHolder;
}
示例10: InitialProjectImporter
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public InitialProjectImporter(
ImportProjectNotificationSubscriberFactory subscriberFactory,
AppContext appContext,
OAuth2AuthenticatorRegistry oAuth2AuthenticatorRegistry,
ProjectImportOutputJsonRpcNotifier subscriber,
NotificationManager notificationManager,
CoreLocalizationConstant locale,
AskCredentialsDialog askCredentialsDialog,
DialogFactory dialogFactory,
PromiseProvider promises,
EventBus eventBus) {
super(appContext, subscriberFactory);
this.oAuth2AuthenticatorRegistry = oAuth2AuthenticatorRegistry;
this.subscriber = subscriber;
this.notificationManager = notificationManager;
this.locale = locale;
this.askCredentialsDialog = askCredentialsDialog;
this.dialogFactory = dialogFactory;
this.promises = promises;
eventBus.addHandler(WorkspaceReadyEvent.getType(), e -> importProjects());
}
示例11: NewFolderAction
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public NewFolderAction(
CoreLocalizationConstant localizationConstant,
Resources resources,
DialogFactory dialogFactory,
EventBus eventBus,
AppContext appContext,
NotificationManager notificationManager,
Provider<EditorAgent> editorAgentProvider) {
super(
localizationConstant.actionNewFolderTitle(),
localizationConstant.actionNewFolderDescription(),
resources.defaultFolder(),
dialogFactory,
localizationConstant,
eventBus,
appContext,
notificationManager,
editorAgentProvider);
this.folderNameValidator = new FolderNameValidator();
}
示例12: PasteResourceAction
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public PasteResourceAction(
CoreLocalizationConstant localization,
Resources resources,
ClipboardManager clipboardManager,
AppContext appContext,
EventBus eventBus) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localization.pasteItemsActionText(),
localization.pasteItemsActionDescription(),
resources.paste());
this.clipboardManager = clipboardManager;
this.appContext = appContext;
eventBus.addHandler(
ActivePartChangedEvent.TYPE,
new ActivePartChangedHandler() {
@Override
public void onActivePartChanged(ActivePartChangedEvent event) {
partPresenter = event.getActivePart();
}
});
}
示例13: CutResourceAction
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public CutResourceAction(
CoreLocalizationConstant localization,
Resources resources,
ClipboardManager clipboardManager,
AppContext appContext,
EventBus eventBus) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localization.cutItemsActionText(),
localization.cutItemsActionDescription(),
resources.cut());
this.clipboardManager = clipboardManager;
this.appContext = appContext;
eventBus.addHandler(
ActivePartChangedEvent.TYPE,
new ActivePartChangedHandler() {
@Override
public void onActivePartChanged(ActivePartChangedEvent event) {
partPresenter = event.getActivePart();
}
});
}
示例14: NavigateToFileViewImpl
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public NavigateToFileViewImpl(
CoreLocalizationConstant locale,
NavigateToFileViewImplUiBinder uiBinder,
AutoCompleteResources autoCompleteResources,
Resources resources) {
this.locale = locale;
this.resources = resources;
css = autoCompleteResources.autocompleteComponentCss();
css.ensureInjected();
setWidget(uiBinder.createAndBindUi(this));
setAutoHideEnabled(true);
setAnimationEnabled(true);
getElement().getStyle().setProperty("boxShadow", "0 2px 4px 0 rgba(0, 0, 0, 0.50)");
getElement().getStyle().setProperty("borderRadius", "0px");
}
示例15: NewJavaScriptFileAction
import org.eclipse.che.ide.CoreLocalizationConstant; //導入依賴的package包/類
@Inject
public NewJavaScriptFileAction(
WebLocalizationConstant localizationConstant,
DialogFactory dialogFactory,
CoreLocalizationConstant coreLocalizationConstant,
EventBus eventBus,
AppContext appContext,
NotificationManager notificationManager,
Provider<EditorAgent> editorAgentProvider) {
super(
localizationConstant.newJavaScriptFileActionTitle(),
localizationConstant.newJavaScriptFileActionDescription(),
null,
dialogFactory,
coreLocalizationConstant,
eventBus,
appContext,
notificationManager,
editorAgentProvider);
}