本文整理汇总了Java中org.eclipse.che.ide.api.parts.WorkspaceAgent类的典型用法代码示例。如果您正苦于以下问题:Java WorkspaceAgent类的具体用法?Java WorkspaceAgent怎么用?Java WorkspaceAgent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WorkspaceAgent类属于org.eclipse.che.ide.api.parts包,在下文中一共展示了WorkspaceAgent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FindResultPresenter
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public FindResultPresenter(
WorkspaceAgent workspaceAgent,
ProjectServiceClient projectServiceClient,
CoreLocalizationConstant localizationConstant,
Resources resources,
FindResultView view,
EventBus eventBus) {
this.workspaceAgent = workspaceAgent;
this.projectServiceClient = projectServiceClient;
this.localizationConstant = localizationConstant;
this.resources = resources;
this.view = view;
eventBus.addHandler(ResourceChangedEvent.getType(), this);
view.setDelegate(this);
}
示例2: RenameItemAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public RenameItemAction(
Resources resources,
CoreLocalizationConstant localization,
Set<RenamingSupport> renamingSupport,
EditorAgent editorAgent,
NotificationManager notificationManager,
DialogFactory dialogFactory,
AppContext appContext,
WorkspaceAgent workspaceAgent) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localization.renameItemActionText(),
localization.renameItemActionDescription(),
resources.rename());
this.localization = localization;
this.renamingSupport = renamingSupport;
this.editorAgent = editorAgent;
this.notificationManager = notificationManager;
this.dialogFactory = dialogFactory;
this.appContext = appContext;
this.workspaceAgent = workspaceAgent;
}
示例3: ProjectExplorerDisplayingModeAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public ProjectExplorerDisplayingModeAction(
Resources resources,
EditorAgent editorAgent,
CoreLocalizationConstant localizedConstant,
WorkspaceAgent workspaceAgent,
Provider<ProjectExplorerPresenter> projectExplorerPresenterProvider) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localizedConstant.switchProjectExplorerDisplayingTitle(),
localizedConstant.switchProjectExplorerDisplayingDescription(),
resources.projectExplorerPartIcon());
this.editorAgent = editorAgent;
this.workspaceAgent = workspaceAgent;
this.projectExplorerPresenterProvider = projectExplorerPresenterProvider;
}
示例4: TerminalDisplayingModeAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public TerminalDisplayingModeAction(
Resources resources,
EventBus eventBus,
EditorAgent editorAgent,
CoreLocalizationConstant localizedConstant,
Provider<WorkspaceAgent> workspaceAgentProvider,
Provider<ProcessesPanelPresenter> processesPanelPresenterProvider) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localizedConstant.switchTerminalDisplayingTitle(),
localizedConstant.switchTerminalDisplayingDescription(),
resources.terminal());
this.editorAgent = editorAgent;
this.workspaceAgentProvider = workspaceAgentProvider;
this.processesPanelPresenterProvider = processesPanelPresenterProvider;
eventBus.addHandler(ProcessTreeNodeSelectedEvent.TYPE, this);
}
示例5: actionPerformed
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
WorkspaceAgent workspaceAgent = workspaceAgentProvider.get();
ProcessesPanelPresenter processesPanelPresenter = processesPanelPresenterProvider.get();
if (isProcessesPanelActive() && isTerminalActive()) {
workspaceAgent.hidePart(processesPanelPresenter);
EditorPartPresenter activeEditor = editorAgent.getActiveEditor();
if (activeEditor != null) {
workspaceAgent.setActivePart(activeEditor);
}
return;
}
processesPanelPresenter.provideTerminal();
}
示例6: FindResultDisplayingModeAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public FindResultDisplayingModeAction(
Resources resources,
EditorAgent editorAgent,
CoreLocalizationConstant localizedConstant,
WorkspaceAgent workspaceAgent,
Provider<FindResultPresenter> findResultPresenterProvider) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localizedConstant.switchFindPartDisplayingTitle(),
localizedConstant.switchFindPartDisplayingDescription(),
resources.find());
this.editorAgent = editorAgent;
this.workspaceAgent = workspaceAgent;
this.findResultPresenterProvider = findResultPresenterProvider;
}
示例7: EventLogsDisplayingModeAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public EventLogsDisplayingModeAction(
Resources resources,
EditorAgent editorAgent,
CoreLocalizationConstant localizedConstant,
WorkspaceAgent workspaceAgent,
Provider<NotificationManager> notificationManagerProvider) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localizedConstant.switchEventLogsDisplayingTitle(),
localizedConstant.switchEventLogsDisplayingDescription(),
resources.eventsPartIcon());
this.editorAgent = editorAgent;
this.workspaceAgent = workspaceAgent;
this.notificationManagerProvider = notificationManagerProvider;
}
示例8: CommandsExplorerDisplayingModeAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public CommandsExplorerDisplayingModeAction(
Resources resources,
EditorAgent editorAgent,
CoreLocalizationConstant localizedConstant,
WorkspaceAgent workspaceAgent,
Provider<CommandsExplorerPresenter> commandsExplorerPresenterProvider) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localizedConstant.switchCommandExplorerDisplayingTitle(),
localizedConstant.switchCommandExplorerDisplayingDescription(),
resources.editCommands());
this.editorAgent = editorAgent;
this.workspaceAgent = workspaceAgent;
this.commandsExplorerPresenterProvider = commandsExplorerPresenterProvider;
}
示例9: ImageViewer
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public ImageViewer(
ImageViewerResources resources,
CoreLocalizationConstant constant,
DialogFactory dialogFactory,
EventBus eventBus,
WorkspaceAgent workspaceAgent,
AgentURLModifier urlModifier) {
this.resources = resources;
this.constant = constant;
this.dialogFactory = dialogFactory;
this.workspaceAgent = workspaceAgent;
this.urlModifier = urlModifier;
resources.imageViewerCss().ensureInjected();
eventBus.addHandler(FileEvent.TYPE, this);
}
示例10: RenamePresenter
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public RenamePresenter(
LanguageServerLocalization localization,
TextDocumentServiceClient client,
DtoFactory dtoFactory,
Provider<RenameInputBox> renameInputBoxProvider,
RenameView view,
WorkspaceAgent workspaceAgent,
AppContext appContext,
ApplyWorkspaceEditAction workspaceEditAction,
Provider<RenameDialog> renameWindow) {
this.localization = localization;
this.client = client;
this.dtoFactory = dtoFactory;
this.renameInputBoxProvider = renameInputBoxProvider;
this.view = view;
this.workspaceAgent = workspaceAgent;
this.appContext = appContext;
this.workspaceEditAction = workspaceEditAction;
this.renameWindow = renameWindow;
view.setDelegate(this);
}
示例11: OpenLocationPresenter
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public OpenLocationPresenter(
LanguageServerResources resources,
OpenLocationView view,
WorkspaceAgent workspaceAgent,
OpenFileInEditorHelper helper,
NotificationManager notificationManager,
@Assisted String title) {
this.resources = resources;
this.view = view;
this.workspaceAgent = workspaceAgent;
this.helper = helper;
this.notificationManager = notificationManager;
this.title = title;
view.setDelegate(this);
view.setTitle(title);
}
示例12: ContributePartDisplayingModeAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public ContributePartDisplayingModeAction(
ContributeResources resources,
EditorAgent editorAgent,
WorkspaceAgent workspaceAgent,
Provider<ContributePartPresenter> contributePartPresenterProvider,
ContributeMessages localizedConstant) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localizedConstant.switchContributePartDisplayingTitle(),
localizedConstant.switchContributePartDisplayingDescription(),
resources.titleIcon());
this.editorAgent = editorAgent;
this.workspaceAgent = workspaceAgent;
this.contributePartPresenterProvider = contributePartPresenterProvider;
}
示例13: FindUsagesPresenter
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public FindUsagesPresenter(
WorkspaceAgent workspaceAgent,
JavaLocalizationConstant localizationConstant,
FindUsagesView view,
JavaSearchService searchService,
DtoFactory dtoFactory,
NotificationManager manager,
Resources resources) {
this.workspaceAgent = workspaceAgent;
this.localizationConstant = localizationConstant;
this.view = view;
this.searchService = searchService;
this.dtoFactory = dtoFactory;
this.manager = manager;
this.resources = resources;
view.setDelegate(this);
}
示例14: RefactoringUpdater
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public RefactoringUpdater(
AppContext appContext,
EditorMultiPartStackPresenter editorMultiPartStack,
WorkspaceAgent workspaceAgent,
DeletedFilesController deletedFilesController,
EventBus eventBus,
EditorAgent editorAgent,
ClientServerEventService clientServerEventService,
PromiseProvider promises) {
this.appContext = appContext;
this.editorMultiPartStack = editorMultiPartStack;
this.workspaceAgent = workspaceAgent;
this.deletedFilesController = deletedFilesController;
this.eventBus = eventBus;
this.editorAgent = editorAgent;
this.clientServerEventService = clientServerEventService;
this.promises = promises;
}
示例15: DebuggerDisplayingModeAction
import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public DebuggerDisplayingModeAction(
DebuggerResources resources,
EditorAgent editorAgent,
WorkspaceAgent workspaceAgent,
Provider<DebuggerPresenter> debuggerPresenterProvider,
DebuggerLocalizationConstant localizedConstant) {
super(
singletonList(PROJECT_PERSPECTIVE_ID),
localizedConstant.switchDebuggerDisplayingTitle(),
localizedConstant.switchDebuggerDisplayingDescription(),
resources.debug());
this.editorAgent = editorAgent;
this.workspaceAgent = workspaceAgent;
this.debuggerPresenterProvider = debuggerPresenterProvider;
}